84 found = true; |
84 found = true; |
85 break; |
85 break; |
86 case IpsServices::IncomingMailServer: |
86 case IpsServices::IncomingMailServer: |
87 settingValue = XQConversions::s60DescToQString(mPop3Settings->ServerAddress()); |
87 settingValue = XQConversions::s60DescToQString(mPop3Settings->ServerAddress()); |
88 found = true; |
88 found = true; |
89 break; |
89 break; |
90 case IpsServices::IncomingPort: |
90 case IpsServices::IncomingPort: |
91 settingValue = mPop3Settings->Port(); |
91 settingValue = mPop3Settings->Port(); |
92 found = true; |
92 found = true; |
93 break; |
93 break; |
94 case IpsServices::IncomingSecureSockets: |
94 case IpsServices::IncomingSecureSockets: |
95 settingValue = mPop3Settings->SecureSockets(); |
95 settingValue = mPop3Settings->SecureSockets(); |
96 found = true; |
96 found = true; |
97 break; |
97 break; |
98 case IpsServices::IncomingSSLWrapper: |
98 case IpsServices::IncomingSSLWrapper: |
99 settingValue = mPop3Settings->SSLWrapper(); |
99 settingValue = mPop3Settings->SSLWrapper(); |
100 found = true; |
100 found = true; |
101 break; |
101 break; |
102 default: |
102 default: |
149 delete tmp; |
149 delete tmp; |
150 if (err==KErrNone) { |
150 if (err==KErrNone) { |
151 ret = saveSettings(); |
151 ret = saveSettings(); |
152 } |
152 } |
153 break; |
153 break; |
154 case IpsServices::IncomingPort: |
154 case IpsServices::IncomingPort: |
155 mPop3Settings->SetPort(settingValue.toInt()); |
155 mPop3Settings->SetPort(settingValue.toInt()); |
156 ret = saveSettings(); |
156 ret = saveSettings(); |
157 break; |
157 break; |
158 case IpsServices::IncomingSecureSockets: |
158 case IpsServices::IncomingSecureSockets: |
159 mPop3Settings->SetSecureSockets(settingValue.toBool()); |
159 mPop3Settings->SetSecureSockets(settingValue.toBool()); |
160 ret = saveSettings(); |
160 ret = saveSettings(); |
161 break; |
161 break; |
162 case IpsServices::IncomingSSLWrapper: |
162 case IpsServices::IncomingSSLWrapper: |
163 mPop3Settings->SetSSLWrapper(settingValue.toBool()); |
163 mPop3Settings->SetSSLWrapper(settingValue.toBool()); |
164 ret = saveSettings(); |
164 ret = saveSettings(); |
165 break; |
165 break; |
|
166 case IpsServices::ReceptionInboxSyncWindow: { |
|
167 int inboxValue = settingValue.toInt(); |
|
168 if (inboxValue == 0) { |
|
169 // for CImPop3Settings all messages value is -1 |
|
170 inboxValue = -1; |
|
171 } |
|
172 mPop3Settings->SetInboxSynchronisationLimit(inboxValue); |
|
173 ret = saveSettings(); |
|
174 ret = NmIpsSettingsManagerBase::writeSetting(settingItem, settingValue); |
|
175 break; |
|
176 } |
166 case IpsServices::Connection: |
177 case IpsServices::Connection: |
167 ret = saveIAPSettings(settingValue.toUInt()); |
178 ret = saveIAPSettings(settingValue.toUInt()); |
168 // Fallthrough so SMTP IAP settings are also updated accordingly. |
179 // Fallthrough so SMTP IAP settings are also updated accordingly. |
169 default: |
180 default: |
170 ret = NmIpsSettingsManagerBase::writeSetting(settingItem, settingValue); |
181 ret = NmIpsSettingsManagerBase::writeSetting(settingItem, settingValue); |
196 int NmIpsPop3SettingsManager::determineDefaultIncomingPort() |
207 int NmIpsPop3SettingsManager::determineDefaultIncomingPort() |
197 { |
208 { |
198 int port(IpsServices::standardPop3Port); |
209 int port(IpsServices::standardPop3Port); |
199 if (mPop3Settings->SSLWrapper()) { |
210 if (mPop3Settings->SSLWrapper()) { |
200 port = IpsServices::securePop3Port; |
211 port = IpsServices::securePop3Port; |
201 } |
212 } |
202 return port; |
213 return port; |
203 } |
214 } |
204 |
215 |
205 /*! |
216 /*! |
206 Stores the POP3 specific settings. |
217 Stores the POP3 specific settings. |