|
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: Phonebook 2 settings view composite UI extension. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CPBK2SETTINGSVIEWEXTENSION_H |
|
20 #define CPBK2SETTINGSVIEWEXTENSION_H |
|
21 |
|
22 // INCLUDES |
|
23 #include <e32base.h> |
|
24 #include <MPbk2SettingsViewExtension.h> |
|
25 |
|
26 // FORWARD DECLARATIONS |
|
27 class CPbk2UIExtensionLoader; |
|
28 class CVPbkContactManager; |
|
29 |
|
30 // CLASS DECLARATION |
|
31 |
|
32 /** |
|
33 * Phonebook 2 settings view composite UI extension. |
|
34 * Responsible for managing real settings UI extensions and |
|
35 * delegating calls from core Phonebook 2 to them. |
|
36 */ |
|
37 NONSHARABLE_CLASS(CPbk2SettingsViewExtension) : |
|
38 public CBase, |
|
39 public MPbk2SettingsViewExtension |
|
40 { |
|
41 public: // Constructors and destructor |
|
42 |
|
43 /** |
|
44 * Creates a new instance of this class. |
|
45 * |
|
46 * @param aContactManager Virtual Phonebook contact manager. |
|
47 * @param aExtensionLoader UI extension loader. |
|
48 * @return A new instance of this class. |
|
49 */ |
|
50 static CPbk2SettingsViewExtension* NewL( |
|
51 CVPbkContactManager& aContactManager, |
|
52 CPbk2UIExtensionLoader& aExtensionLoader); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 ~CPbk2SettingsViewExtension(); |
|
58 |
|
59 public: // From MPbk2SettingsViewExtension |
|
60 void DoRelease(); |
|
61 MPbk2SettingsControlExtension* |
|
62 CreatePbk2SettingsControlExtensionL(); |
|
63 void DynInitMenuPaneL( |
|
64 TInt aResourceId, |
|
65 CEikMenuPane* aMenuPane ); |
|
66 TBool HandleCommandL( |
|
67 TInt aCommandId ); |
|
68 |
|
69 private: // Implementation |
|
70 CPbk2SettingsViewExtension( |
|
71 CVPbkContactManager& aContactManager, |
|
72 CPbk2UIExtensionLoader& aExtensionLoader ); |
|
73 void ConstructL(); |
|
74 void LoadExtensionsL(); |
|
75 |
|
76 private: // Data |
|
77 /// Ref: Virtual Phonebook contact manager |
|
78 CVPbkContactManager& iContactManager; |
|
79 /// Ref: Extension loader |
|
80 CPbk2UIExtensionLoader& iExtensionLoader; |
|
81 /// Own: An array for setting extensions |
|
82 RPointerArray<MPbk2SettingsViewExtension> iSettingExtensions; |
|
83 }; |
|
84 |
|
85 #endif // CPBK2SETTINGSVIEWEXTENSION_H |
|
86 |
|
87 // End of File |