|
1 /* |
|
2 * Copyright (c) 2005-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: Phonebook 2 USIM Thin UI extension plugin. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPSU2THINUIEXTENSIONPLUGIN_H |
|
20 #define CPSU2THINUIEXTENSIONPLUGIN_H |
|
21 |
|
22 // INCLUDE FILES |
|
23 #include "TPsu2ServiceTable.h" |
|
24 #include <CPbk2UIExtensionThinPlugin.h> |
|
25 #include <MVPbkSimPhoneObserver.h> |
|
26 #include <MPbk2StartupObserver.h> |
|
27 #include <MPbk2CommandObserver.h> |
|
28 |
|
29 // FORWARD DECLARATIONS |
|
30 class CEikMenuPane; |
|
31 class MPbk2ContactUiControl; |
|
32 class MVPbkSimPhone; |
|
33 class CPsu2CheckAvailabeSimStore; |
|
34 |
|
35 /** |
|
36 * Phonebook 2 USIM Thin UI extension plugin. |
|
37 */ |
|
38 class CPsu2ThinUIExtensionPlugin : public CPbk2UIExtensionThinPlugin, |
|
39 private MVPbkSimPhoneObserver, |
|
40 private MPbk2StartupObserver, |
|
41 private MPbk2CommandObserver |
|
42 { |
|
43 public: // Construction and destruction |
|
44 |
|
45 /** |
|
46 * Creates a new instance of this class. |
|
47 * |
|
48 * @return A new instance of this class. |
|
49 */ |
|
50 static CPsu2ThinUIExtensionPlugin* NewL(); |
|
51 |
|
52 /** |
|
53 * Destructor. |
|
54 */ |
|
55 ~CPsu2ThinUIExtensionPlugin(); |
|
56 |
|
57 public: // From CPbk2UIExtensionThinPlugin |
|
58 void DynInitMenuPaneL( |
|
59 TInt aResourceId, |
|
60 CEikMenuPane* aMenuPane, |
|
61 MPbk2ContactUiControl& aControl ); |
|
62 void ExtensionStartupL( |
|
63 MPbk2StartupMonitor& aStartupMonitor ); |
|
64 |
|
65 private: // From MVPbkSimPhoneObserver |
|
66 void PhoneOpened( |
|
67 MVPbkSimPhone& aPhone ); |
|
68 void PhoneError( |
|
69 MVPbkSimPhone& aPhone, |
|
70 TErrorIdentifier aIdentifier, |
|
71 TInt aError ); |
|
72 void ServiceTableUpdated( |
|
73 TUint32 aServiceTable ); |
|
74 void FixedDiallingStatusChanged( |
|
75 TInt aFDNStatus ); |
|
76 |
|
77 private: // From MPbk2StartupObserver |
|
78 void ContactUiReadyL( |
|
79 MPbk2StartupMonitor& aStartupMonitor ); |
|
80 |
|
81 private: // From MPbk2CommandObserver |
|
82 void CommandFinished( |
|
83 const MPbk2Command& aCommand ); |
|
84 |
|
85 private: // Implementation |
|
86 CPsu2ThinUIExtensionPlugin(); |
|
87 void ConstructL(); |
|
88 |
|
89 private: // Data |
|
90 /// Own: Phone connection |
|
91 MVPbkSimPhone* iPhone; |
|
92 /// Own: Service table wrapper |
|
93 TPsu2ServiceTable iServiceTable; |
|
94 /// Own: Command that copies new SIM contacts to phone |
|
95 MPbk2Command* iCopySimContactsCmd; |
|
96 /// Own: |
|
97 CPsu2CheckAvailabeSimStore* iStoreChecker; |
|
98 }; |
|
99 |
|
100 #endif // CPSU2THINUIEXTENSIONPLUGIN_H |
|
101 |
|
102 // End of File |