1 /* |
|
2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Declaration of the class CATDynProcessInfo |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef ATDYNPROCESSINFO_H |
|
20 #define ATDYNPROCESSINFO_H |
|
21 |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include <analyzetool/atcommon.h> |
|
26 #include "atdllinfo.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CATStorageServerSession; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * A class that can store different process related information. The information |
|
35 * is associated to a particular process wiht a member telling a process ID. |
|
36 * All the other information but the process ID and the pointer to this process's |
|
37 * associated session object can be subject to change dynamically, run-time. |
|
38 */ |
|
39 class CATDynProcessInfo : public CBase |
|
40 { |
|
41 public: // Constructor |
|
42 |
|
43 /** |
|
44 * Constructor. |
|
45 */ |
|
46 CATDynProcessInfo(); |
|
47 |
|
48 /** |
|
49 * Constructor. |
|
50 * @param aProcessId A process ID. |
|
51 * @param aSessionObject A pointer to this process's associated session object. |
|
52 * @param aDlls The loaded DLLs of the associated process. |
|
53 */ |
|
54 CATDynProcessInfo( TUint aProcessId, |
|
55 CATStorageServerSession* aSessionObject, |
|
56 const RArray<TATDllInfo>& aDlls ); |
|
57 |
|
58 /** |
|
59 * Constructor. |
|
60 * @param aProcessId A process ID. |
|
61 * @param aSessionObject A pointer to this process's associated session object. |
|
62 */ |
|
63 CATDynProcessInfo( TUint aProcessId, |
|
64 CATStorageServerSession* aSessionObject ); |
|
65 |
|
66 /** |
|
67 * Constructor. |
|
68 * @param aProcessId A process ID. |
|
69 */ |
|
70 CATDynProcessInfo( TUint aProcessId ); |
|
71 |
|
72 /** |
|
73 * Destructor |
|
74 */ |
|
75 virtual ~CATDynProcessInfo(); |
|
76 |
|
77 public: |
|
78 |
|
79 /** |
|
80 * Compares two objects of this class based on the process ID. |
|
81 * @param aFirst The first object of this class to be compared. |
|
82 * @param aSecond The second object of this class to be compared. |
|
83 * @return Zero, if the two objects are equal. A negative value, |
|
84 * if the first object is less than the second. A positive value, |
|
85 * if the first object is greater than the second. |
|
86 */ |
|
87 static TInt Compare( const CATDynProcessInfo& aFirst, |
|
88 const CATDynProcessInfo& aSecond ); |
|
89 |
|
90 public: |
|
91 |
|
92 /** The ID of the process. */ |
|
93 const TUint iProcessId; |
|
94 |
|
95 /** A pointer to the session object associated with this process. */ |
|
96 CATStorageServerSession* const iSessionObject; |
|
97 |
|
98 /** The DLLs loaded by the associated process */ |
|
99 RArray<TATDllInfo> iDlls; |
|
100 }; |
|
101 |
|
102 #endif // ATDYNPROCESSINFO_H |
|