|
1 /* |
|
2 * Copyright (c) 2010-2011 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: CIAUpdateSettingDialog |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef ACTION_H_ |
|
19 #define ACTION_H_ |
|
20 |
|
21 #include <hbview.h> |
|
22 #include <hblineedit.h> |
|
23 #include <hblistwidget.h> |
|
24 #include <hblabel.h> |
|
25 #include <hbdataform.h> |
|
26 #include <hbdataformmodel.h> |
|
27 |
|
28 // Access point selection |
|
29 #include <cmmanager.h> |
|
30 |
|
31 // Destination query dialog |
|
32 #include "cmapplsettingsui.h" |
|
33 |
|
34 class CIAUpdateSettingDialog : public HbView |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 explicit CIAUpdateSettingDialog(QGraphicsItem *parent=0); |
|
40 virtual ~CIAUpdateSettingDialog(); |
|
41 |
|
42 public slots: |
|
43 |
|
44 private slots: |
|
45 void toggleChange(QModelIndex startIn, QModelIndex endIn); |
|
46 void showResults(uint retval); |
|
47 void showPreviousView(); |
|
48 void activated(const QModelIndex& index); |
|
49 |
|
50 signals: |
|
51 void toMainView(); |
|
52 |
|
53 private: |
|
54 |
|
55 void queryDestination(); |
|
56 |
|
57 void saveSettingsL(); |
|
58 |
|
59 void initializeView(); |
|
60 |
|
61 uint getInternetSnapIdL(); |
|
62 |
|
63 void getDestinationNameL( uint aItemUid, QString& aItemName ); |
|
64 |
|
65 void initializeFieldsL(); |
|
66 |
|
67 // Form & model |
|
68 HbDataForm* mSettingsForm; |
|
69 HbDataFormModel *mModel; |
|
70 |
|
71 |
|
72 // settings ui |
|
73 CmApplSettingsUi* mApplSett; |
|
74 CmApplSettingsUi::SettingSelection mSelection; |
|
75 |
|
76 // Form items |
|
77 HbDataFormModelItem *mAutoUpdateItem; |
|
78 HbDataFormModelItem *mDestinationItem; |
|
79 |
|
80 // currently selected destination |
|
81 QString mCurrentDest; |
|
82 |
|
83 // NW connection flags |
|
84 bool mSetByNwQuery; // destination set by query / user |
|
85 bool mConnected; // already connected to query ? |
|
86 bool mInitialized; // connection initialized ? |
|
87 |
|
88 //TInt mAccessPointId; |
|
89 |
|
90 // Connection manager |
|
91 RCmManager mCmManager; |
|
92 |
|
93 // for back key catching |
|
94 HbAction* mBackKey; |
|
95 |
|
96 |
|
97 |
|
98 }; |
|
99 |
|
100 #endif /* ACTION_H_ */ |