|
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 * |
|
16 */ |
|
17 |
|
18 #include <f32file.h> |
|
19 #include <memspy/api/memspyapiecom.h> |
|
20 #include <memspy/engine/memspyengine.h> |
|
21 #include <memspy/engine/memspyecomdata.h> |
|
22 |
|
23 |
|
24 EXPORT_C CMemSpyApiEComCategory::~CMemSpyApiEComCategory() |
|
25 { |
|
26 delete iData; |
|
27 } |
|
28 |
|
29 EXPORT_C TUid CMemSpyApiEComCategory::Id() const |
|
30 { |
|
31 return iData->iId; |
|
32 } |
|
33 |
|
34 EXPORT_C const TDesC& CMemSpyApiEComCategory::Name() const |
|
35 { |
|
36 return iData->iName; |
|
37 } |
|
38 |
|
39 EXPORT_C TInt CMemSpyApiEComCategory::InterfaceCount() const |
|
40 { |
|
41 return iData->iInterfaceCount; |
|
42 } |
|
43 |
|
44 void CMemSpyApiEComCategory::ConstructL(const TMemSpyEComCategoryData& aData) |
|
45 { |
|
46 iData = new (ELeave) TMemSpyEComCategoryData( aData ); |
|
47 } |
|
48 |
|
49 CMemSpyApiEComCategory* CMemSpyApiEComCategory::NewL(const TMemSpyEComCategoryData& aData) |
|
50 { |
|
51 CMemSpyApiEComCategory* self = CMemSpyApiEComCategory::NewLC( aData ); |
|
52 CleanupStack::Pop(self); |
|
53 return (self); |
|
54 } |
|
55 |
|
56 CMemSpyApiEComCategory* CMemSpyApiEComCategory::NewLC(const TMemSpyEComCategoryData& aData) |
|
57 { |
|
58 CMemSpyApiEComCategory* self = new (ELeave) CMemSpyApiEComCategory; |
|
59 CleanupStack::PushL( self ); |
|
60 self->ConstructL( aData ); |
|
61 return ( self ); |
|
62 } |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
|
68 |
|
69 |
|
70 |
|
71 EXPORT_C CMemSpyApiEComInterface::~CMemSpyApiEComInterface() |
|
72 { |
|
73 delete iData; |
|
74 } |
|
75 |
|
76 EXPORT_C TUid CMemSpyApiEComInterface::Id() const |
|
77 { |
|
78 return iData->iId; |
|
79 } |
|
80 |
|
81 EXPORT_C const TDesC& CMemSpyApiEComInterface::Name() const |
|
82 { |
|
83 return iData->iName; |
|
84 } |
|
85 |
|
86 EXPORT_C TInt CMemSpyApiEComInterface::ImplementationCount() const |
|
87 { |
|
88 return iData->iImplementationCount; |
|
89 } |
|
90 |
|
91 void CMemSpyApiEComInterface::ConstructL(const TMemSpyEComInterfaceData& aData) |
|
92 { |
|
93 iData = new (ELeave) TMemSpyEComInterfaceData( aData ); |
|
94 } |
|
95 |
|
96 CMemSpyApiEComInterface* CMemSpyApiEComInterface::NewL(const TMemSpyEComInterfaceData& aData) |
|
97 { |
|
98 CMemSpyApiEComInterface* self = CMemSpyApiEComInterface::NewLC( aData ); |
|
99 CleanupStack::Pop(self); |
|
100 return (self); |
|
101 } |
|
102 |
|
103 CMemSpyApiEComInterface* CMemSpyApiEComInterface::NewLC(const TMemSpyEComInterfaceData& aData) |
|
104 { |
|
105 CMemSpyApiEComInterface* self = new (ELeave) CMemSpyApiEComInterface; |
|
106 CleanupStack::PushL( self ); |
|
107 self->ConstructL( aData ); |
|
108 return ( self ); |
|
109 } |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 |
|
115 |
|
116 |
|
117 EXPORT_C CMemSpyApiEComImplementation::~CMemSpyApiEComImplementation() |
|
118 { |
|
119 delete iData; |
|
120 } |
|
121 |
|
122 EXPORT_C TUid CMemSpyApiEComImplementation::ImplementationUid() const |
|
123 { |
|
124 return iData->iImplementationUid; |
|
125 } |
|
126 |
|
127 EXPORT_C const TDesC& CMemSpyApiEComImplementation::Name() const |
|
128 { |
|
129 return iData->iName; |
|
130 } |
|
131 |
|
132 EXPORT_C TInt CMemSpyApiEComImplementation::Version() const |
|
133 { |
|
134 return iData->iVersion; |
|
135 } |
|
136 |
|
137 EXPORT_C const TDesC& CMemSpyApiEComImplementation::DataType() const |
|
138 { |
|
139 return iData->iDataType; |
|
140 } |
|
141 |
|
142 EXPORT_C const TDesC& CMemSpyApiEComImplementation::OpaqueData() const |
|
143 { |
|
144 return iData->iOpaqueData; |
|
145 } |
|
146 |
|
147 EXPORT_C TDriveUnit CMemSpyApiEComImplementation::Drive() const |
|
148 { |
|
149 return iData->iDrive; |
|
150 } |
|
151 |
|
152 EXPORT_C TBool CMemSpyApiEComImplementation::RomOnly() const |
|
153 { |
|
154 return iData->iRomOnly; |
|
155 } |
|
156 |
|
157 EXPORT_C TBool CMemSpyApiEComImplementation::RomBased() const |
|
158 { |
|
159 return iData->iRomBased; |
|
160 } |
|
161 |
|
162 EXPORT_C TVendorId CMemSpyApiEComImplementation::VendorId() const |
|
163 { |
|
164 return iData->iVendorId; |
|
165 } |
|
166 |
|
167 EXPORT_C TBool CMemSpyApiEComImplementation::Disabled() const |
|
168 { |
|
169 return iData->iDisabled; |
|
170 } |
|
171 |
|
172 void CMemSpyApiEComImplementation::ConstructL(const TMemSpyEComImplementationData& aData) |
|
173 { |
|
174 iData = new (ELeave) TMemSpyEComImplementationData( aData ); |
|
175 } |
|
176 |
|
177 CMemSpyApiEComImplementation* CMemSpyApiEComImplementation::NewL(const TMemSpyEComImplementationData& aData) |
|
178 { |
|
179 CMemSpyApiEComImplementation* self = CMemSpyApiEComImplementation::NewLC( aData ); |
|
180 CleanupStack::Pop(self); |
|
181 return (self); |
|
182 } |
|
183 |
|
184 CMemSpyApiEComImplementation* CMemSpyApiEComImplementation::NewLC(const TMemSpyEComImplementationData& aData) |
|
185 { |
|
186 CMemSpyApiEComImplementation* self = new (ELeave) CMemSpyApiEComImplementation; |
|
187 CleanupStack::PushL( self ); |
|
188 self->ConstructL( aData ); |
|
189 return ( self ); |
|
190 } |