18 #ifndef NMIPSSETTINGS_H |
18 #ifndef NMIPSSETTINGS_H |
19 #define NMIPSSETTINGS_H |
19 #define NMIPSSETTINGS_H |
20 |
20 |
21 #include <QObject> |
21 #include <QObject> |
22 #include <QVariant> |
22 #include <QVariant> |
|
23 #include <QPersistentModelIndex> |
|
24 #include <AlwaysOnlineManagerClient.h> |
23 |
25 |
24 #include "nmsettingsplugininterface.h" |
26 #include "nmsettingsplugininterface.h" |
25 #include "nmsettingscommon.h" |
27 #include "nmsettingscommon.h" |
26 |
28 |
|
29 class QTranslator; |
|
30 class QModelIndex; |
27 class HbDataForm; |
31 class HbDataForm; |
28 class HbDataFormModel; |
32 class HbDataFormModel; |
29 class HbDataFormModelItem; |
33 class HbDataFormModelItem; |
30 class NmId; |
34 class NmId; |
31 class NmIpsSettingsHelper; |
35 class NmIpsSettingsHelper; |
32 class NmIpsSettingsManagerBase; |
36 class NmIpsSettingsManagerBase; |
33 class QTranslator; |
|
34 class QModelIndex; |
|
35 |
37 |
36 class NmIpsSettingsPlugin : public QObject, public NmSettingsPluginInterface |
38 class NmIpsSettingsPlugin : public QObject, public NmSettingsPluginInterface |
37 { |
39 { |
38 Q_OBJECT |
40 Q_OBJECT |
39 Q_INTERFACES(NmSettingsPluginInterface) |
41 Q_INTERFACES(NmSettingsPluginInterface) |
57 void aboutToClose(); |
59 void aboutToClose(); |
58 |
60 |
59 private slots: |
61 private slots: |
60 |
62 |
61 void createUserDefinedMode(); |
63 void createUserDefinedMode(); |
62 void showMailInInboxModified(int index); |
64 void showMailInInboxModified(QPersistentModelIndex, QVariant value); |
63 |
65 |
64 private: |
66 private: |
65 |
67 |
66 void initGroupItems(); |
68 void initGroupItems(); |
67 void initPreferenceItems(HbDataFormModelItem &item) const; |
69 void initPreferenceItems(HbDataFormModelItem &item) const; |
68 void initReceivingScheduleItems(HbDataFormModelItem &item); |
70 void initReceivingScheduleItems(HbDataFormModelItem &item); |
69 void initUserInfoItems(HbDataFormModelItem &item) const; |
71 void initUserInfoItems(HbDataFormModelItem &item) const; |
70 void initServerInfoItems(HbDataFormModelItem &item) const; |
72 void initServerInfoItems(HbDataFormModelItem &item) const; |
|
73 void setAlwaysOnlineState(TAlwaysOnlineServerAPICommands command, NmId mailboxId) const; |
71 |
74 |
72 Q_DISABLE_COPY(NmIpsSettingsPlugin) |
75 Q_DISABLE_COPY(NmIpsSettingsPlugin) |
73 |
76 |
74 private: |
77 private: // data. |
75 |
78 |
76 // Owned. |
79 NmIpsSettingsHelper *mSettingsHelper; // Owned. |
77 NmIpsSettingsHelper *mSettingsHelper; |
80 NmIpsSettingsManagerBase *mSettingsManager; // Owned. |
78 // Owned. |
81 HbDataFormModel *mModel; // Not owned. |
79 NmIpsSettingsManagerBase *mSettingsManager; |
82 HbDataForm *mForm; // Not owned. |
80 // Not owned. |
|
81 HbDataFormModel *mModel; |
|
82 // Not owned. |
|
83 HbDataForm *mForm; |
|
84 }; |
83 }; |
85 |
84 |
86 #endif // NMIPSSETTINGS_H |
85 #endif // NMIPSSETTINGS_H |