|
1 /* |
|
2 * Copyright (c) 2005-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 |
|
19 |
|
20 #ifndef CPOSSUBSESSIONREGISTRY_H |
|
21 #define CPOSSUBSESSIONREGISTRY_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CPosSubSession; |
|
28 |
|
29 // CLASS DECLARATION |
|
30 |
|
31 /** |
|
32 * Class to handle loading/unloading and referencing of PSYs. |
|
33 */ |
|
34 class CPosSubsessionRegistry :public CBase |
|
35 { |
|
36 public: // Constructors and destructor |
|
37 static CPosSubsessionRegistry* NewL(); |
|
38 ~CPosSubsessionRegistry(); |
|
39 |
|
40 public: // New functions |
|
41 CPosSubSession* SubSessionFromHandleL(TUint aHandle); |
|
42 CPosSubSession* SubSessionFromIndex(TInt aIndex); |
|
43 TInt Count(); |
|
44 void CloseSubSession(TUint aHandle); |
|
45 TInt AddInstanceL(CPosSubSession* aSubSession); |
|
46 |
|
47 private: |
|
48 CPosSubsessionRegistry(); |
|
49 void ConstructL(); |
|
50 CPosSubsessionRegistry( const CPosSubsessionRegistry& ); |
|
51 CPosSubsessionRegistry& operator= ( const CPosSubsessionRegistry& ); |
|
52 |
|
53 private: // Data |
|
54 |
|
55 CObjectIx* iRegistryIndex; |
|
56 CObjectCon* iRegistryContainer; |
|
57 CObjectConIx* iRegistryContainerIndex; |
|
58 }; |
|
59 |
|
60 |
|
61 #endif // CPOSSUBSESSIONREGISTRY_H |
|
62 |
|
63 // End of File |