|
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 private: // from CEikDialog |
|
96 |
|
97 /** |
|
98 * sets the default value to the dialog. |
|
99 */ |
|
100 void PreLayoutDynInitL(); |
|
101 |
|
102 private: // Data |
|
103 |
|
104 /** |
|
105 * Reference for listbox |
|
106 * Not own. |
|
107 */ |
|
108 CEikListBox* iList; |
|
109 |
|
110 /** |
|
111 * Reference for list box model |
|
112 * Not own. |
|
113 */ |
|
114 CTextListBoxModel* iModel; |
|
115 |
|
116 /* |
|
117 * Connected Details Dilaog Controller |
|
118 */ |
|
119 TWsfConnectedDetailsController iController; |
|
120 |
|
121 /* |
|
122 * Reference for the connected details model |
|
123 * Not own. |
|
124 */ |
|
125 CWsfConnectedDetailsModel* iListModel; |
|
126 |
|
127 /* |
|
128 * Reference for the time updater |
|
129 * Own. |
|
130 */ |
|
131 CWsfActiveTimeUpdater* iActiveUpdater; |
|
132 }; |
|
133 |
|
134 #endif // C_WSFCONNECTEDDETAILSDIALOG_H |
|
135 |
|
136 // End of File |
|
137 |