|
1 /* |
|
2 * Copyright (c) 2002-2007 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: A manager class for creating a sim store |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef CVPBKSIMSTOREMANAGER_H |
|
21 #define CVPBKSIMSTOREMANAGER_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32base.h> |
|
25 #include "VPbkSimStoreCommon.h" |
|
26 |
|
27 // FORWARD DECLARATIONS |
|
28 class MVPbkSimCntStore; |
|
29 class MVPbkSimPhone; |
|
30 class CVPbkSimStateInformation; |
|
31 |
|
32 namespace VPbkSimStoreImpl { |
|
33 // FORWARD DECLARATIONS |
|
34 class CPhone; |
|
35 class CSatRefreshNotifier; |
|
36 class CBtSapNotification; |
|
37 } |
|
38 |
|
39 // CLASS DECLARATION |
|
40 |
|
41 /** |
|
42 * A manager class for creating a sim store |
|
43 * |
|
44 * @lib VPbkSimStoreImpl.lib |
|
45 */ |
|
46 class CVPbkSimStoreManager : public CBase |
|
47 { |
|
48 public: // Constructors and destructor |
|
49 |
|
50 /** |
|
51 * Two-phased constructor. |
|
52 * @return a new instance of this class |
|
53 */ |
|
54 IMPORT_C static CVPbkSimStoreManager* NewL(); |
|
55 |
|
56 /** |
|
57 * Destructor. |
|
58 */ |
|
59 virtual ~CVPbkSimStoreManager(); |
|
60 |
|
61 public: // New functions |
|
62 |
|
63 /** |
|
64 * Returns the phone |
|
65 * @return the phone |
|
66 */ |
|
67 IMPORT_C MVPbkSimPhone& Phone(); |
|
68 |
|
69 /** |
|
70 * Returns the store and creates it if not created. |
|
71 * |
|
72 * @param aIdentifier the store identifier |
|
73 */ |
|
74 IMPORT_C MVPbkSimCntStore& StoreL( |
|
75 TVPbkSimStoreIdentifier aIdentifier ); |
|
76 |
|
77 private: |
|
78 |
|
79 /** |
|
80 * C++ default constructor. |
|
81 */ |
|
82 CVPbkSimStoreManager(); |
|
83 |
|
84 /** |
|
85 * By default Symbian 2nd phase constructor is private. |
|
86 */ |
|
87 void ConstructL(); |
|
88 |
|
89 private: // Data |
|
90 /// Own: the store |
|
91 RPointerArray<MVPbkSimCntStore> iStoreArray; |
|
92 /// Own: a shared phone used by the stores |
|
93 VPbkSimStoreImpl::CPhone* iPhone; |
|
94 /// Own: a notifies observers when SIM files are refreshed |
|
95 VPbkSimStoreImpl::CSatRefreshNotifier* iSatNotifier; |
|
96 /// Own: the SIM state information |
|
97 CVPbkSimStateInformation* iSimStateInfo; |
|
98 /// Own: Bluetooth SIM access profile notifier |
|
99 VPbkSimStoreImpl::CBtSapNotification* iBtSapNotifier; |
|
100 }; |
|
101 |
|
102 #endif // CVPBKSIMSTOREMANAGER_H |
|
103 |
|
104 // End of File |