53 void insertContentItem(IpsServices::SettingItem key, HbDataFormModelItem *value); |
57 void insertContentItem(IpsServices::SettingItem key, HbDataFormModelItem *value); |
54 HbDataFormModelItem *contentItem(IpsServices::SettingItem key) const; |
58 HbDataFormModelItem *contentItem(IpsServices::SettingItem key) const; |
55 bool isOffline(); |
59 bool isOffline(); |
56 |
60 |
57 void setReceivingScheduleGroupItem(HbDataFormModelItem *item); |
61 void setReceivingScheduleGroupItem(HbDataFormModelItem *item); |
|
62 void setServerInfoGroupItem(HbDataFormModelItem *item); |
58 void createOrUpdateReceivingScheduleGroupDynamicItem(IpsServices::SettingItem item); |
63 void createOrUpdateReceivingScheduleGroupDynamicItem(IpsServices::SettingItem item); |
|
64 void createServerInfoGroupDynamicItems(); |
59 |
65 |
60 int getCorrectPortRadioButtonIndex(int currentPort); |
66 int getCorrectPortRadioButtonIndex(int currentPort); |
61 int getCorrectSecureRadioButtonIndex(QVariant secureSockets, QVariant secureSSLWrapper); |
67 int getCorrectSecureRadioButtonIndex(QVariant secureSockets, QVariant secureSSLWrapper); |
62 int getCorrectInboxPathRadioButtonIndex(QVariant folderPath); |
68 int getCorrectInboxPathRadioButtonIndex(QVariant folderPath); |
63 int getCorrectOutgoingPortRadioButtonIndex(int currentPort); |
69 int getCorrectOutgoingPortRadioButtonIndex(int currentPort); |
|
70 int getCorrectOutgoingAuthenticationRadioButtonIndex(); |
64 void handleReceivingScheduleSettingChange(IpsServices::SettingItem settingItem, |
71 void handleReceivingScheduleSettingChange(IpsServices::SettingItem settingItem, |
65 const QVariant &settingValue); |
72 const QVariant &settingValue); |
66 |
73 |
67 signals: |
74 signals: |
68 |
75 |
77 void myNameTextChange(const QString &text); |
84 void myNameTextChange(const QString &text); |
78 void saveMailboxName(); |
85 void saveMailboxName(); |
79 void mailboxNameTextChange(const QString &text); |
86 void mailboxNameTextChange(const QString &text); |
80 void saveMailAddress(); |
87 void saveMailAddress(); |
81 void mailAddressTextChange(const QString &text); |
88 void mailAddressTextChange(const QString &text); |
82 void saveUserName(); |
89 void saveIncomingUserName(); |
83 void userNameTextChange(const QString &text); |
90 void incomingUserNameTextChange(const QString &text); |
84 void savePassword(); |
91 void saveIncomingPassword(); |
|
92 void saveOutgoingUserName(); |
|
93 void outgoingUserNameTextChange(const QString &text); |
|
94 void saveOutgoingPassword(); |
85 void saveReplyTo(); |
95 void saveReplyTo(); |
86 void replyToTextChange(const QString &text); |
96 void replyToTextChange(const QString &text); |
87 void deleteButtonPress(); |
97 void deleteButtonPress(); |
88 void receivingScheduleChange(int index); |
98 void receivingScheduleChange(int index); |
89 void saveIncomingMailServer(); |
99 void saveIncomingMailServer(); |
90 void incomingMailServerTextChange(const QString &text); |
100 void incomingMailServerTextChange(const QString &text); |
91 void saveOutgoingMailServer(); |
101 void saveOutgoingMailServer(); |
92 void outgoingMailServerTextChange(const QString &text); |
102 void outgoingMailServerTextChange(const QString &text); |
93 void incomingPortChange(int index); |
103 void incomingPortChange(int index); |
94 void incomingPortPressed(const QModelIndex &index); |
104 void incomingPortPress(const QModelIndex &index); |
95 void incomingSecureConnectionItemChange(int index); |
105 void incomingSecureConnectionItemChange(int index); |
96 void incomingSecureConnectionPressed(const QModelIndex &index); |
106 void incomingSecureConnectionPress(const QModelIndex &index); |
97 void inboxPathChange(int index); |
107 void folderPathChange(int index); |
98 void inboxPathPressed(const QModelIndex &index); |
108 void folderPathPress(const QModelIndex &index); |
99 void outgoingPortChange(int index); |
109 void outgoingPortChange(int index); |
100 void outgoingPortPressed(const QModelIndex &index); |
110 void outgoingPortPress(const QModelIndex &index); |
101 void outgoingSecureConnectionItemChange(int index); |
111 void outgoingSecureConnectionItemChange(int index); |
102 void outgoingSecureConnectionPressed(const QModelIndex &index); |
112 void outgoingSecureConnectionPress(const QModelIndex &index); |
|
113 void outgoingAuthenticationChange(int index); |
|
114 void outgoingAuthenticationPress(const QModelIndex &index); |
103 |
115 |
104 private slots: |
116 private slots: |
105 |
117 |
106 void receivingWeekdaysModified(HbAction *action); |
118 void receivingWeekdaysModified(); |
107 void startTimeModified(); |
119 void startTimeModified(QTime time); |
108 void endTimeModified(); |
120 void endTimeModified(QTime time); |
109 void refreshPeriodModified(int index); |
121 void refreshPeriodModified(int index); |
|
122 void handleMailboxDelete(HbAction *action); |
|
123 void handleMailboxDeleteUpdate(HbAction *action); |
|
124 void handleUserDefinedIncomingPortInput(HbAction *action); |
|
125 void handleUserDefinedFolderPathInput(HbAction *action); |
|
126 void handleUserDefinedOutgoingPortInput(HbAction *action); |
110 |
127 |
111 private: |
128 private: |
112 |
129 |
113 void updateShowMailInMailbox(); |
130 void updateShowMailInMailbox(); |
114 void deleteReceivingScheduleGroupDynamicItem(IpsServices::SettingItem item); |
131 void deleteReceivingScheduleGroupDynamicItem(IpsServices::SettingItem item); |
115 QString timeFormat(); |
132 void deleteServerInfoGroupDynamicItems(); |
116 int showIncomingPortInputDialog(int currentPort, bool &changed); |
133 void showIncomingPortInputDialog(); |
117 QString showFolderPathInputDialog(bool &changed); |
134 void showFolderPathInputDialog(); |
118 int showOutgoingPortInputDialog(int currentPort, bool &changed); |
135 void showOutgoingPortInputDialog(); |
119 void copyReceivingScheduleSettingsFromActiveProfile(int profileMode); |
136 void copyReceivingScheduleSettingsFromActiveProfile(int profileMode); |
120 |
137 |
121 Q_DISABLE_COPY(NmIpsSettingsHelper) |
138 Q_DISABLE_COPY(NmIpsSettingsHelper) |
122 |
139 |
123 private: // data |
140 private: // data |
125 bool mCurrentLineEditChanged; |
142 bool mCurrentLineEditChanged; |
126 bool mEmitOnline; |
143 bool mEmitOnline; |
127 NmIpsSettingsManagerBase &mSettingsManager; |
144 NmIpsSettingsManagerBase &mSettingsManager; |
128 QMap<IpsServices::SettingItem, HbDataFormModelItem *> mContentItems; |
145 QMap<IpsServices::SettingItem, HbDataFormModelItem *> mContentItems; |
129 HbDataFormModelItem *mReceivingScheduleGroupItem; // Not owned. |
146 HbDataFormModelItem *mReceivingScheduleGroupItem; // Not owned. |
130 HbDataForm &mDataForm; |
147 HbDataFormModelItem *mServerInfoGroupItem; // Not owned. |
131 HbDataFormModel &mDataFormModel; |
148 HbDataForm &mDataForm; |
132 bool mDynamicItemsVisible; |
149 HbDataFormModel &mDataFormModel; |
|
150 HbMessageBox *mDeleteConfirmationDialog; // Owned; |
|
151 HbMessageBox *mDeleteInformationDialog; // Owned; |
|
152 HbInputDialog *mIncomingPortInputDialog; // Owned; |
|
153 HbValidator *mIncomingPortInputValidator; // Owned; |
|
154 HbInputDialog *mFolderPathInputDialog; // Owned; |
|
155 HbInputDialog *mOutgoingPortInputDialog; // Owned; |
|
156 HbValidator *mOutgoingPortInputValidator; // Owned; |
|
157 bool mServerInfoDynamicItemsVisible; |
133 int mRadioButtonPreviousIndex; |
158 int mRadioButtonPreviousIndex; |
134 }; |
159 }; |
135 |
160 |
136 #endif // NMIPSSETTINGSHELPER_H |
161 #endif // NMIPSSETTINGSHELPER_H |