1 /* |
|
2 * Copyright (c) 2007-2008 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: Class header for CWsfConnectedDetailsDialog |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef C_WSFCONNECTEDDETAILSDIALOG_H |
|
19 #define C_WSFCONNECTEDDETAILSDIALOG_H |
|
20 |
|
21 |
|
22 // INCLUDES |
|
23 #include <aknlistquerydialog.h> |
|
24 |
|
25 // INTERNAL INCLUDES |
|
26 #include "wsfconnecteddetailscontroller.h" |
|
27 |
|
28 // FORWARD DECLARATIONS |
|
29 class CWsfConnectedDetailsModel; |
|
30 class TWsfConnectedDetailsController; |
|
31 class CWsfActiveTimeUpdater; |
|
32 |
|
33 |
|
34 // CLASS DECLARATION |
|
35 |
|
36 /** |
|
37 * CWsfConnectedDetailsDialog class. |
|
38 * This class is used to display the Connected Details information |
|
39 */ |
|
40 class CWsfConnectedDetailsDialog : public CAknListQueryDialog |
|
41 { |
|
42 public: // Constructors and destructor |
|
43 |
|
44 /** |
|
45 * Two-phase construction. |
|
46 */ |
|
47 static CWsfConnectedDetailsDialog* NewL(); |
|
48 |
|
49 /** |
|
50 * Two-phased constructor. |
|
51 */ |
|
52 static CWsfConnectedDetailsDialog* NewLC(); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~CWsfConnectedDetailsDialog(); |
|
58 |
|
59 private: |
|
60 |
|
61 /* |
|
62 * Second-phase constructor. |
|
63 */ |
|
64 void ConstructL(); |
|
65 |
|
66 /** |
|
67 * C++ default constructor. |
|
68 * @param aSelectionIndexArray The items which are selected within |
|
69 * the dialogs list box list. |
|
70 */ |
|
71 CWsfConnectedDetailsDialog( |
|
72 CListBoxView::CSelectionIndexArray* aSelectionIndexArray ); |
|
73 |
|
74 public: // New functions |
|
75 |
|
76 /** |
|
77 * Refresh the content list box of the dialog |
|
78 * @param aItemTextArray - items to be show on listbox |
|
79 */ |
|
80 void UpdateListBox( MDesCArray* aItemTextArray ); |
|
81 |
|
82 /** |
|
83 * Return controller interface |
|
84 * @return controller interface |
|
85 */ |
|
86 MWsfDetailsViewControllerIf& Controller(); |
|
87 |
|
88 |
|
89 /** |
|
90 * Set list model of the dialog. |
|
91 * @param aModel List model of the dialog |
|
92 */ |
|
93 void SetListModel( CWsfConnectedDetailsModel* aModel ); |
|
94 |
|
95 /** |
|
96 * Super class method overriden to prevent dialog window to be |
|
97 * shut down by pressing anywhere in the dialog (only pressing |
|
98 * the OK button should close the dialog. |
|
99 * @param aListBox - |
|
100 * @param TListBoxEvent - |
|
101 */ |
|
102 void HandleListBoxEventL( CEikListBox* aListBox, |
|
103 TListBoxEvent aEventType ); |
|
104 |
|
105 private: // from CEikDialog |
|
106 |
|
107 /** |
|
108 * sets the default value to the dialog. |
|
109 */ |
|
110 void PreLayoutDynInitL(); |
|
111 |
|
112 private: // Data |
|
113 |
|
114 /** |
|
115 * Reference for listbox |
|
116 * Not own. |
|
117 */ |
|
118 CEikListBox* iList; |
|
119 |
|
120 /** |
|
121 * Reference for list box model |
|
122 * Not own. |
|
123 */ |
|
124 CTextListBoxModel* iModel; |
|
125 |
|
126 /* |
|
127 * Connected Details Dilaog Controller |
|
128 */ |
|
129 TWsfConnectedDetailsController iController; |
|
130 |
|
131 /* |
|
132 * Reference for the connected details model |
|
133 * Not own. |
|
134 */ |
|
135 CWsfConnectedDetailsModel* iListModel; |
|
136 |
|
137 /* |
|
138 * Reference for the time updater |
|
139 * Own. |
|
140 */ |
|
141 CWsfActiveTimeUpdater* iActiveUpdater; |
|
142 }; |
|
143 |
|
144 #endif // C_WSFCONNECTEDDETAILSDIALOG_H |
|
145 |
|
146 // End of File |
|
147 |
|