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 @internalTechnology |
|
19 */ |
|
20 |
|
21 #ifndef SYMBIAN_DEN_APIEXTENSIONREGISTER_H |
|
22 #define SYMBIAN_DEN_APIEXTENSIONREGISTER_H |
|
23 |
|
24 #include <elements/nm_common.h> |
|
25 |
|
26 namespace Den |
|
27 { |
|
28 |
|
29 class TApiExtIdentification; |
|
30 |
|
31 /** |
|
32 @internalTechnology |
|
33 |
|
34 Utility class |
|
35 */ |
|
36 class TApiExtRegister |
|
37 { |
|
38 public: |
|
39 ~TApiExtRegister(); |
|
40 |
|
41 void RegisterOpenInterfaceLC(const TApiExtIdentification& aExtItfId); |
|
42 void DeregisterClosedInterface(const TApiExtIdentification& aExtItfId); |
|
43 TBool IsOpened(const TApiExtIdentification& aExtItfId); |
|
44 |
|
45 //For interface enumeration |
|
46 TInt InterfaceCount() |
|
47 { |
|
48 return iApiExtList.Count(); |
|
49 } |
|
50 const TApiExtIdentification& operator[](TInt aInd); |
|
51 |
|
52 private: |
|
53 static void CleanupInterfaceRegistration(TAny* aSelf); |
|
54 void CleanupInterfaceDeregistrationPushL(const TApiExtIdentification& aExtItfId); |
|
55 TApiExtIdentification* iClenupInfoExtItfId; //Used for cleanup only |
|
56 |
|
57 private: |
|
58 RArray<TApiExtIdentification> iApiExtList; |
|
59 }; |
|
60 |
|
61 } // namespace Den |
|
62 |
|
63 #endif // SYMBIAN_DEN_APIEXTENSIONREGISTER_H |
|
64 |