Lines Matching refs:settings

66 BodyDownloadConfigView::SetTo(const BMailProtocolSettings& settings)
68 int32 limit = settings.GetInt32(kPartialDownloadLimit, -1);
84 BodyDownloadConfigView::SaveInto(BMailAddOnSettings& settings) const
87 settings.SetInt32(kPartialDownloadLimit,
90 settings.RemoveName(kPartialDownloadLimit);
183 MailProtocolConfigView::SetTo(const BMailProtocolSettings& settings)
185 BString host = settings.FindString("server");
186 if (settings.HasInt32("port"))
187 host << ':' << settings.FindInt32("port");
192 fUserControl->SetText(settings.FindString("username"));
195 char* password = get_passwd(&settings, "cpasswd");
200 fPasswordControl->SetText(settings.FindString("password"));
203 if (settings.HasInt32("flavor") && fFlavorField != NULL) {
205 settings.FindInt32("flavor")))
209 if (settings.HasInt32("auth_method") && fAuthenticationField != NULL) {
211 settings.FindInt32("auth_method"))) {
218 fLeaveOnServerCheckBox->SetValue(settings.FindBool(
223 fRemoveFromServerCheckBox->SetValue(settings.FindBool(
226 settings.FindBool("leave_mail_on_server"));
230 fBodyDownloadConfig->SetTo(settings);
271 MailProtocolConfigView::SaveInto(BMailAddOnSettings& settings) const
281 settings.SetString("server", hostName);
285 settings.SetInt32("port", port);
287 settings.RemoveName("port");
289 settings.RemoveName("server");
290 settings.RemoveName("port");
294 settings.SetString("username", fUserControl->Text());
296 settings.RemoveName("username");
299 settings.RemoveName("password");
302 set_passwd(&settings, "cpasswd", fPasswordControl->Text());
304 settings.RemoveName("cpasswd");
306 _StoreIndexOfMarked(settings, "flavor", fFlavorField);
307 _StoreIndexOfMarked(settings, "auth_method", fAuthenticationField);
309 _StoreCheckBox(settings, "leave_mail_on_server", fLeaveOnServerCheckBox);
310 _StoreCheckBox(settings, "delete_remote_when_local",
314 return fBodyDownloadConfig->SaveInto(settings);