equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-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 // Started by Brendan, Dec 1996 |
|
15 // Test library unloader |
|
16 // |
|
17 // |
|
18 |
|
19 #include "T_LIBT.H" |
|
20 |
|
21 IMPORT_C CLibTest* LibEntry(); // Force export |
|
22 |
|
23 NONSHARABLE_CLASS(CMyLibTest) : public CLibTest |
|
24 { |
|
25 public: |
|
26 CMyLibTest(); |
|
27 TInt Test1() const; |
|
28 TInt Test2() const; |
|
29 TInt Test3(); |
|
30 }; |
|
31 |
|
32 CMyLibTest::CMyLibTest() |
|
33 { |
|
34 __DECLARE_NAME(_S("CMyLibTest")); |
|
35 } |
|
36 |
|
37 TInt CMyLibTest::Test1() const |
|
38 { |
|
39 return(1); |
|
40 } |
|
41 |
|
42 TInt CMyLibTest::Test2() const |
|
43 { |
|
44 return(2); |
|
45 } |
|
46 |
|
47 TInt CMyLibTest::Test3() |
|
48 { |
|
49 return(3); |
|
50 } |
|
51 |
|
52 EXPORT_C CLibTest* LibEntry() |
|
53 // |
|
54 // Lib main entry point |
|
55 // |
|
56 { |
|
57 return(new(ELeave) CMyLibTest); |
|
58 } |
|
59 |
|
60 |
|
61 |