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 TATDllInfo. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef ATDLLINFO_H |
|
20 #define ATDLLINFO_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <u32std.h> |
|
24 |
|
25 /** |
|
26 * Stores information of process loaded library |
|
27 */ |
|
28 class TATDllInfo |
|
29 { |
|
30 |
|
31 public: // Constructors |
|
32 |
|
33 /** |
|
34 * C++ default constructor. |
|
35 * @param aStartAddress Start address of the library |
|
36 * @param aEndAddress The end address of the library |
|
37 * @param aLoadTime The current time in a 64-bit form. |
|
38 * @param aDllName The name of the library |
|
39 */ |
|
40 TATDllInfo( const TUint32 aStartAddress, const TUint32 aEndAddress, |
|
41 const TInt64& aLoadTime, const TDesC8& aDllName ); |
|
42 |
|
43 public: // New functions |
|
44 |
|
45 /** |
|
46 * Returs library start address |
|
47 * @return TUint32 start address of the library |
|
48 */ |
|
49 TUint32 StartAddress(); |
|
50 |
|
51 /** |
|
52 * Returns library end address |
|
53 * @return TUint32 end address of the library |
|
54 */ |
|
55 TUint32 EndAddress(); |
|
56 |
|
57 /** |
|
58 * Gets specific library name |
|
59 * return TDes8 Name of the library |
|
60 */ |
|
61 TDes8& Name(); |
|
62 |
|
63 /** |
|
64 * Returns library load time |
|
65 * @return TInt64 library load time |
|
66 */ |
|
67 TInt64 LibraryLoadTime(); |
|
68 |
|
69 /** |
|
70 * Checks if two objects of this class match based on the objects's |
|
71 * saved library name. |
|
72 * @param aFirst Library object |
|
73 * @param aSecond Library object |
|
74 * return TBool ETrue, if the two objects match. EFalse otherwise. |
|
75 */ |
|
76 static TBool Match( const TATDllInfo& aFirst, const TATDllInfo& aSecond ); |
|
77 |
|
78 public: // Member variables |
|
79 |
|
80 /* Start address of the loaded dll */ |
|
81 const TUint32 iStartAddress; |
|
82 |
|
83 /* End address of the loaded dll */ |
|
84 const TUint32 iEndAddress; |
|
85 |
|
86 /* Loaded dll name */ |
|
87 TBuf8<KMaxLibraryName> iName; |
|
88 |
|
89 /** For storing the time when DLL has loaded. */ |
|
90 const TInt64 iLoadTime; |
|
91 }; |
|
92 |
|
93 #endif // ATDLLINFO_H |
|
94 |
|
95 // End of File |
|
96 |
|