|
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // HeapTestImpl1.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 |
|
19 #include "HeapTestInterface.h" |
|
20 #include "implementationproxy.h" |
|
21 |
|
22 class CHeapTest : public CHeapTestInterface |
|
23 { |
|
24 public: |
|
25 static CHeapTest* NewL(); |
|
26 virtual ~CHeapTest(); |
|
27 TUid ImplId(); |
|
28 void DisplayMessage(); |
|
29 private: |
|
30 CHeapTest(); |
|
31 |
|
32 private: |
|
33 enum EEE {KSize = 100}; |
|
34 TUint8 iNooo[KSize]; |
|
35 |
|
36 }; |
|
37 |
|
38 // __________________________________________________________________________ |
|
39 // Implementation |
|
40 |
|
41 CHeapTest* CHeapTest::NewL() |
|
42 { |
|
43 CHeapTest* self = new (ELeave) CHeapTest(); |
|
44 return self; |
|
45 } |
|
46 |
|
47 CHeapTest::~CHeapTest() |
|
48 { |
|
49 } |
|
50 |
|
51 CHeapTest::CHeapTest() : |
|
52 CHeapTestInterface() |
|
53 { |
|
54 for(TInt8 i=0;i<KSize;i++) |
|
55 { |
|
56 iNooo[i] = i; |
|
57 } |
|
58 } |
|
59 |
|
60 TUid CHeapTest::ImplId() |
|
61 { |
|
62 TUid idVal = {0x101FE393}; |
|
63 return idVal; |
|
64 } |
|
65 |
|
66 void CHeapTest::DisplayMessage() |
|
67 { |
|
68 RDebug::Printf("Implementation of DLL with version 2"); |
|
69 } |
|
70 |
|
71 // __________________________________________________________________________ |
|
72 // Exported proxy for instantiation method resolution |
|
73 // Define the interface UIDs |
|
74 const TImplementationProxy ImplementationTable[] = |
|
75 { |
|
76 IMPLEMENTATION_PROXY_ENTRY(0x101FE393, CHeapTest::NewL) |
|
77 }; |
|
78 |
|
79 EXPORT_C const TImplementationProxy* ImplementationGroupProxy(TInt& aTableCount) |
|
80 { |
|
81 aTableCount = sizeof(ImplementationTable) / sizeof(TImplementationProxy); |
|
82 |
|
83 return ImplementationTable; |
|
84 } |
|
85 |