|
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: |
|
15 * Contains the declaration of CMemSpyChunk class |
|
16 */ |
|
17 |
|
18 #ifndef MEMSPYAPICHUNK_H |
|
19 #define MEMSPYAPICHUNK_H |
|
20 |
|
21 // System includes |
|
22 #include <e32base.h> |
|
23 |
|
24 #include <memspy/driver/memspydriverenumerationsshared.h> |
|
25 |
|
26 class TMemSpyChunkData; |
|
27 |
|
28 NONSHARABLE_CLASS( CMemSpyApiChunk ) |
|
29 { |
|
30 public: |
|
31 IMPORT_C ~CMemSpyApiChunk(); |
|
32 |
|
33 static CMemSpyApiChunk* NewL(const TMemSpyChunkData& aData); |
|
34 |
|
35 static CMemSpyApiChunk* NewLC(const TMemSpyChunkData& aData); |
|
36 |
|
37 public: |
|
38 IMPORT_C const TDesC& Name() const; |
|
39 |
|
40 IMPORT_C const TDesC& OwnerName() const; |
|
41 |
|
42 IMPORT_C TUint8* Handle() const; |
|
43 |
|
44 IMPORT_C TUint8* BaseAddress() const; |
|
45 |
|
46 IMPORT_C TUint Size() const; |
|
47 |
|
48 IMPORT_C TUint MaxSize() const; |
|
49 |
|
50 IMPORT_C TUint OwnerId() const; |
|
51 |
|
52 IMPORT_C TMemSpyDriverChunkType ChunkType() const; |
|
53 |
|
54 IMPORT_C TInt Attributes() const; |
|
55 |
|
56 private: |
|
57 CMemSpyApiChunk(); |
|
58 |
|
59 void ConstructL(const TMemSpyChunkData& aData); |
|
60 |
|
61 private: |
|
62 TMemSpyChunkData *iChunkData; |
|
63 }; |
|
64 |
|
65 |
|
66 #endif // MEMSPYAPICHUNK_H |