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