equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-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 // |
|
15 |
|
16 /** |
|
17 @file |
|
18 @publishedPartner |
|
19 @released |
|
20 */ |
|
21 |
|
22 #ifndef HCTLBASE_H |
|
23 #define HCTLBASE_H |
|
24 |
|
25 #include <e32base.h> |
|
26 |
|
27 /** |
|
28 The ECOM interface definition for the HCTL Plugin. |
|
29 |
|
30 This class is intended to be derived from. |
|
31 */ |
|
32 class CHCTLBase : public CBase |
|
33 { |
|
34 public: |
|
35 /** |
|
36 Attempt to load specified implementation |
|
37 */ |
|
38 IMPORT_C static CHCTLBase* NewL(TUid aImplementationUid); |
|
39 |
|
40 /** |
|
41 Attempt to load single instance implementation |
|
42 */ |
|
43 IMPORT_C static CHCTLBase* NewL(); |
|
44 IMPORT_C ~CHCTLBase(); |
|
45 |
|
46 public: |
|
47 /** |
|
48 Retrieves an instance of an interface to functionality provided by the HCTL. |
|
49 |
|
50 @param aUid UID of the API to be retrieved. |
|
51 @return A pointer to the instance of the interface specified by aUid. |
|
52 */ |
|
53 virtual TAny* Interface(TUid aUid) = 0; |
|
54 |
|
55 protected: |
|
56 IMPORT_C CHCTLBase(); |
|
57 |
|
58 private: // owned |
|
59 /** |
|
60 UID set by ECOM when the instance is created. Used when the instance is |
|
61 destroyed. |
|
62 */ |
|
63 TUid iInstanceId; |
|
64 |
|
65 /** |
|
66 Pad for BC-friendly future change. |
|
67 */ |
|
68 TAny* iPad; |
|
69 }; |
|
70 |
|
71 #endif // HCTLBASE_H |
|
72 |