debugsrv/runmodedebug/securityserver/inc/c_process_pair.h
branchRCL_3
changeset 21 52e343bb8f80
parent 20 ca8a1b6995f6
child 22 e26895079d7c
equal deleted inserted replaced
20:ca8a1b6995f6 21:52e343bb8f80
     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".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 // Provides a helper class for process security management
       
    15 // 
       
    16 //
       
    17 
       
    18 #ifndef C_PROCESS_PAIR_H
       
    19 #define C_PROCESS_PAIR_H
       
    20 
       
    21 /**
       
    22 @file
       
    23 @internalTechnology
       
    24 @released
       
    25 */
       
    26 
       
    27 /**
       
    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.
       
    30 */
       
    31 class CProcessPair : public CBase
       
    32 	{
       
    33 public:
       
    34 	static CProcessPair* NewL(const TDesC& aProcessName, const TProcessId aProcessId);
       
    35 	~CProcessPair();
       
    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;
       
    42 
       
    43 private:
       
    44 	CProcessPair();
       
    45 	void ConstructL(const TDesC& aProcessName, TProcessId aProcessId);
       
    46 
       
    47 private:
       
    48 	HBufC16* iProcessName;
       
    49 	TProcessId iProcessId;
       
    50 	};
       
    51 
       
    52 #endif //C_PROCESS_PAIR_H
       
    53