sl@0: // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of the License "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // Provides a helper class for process security management sl@0: // sl@0: // sl@0: sl@0: #ifndef C_PROCESS_PAIR_H sl@0: #define C_PROCESS_PAIR_H sl@0: sl@0: /** sl@0: @file sl@0: @internalTechnology sl@0: @released sl@0: */ sl@0: sl@0: /** sl@0: CProcessPair is a mapping between a debug agent's process Id, and sl@0: the process fileName of a process the agent is interested in debugging. sl@0: */ sl@0: class CProcessPair : public CBase sl@0: { sl@0: public: sl@0: static CProcessPair* NewL(const TDesC& aProcessName, const TProcessId aProcessId); sl@0: ~CProcessPair(); sl@0: TBool operator==(const CProcessPair &aProcessPair) const; sl@0: TBool Equals(const TDesC& aProcessName, const TProcessId aProcessId) const; sl@0: TBool ProcessIdMatches(const CProcessPair &aProcessPair) const; sl@0: TBool ProcessNameMatches(const CProcessPair &aProcessPair) const; sl@0: TBool ProcessIdMatches(const TProcessId &aProcessId) const; sl@0: TBool ProcessNameMatches(const TDesC& aProcessName) const; sl@0: sl@0: private: sl@0: CProcessPair(); sl@0: void ConstructL(const TDesC& aProcessName, TProcessId aProcessId); sl@0: sl@0: private: sl@0: HBufC16* iProcessName; sl@0: TProcessId iProcessId; sl@0: }; sl@0: sl@0: #endif //C_PROCESS_PAIR_H sl@0: