|
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 UI extension plug-in. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPSU2UIEXTENSIONPLUGIN_H |
|
20 #define CPSU2UIEXTENSIONPLUGIN_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <CPbk2UIExtensionPlugin.h> |
|
24 #include <Pbk2PluginCommandListerner.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CPsu2ViewManager; |
|
28 class MVPbkContactStore; |
|
29 class CPbk2ApplicationServices; |
|
30 |
|
31 // CLASS DECLARATION |
|
32 |
|
33 /** |
|
34 * Phonebook 2 USIM UI extension plug-in. |
|
35 * Creates instances of the extension classes. |
|
36 */ |
|
37 class CPsu2UIExtensionPlugin : public CPbk2UIExtensionPlugin, |
|
38 public MPbk2PluginCommandListerner |
|
39 { |
|
40 public: // Constructors and destructor |
|
41 |
|
42 /** |
|
43 * Creates a new instance of this class. |
|
44 * |
|
45 * @return A new instance of this class. |
|
46 */ |
|
47 static CPsu2UIExtensionPlugin* NewL(); |
|
48 |
|
49 /** |
|
50 * Destructor. |
|
51 */ |
|
52 ~CPsu2UIExtensionPlugin(); |
|
53 |
|
54 public: // From CPbk2UIExtensionPlugin |
|
55 MPbk2UIExtensionView* CreateExtensionViewL( |
|
56 TUid aViewId, |
|
57 CPbk2UIExtensionView& aView ); |
|
58 void DynInitMenuPaneL( |
|
59 TInt aResourceId, |
|
60 CEikMenuPane* aMenuPane, |
|
61 MPbk2ContactUiControl& aControl ); |
|
62 void UpdateStorePropertiesL( |
|
63 CPbk2StorePropertyArray& aPropertyArray ); |
|
64 MPbk2ContactEditorExtension* CreatePbk2ContactEditorExtensionL( |
|
65 CVPbkContactManager& aContactManager, |
|
66 MVPbkStoreContact& aContact, |
|
67 MPbk2ContactEditorControl& aEditorControl ); |
|
68 MPbk2ContactUiControlExtension* CreatePbk2UiControlExtensionL( |
|
69 CVPbkContactManager& aContactManager ); |
|
70 MPbk2SettingsViewExtension* CreatePbk2SettingsViewExtensionL( |
|
71 CVPbkContactManager& aContactManager ); |
|
72 MPbk2AppUiExtension* CreatePbk2AppUiExtensionL( |
|
73 CVPbkContactManager& aContactManager ); |
|
74 MPbk2Command* CreatePbk2CommandForIdL( |
|
75 TInt aCommandId, |
|
76 MPbk2ContactUiControl& aUiControl) const; |
|
77 MPbk2AiwInterestItem* CreatePbk2AiwInterestForIdL( |
|
78 TInt aInterestId, |
|
79 CAiwServiceHandler& aServiceHandler ) const; |
|
80 TBool GetHelpContextL( |
|
81 TCoeHelpContext& aContext, |
|
82 const CPbk2AppViewBase& aView, |
|
83 MPbk2ContactUiControl& aUiControl ); |
|
84 void ApplyDynamicViewGraphChangesL( |
|
85 CPbk2ViewGraph& aViewGraph ); |
|
86 void ApplyDynamicPluginInformationDataL( |
|
87 CPbk2UIExtensionInformation& aUiExtensionInformation ); |
|
88 TAny* UIExtensionPluginExtension( TUid aExtensionUid ); |
|
89 public: // From MPbk2PluginCommandListerner |
|
90 void HandlePbk2Command( TInt aCommand ); |
|
91 |
|
92 public: // Implementation |
|
93 TBool IsEndKeyPressed(); |
|
94 void ClearEndKeyPressedFlag(); |
|
95 private: // Implementation |
|
96 CPsu2UIExtensionPlugin(); |
|
97 void ConstructL(); |
|
98 MVPbkContactStore* GetTargetForCopyOrNullL( |
|
99 MPbk2ContactUiControl& aUiControl ) const; |
|
100 TBool OnlyStoreShownL( |
|
101 const TDesC& aStoreUri ); |
|
102 |
|
103 private: // Data |
|
104 /// Own: Manages SIM views |
|
105 CPsu2ViewManager* iViewManager; |
|
106 /// Own: Application Services pointer |
|
107 CPbk2ApplicationServices* iAppServices; |
|
108 /// Own: The flag of the End key (termination call key) pressed or not |
|
109 TBool iEndKeyPressed; |
|
110 }; |
|
111 |
|
112 #endif // CPSU2UIEXTENSIONPLUGIN_H |
|
113 |
|
114 // End of File |