21 |
21 |
22 // INCLUDES |
22 // INCLUDES |
23 #include <e32base.h> |
23 #include <e32base.h> |
24 #include "MPbk2FetchDlgPage.h" |
24 #include "MPbk2FetchDlgPage.h" |
25 #include "MPbk2ControlObserver.h" |
25 #include "MPbk2ControlObserver.h" |
|
26 #include "MPbk2StoreConfigurationObserver.h" |
26 |
27 |
27 // FORWARD DECLARATIONS |
28 // FORWARD DECLARATIONS |
28 class CPbk2NamesListControl; |
29 class CPbk2NamesListControl; |
29 class MPbk2FetchDlg; |
30 class MPbk2FetchDlg; |
30 class MVPbkContactViewBase; |
31 class MVPbkContactViewBase; |
|
32 class CPbk2StoreConfiguration; |
31 |
33 |
32 // CLASS DECLARATION |
34 // CLASS DECLARATION |
33 |
35 |
34 /** |
36 /** |
35 * Phonebook 2 fetch dialog page. |
37 * Phonebook 2 fetch dialog page. |
36 * Responsible for presenting and managing a single fetch page. |
38 * Responsible for presenting and managing a single fetch page. |
37 */ |
39 */ |
38 NONSHARABLE_CLASS(CPbk2FetchDlgPage) : public CBase, |
40 NONSHARABLE_CLASS(CPbk2FetchDlgPage) : public CBase, |
39 public MPbk2FetchDlgPage, |
41 public MPbk2FetchDlgPage, |
40 private MPbk2ControlObserver |
42 private MPbk2ControlObserver, |
|
43 private MPbk2StoreConfigurationObserver |
41 { |
44 { |
42 public: // Constructors and destructor |
45 public: // Constructors and destructor |
43 |
46 |
44 /** |
47 /** |
45 * Creates a new instance of this class. |
48 * Creates a new instance of this class. |
76 |
79 |
77 private: // From MPbk2ControlObserver |
80 private: // From MPbk2ControlObserver |
78 void HandleControlEventL( |
81 void HandleControlEventL( |
79 MPbk2ContactUiControl& aControl, |
82 MPbk2ContactUiControl& aControl, |
80 const TPbk2ControlEvent& aEvent ); |
83 const TPbk2ControlEvent& aEvent ); |
|
84 private: // From MPbk2StoreConfigurationObserver |
|
85 void ConfigurationChanged(); |
|
86 void ConfigurationChangedComplete(); |
81 |
87 |
82 private: // Implementation |
88 private: // Implementation |
83 CPbk2FetchDlgPage( |
89 CPbk2FetchDlgPage( |
84 MPbk2FetchDlg& aFetchDlg, |
90 MPbk2FetchDlg& aFetchDlg, |
85 TInt aControlId ); |
91 TInt aControlId ); |
100 MPbk2FetchDlg& iParentDlg; |
106 MPbk2FetchDlg& iParentDlg; |
101 /// Ref: Names list control |
107 /// Ref: Names list control |
102 CPbk2NamesListControl* iControl; |
108 CPbk2NamesListControl* iControl; |
103 /// Ref: Contact view |
109 /// Ref: Contact view |
104 MVPbkContactViewBase* iContactView; |
110 MVPbkContactViewBase* iContactView; |
|
111 CPbk2StoreConfiguration* iStoreConfiguration; |
105 /// Own: Control id |
112 /// Own: Control id |
106 TInt iControlId; |
113 TInt iControlId; |
107 /// Own: Flag indicating is the control ready |
114 /// Own: Flag indicating is the control ready |
108 TBool iIsReady; |
115 TBool iIsReady; |
109 }; |
116 }; |