First public contribution.
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of the License "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
14 // Provides a helper class for process security management
18 #ifndef C_PROCESS_PAIR_H
19 #define C_PROCESS_PAIR_H
28 CProcessPair is a mapping between a debug agent's process Id, and
29 the process fileName of a process the agent is interested in debugging.
31 class CProcessPair : public CBase
34 static CProcessPair* NewL(const TDesC& aProcessName, const TProcessId aProcessId);
36 TBool operator==(const CProcessPair &aProcessPair) const;
37 TBool Equals(const TDesC& aProcessName, const TProcessId aProcessId) const;
38 TBool ProcessIdMatches(const CProcessPair &aProcessPair) const;
39 TBool ProcessNameMatches(const CProcessPair &aProcessPair) const;
40 TBool ProcessIdMatches(const TProcessId &aProcessId) const;
41 TBool ProcessNameMatches(const TDesC& aProcessName) const;
45 void ConstructL(const TDesC& aProcessName, TProcessId aProcessId);
48 HBufC16* iProcessName;
49 TProcessId iProcessId;
52 #endif //C_PROCESS_PAIR_H