- Timestamp:
- 01/13/08 21:39:50 (11 months ago)
- Location:
- Mulberry/branches/v4.1d1
- Files:
-
- 6 added
- 18 modified
-
MacOS/Resources/Mulberry.PPob (modified) (previous)
-
MacOS/Sources/Application/Other_Dialogs/CChangePswdAcctDialog.cp (modified) (2 diffs)
-
MacOS/Sources/Application/Preferences_Dialog/CPrefsAccount.cp (modified) (11 diffs)
-
MacOS/Sources/Application/Preferences_Dialog/CPrefsAccount.h (modified) (1 diff)
-
MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Account_Panels/Remote_Account_Panels/CPrefsRemoteOptions.cp (modified) (4 diffs)
-
MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Account_Panels/Remote_Account_Panels/CPrefsRemoteOptions.h (modified) (3 diffs)
-
Sources_Common/Application/Preferences/CAdminLock.cp (modified) (6 diffs)
-
Sources_Common/Application/Preferences/CINETAccount.cp (modified) (2 diffs)
-
Sources_Common/Application/Preferences/CINETAccount.h (modified) (1 diff)
-
Sources_Common/Application/Preferences/COptionsAccount.cp (added)
-
Sources_Common/Application/Preferences/COptionsAccount.h (added)
-
Sources_Common/Application/Preferences/COptionsMap.cp (modified) (1 diff)
-
Sources_Common/Application/Preferences/COptionsMap.h (modified) (3 diffs)
-
Sources_Common/Application/Preferences/CPreferences.cp (modified) (5 diffs)
-
Sources_Common/Application/Preferences/CPreferences.h (modified) (2 diffs)
-
Sources_Common/Application/Preferences/CPreferencesRW.cp (modified) (1 diff)
-
Sources_Common/Mail/Control/CMailControl.cp (modified) (3 diffs)
-
Sources_Common/Mail/Protocols/COptionsProtocol.cp (modified) (5 diffs)
-
Sources_Common/Mail/Protocols/COptionsProtocol.h (modified) (3 diffs)
-
Sources_Common/Preferences_Store (added)
-
Sources_Common/Preferences_Store/Clients (added)
-
Sources_Common/Preferences_Store/Clients/CWebDAVPrefsClient.cpp (added)
-
Sources_Common/Preferences_Store/Clients/CWebDAVPrefsClient.h (added)
-
Sources_Common/Resources/UI.xml (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
Mulberry/branches/v4.1d1/MacOS/Sources/Application/Other_Dialogs/CChangePswdAcctDialog.cp
r74 r150 96 96 97 97 // Add each remote account 98 for(C INETAccountList::const_iterator iter = CPreferences::sPrefs->mRemoteAccounts.GetValue().begin();98 for(COptionsAccountList::const_iterator iter = CPreferences::sPrefs->mRemoteAccounts.GetValue().begin(); 99 99 iter != CPreferences::sPrefs->mRemoteAccounts.GetValue().end(); iter++, menu_pos++) 100 100 { … … 223 223 224 224 // Check each remote account 225 for(C INETAccountList::const_iterator iter = CPreferences::sPrefs->mRemoteAccounts.GetValue().begin();225 for(COptionsAccountList::const_iterator iter = CPreferences::sPrefs->mRemoteAccounts.GetValue().begin(); 226 226 iter != CPreferences::sPrefs->mRemoteAccounts.GetValue().end(); iter++) 227 227 { -
Mulberry/branches/v4.1d1/MacOS/Sources/Application/Preferences_Dialog/CPrefsAccount.cp
r97 r150 268 268 269 269 // Add each remote account 270 for(C INETAccountList::const_iterator iter = mCopyPrefs->mRemoteAccounts.GetValue().begin();270 for(COptionsAccountList::const_iterator iter = mCopyPrefs->mRemoteAccounts.GetValue().begin(); 271 271 iter != mCopyPrefs->mRemoteAccounts.GetValue().end(); iter++, menu_pos++) 272 272 ::AppendItemToMenu(menuH, menu_pos, (*iter)->GetName(), false, cicn_RemoteAccount); … … 359 359 break; 360 360 361 case menu_AccountWebDAVOptions: 361 362 case menu_AccountIMSPOptions: 362 363 case menu_AccountACAPOptions: … … 431 432 break; 432 433 434 case menu_AccountWebDAVOptions: 433 435 case menu_AccountIMSPOptions: 434 436 case menu_AccountACAPOptions: 435 acct = new C INETAccount;437 acct = new COptionsAccount; 436 438 switch(acct_type) 437 439 { 440 case menu_AccountWebDAVOptions: 441 acct->SetServerType(CINETAccount::eWebDAVPrefs); 442 break; 438 443 case menu_AccountIMSPOptions: 439 444 acct->SetServerType(CINETAccount::eIMSP); … … 605 610 else if (typeid(*acct) == typeid(CSMTPAccount)) 606 611 acct_list = (CINETAccountList*) &mCopyPrefs->mSMTPAccounts.GetValue(); 607 else if (typeid(*acct) == typeid(C INETAccount))612 else if (typeid(*acct) == typeid(COptionsAccount)) 608 613 acct_list = (CINETAccountList*) &mCopyPrefs->mRemoteAccounts.GetValue(); 609 614 else if (typeid(*acct) == typeid(CAddressAccount)) … … 640 645 else if (typeid(*acct) == typeid(CSMTPAccount)) 641 646 mCopyPrefs->mSMTPAccounts.SetDirty(); 642 else if (typeid(*acct) == typeid(C INETAccount))647 else if (typeid(*acct) == typeid(COptionsAccount)) 643 648 mCopyPrefs->mRemoteAccounts.SetDirty(); 644 649 else if (typeid(*acct) == typeid(CAddressAccount)) … … 696 701 else if (typeid(*acct) == typeid(CSMTPAccount)) 697 702 mCopyPrefs->mSMTPAccounts.SetDirty(); 698 else if (typeid(*acct) == typeid(C INETAccount))703 else if (typeid(*acct) == typeid(COptionsAccount)) 699 704 { 700 705 // Prevent delete of last remote account if set to remote … … 818 823 mIsSMTP = true; 819 824 } 820 else if (typeid(*account) == typeid(C INETAccount))825 else if (typeid(*account) == typeid(COptionsAccount)) 821 826 { 822 827 switch(account->GetServerType()) 823 828 { 829 case CINETAccount::eWebDAVPrefs: 830 copyStr.FromResource("UI::Preferences::AccountWebDAVOptions"); 831 break; 824 832 case CINETAccount::eIMSP: 825 833 copyStr.FromResource("UI::Preferences::AccountIMSPOptions"); … … 912 920 else if (typeid(*current) == typeid(CSMTPAccount)) 913 921 account = new CSMTPAccount(*(CSMTPAccount*) current); 914 else if (typeid(*current) == typeid(C INETAccount))915 account = new C INETAccount(*(CINETAccount*) current);922 else if (typeid(*current) == typeid(COptionsAccount)) 923 account = new COptionsAccount(*(COptionsAccount*) current); 916 924 else if (typeid(*current) == typeid(CAddressAccount)) 917 925 account = new CAddressAccount(*(CAddressAccount*) current); … … 940 948 else if (typeid(*current) == typeid(CSMTPAccount)) 941 949 same = (*((CSMTPAccount*) current) == *((CSMTPAccount*) account)); 942 else if (typeid(*current) == typeid(C INETAccount))943 same = (*((C INETAccount*) current) == *((CINETAccount*) account));950 else if (typeid(*current) == typeid(COptionsAccount)) 951 same = (*((COptionsAccount*) current) == *((COptionsAccount*) account)); 944 952 else if (typeid(*current) == typeid(CAddressAccount)) 945 953 same = (*((CAddressAccount*) current) == *((CAddressAccount*) account)); … … 956 964 else if (typeid(*account) == typeid(CSMTPAccount)) 957 965 mCopyPrefs->mSMTPAccounts.SetDirty(); 958 else if (typeid(*account) == typeid(C INETAccount))966 else if (typeid(*account) == typeid(COptionsAccount)) 959 967 mCopyPrefs->mRemoteAccounts.SetDirty(); 960 968 else if (typeid(*account) == typeid(CAddressAccount)) … … 1064 1072 else if (typeid(*account) == typeid(CSMTPAccount)) 1065 1073 panel = paneid_PrefsSMTPAccount; 1066 else if (typeid(*account) == typeid(C INETAccount))1074 else if (typeid(*account) == typeid(COptionsAccount)) 1067 1075 panel = paneid_PrefsRemoteAccount; 1068 1076 else if (typeid(*account) == typeid(CAddressAccount)) -
Mulberry/branches/v4.1d1/MacOS/Sources/Application/Preferences_Dialog/CPrefsAccount.h
r97 r150 62 62 const ResIDT menu_AccountLocalMailbox = 3; 63 63 const ResIDT menu_AccountSMTPMailbox = 5; 64 const ResIDT menu_AccountIMSPOptions = 7; 65 const ResIDT menu_AccountACAPOptions = 8; 66 const ResIDT menu_AccountCardDAVAdbk = 10; 67 const ResIDT menu_AccountIMSPAdbk = 11; 68 const ResIDT menu_AccountACAPAdbk = 12; 69 const ResIDT menu_AccountLDAPSearch = 14; 70 const ResIDT menu_AccountManageSIEVE = 16; 71 const ResIDT menu_AccountCalDAVCalendar = 18; 72 const ResIDT menu_AccountWebDAVCalendar = 19; 64 const ResIDT menu_AccountWebDAVOptions = 7; 65 const ResIDT menu_AccountIMSPOptions = 8; 66 const ResIDT menu_AccountACAPOptions = 9; 67 const ResIDT menu_AccountCardDAVAdbk = 11; 68 const ResIDT menu_AccountIMSPAdbk = 12; 69 const ResIDT menu_AccountACAPAdbk = 13; 70 const ResIDT menu_AccountLDAPSearch = 15; 71 const ResIDT menu_AccountManageSIEVE = 17; 72 const ResIDT menu_AccountCalDAVCalendar = 19; 73 const ResIDT menu_AccountWebDAVCalendar = 20; 73 74 74 75 const ResIDT cicn_MailAccount = 4; -
Mulberry/branches/v4.1d1/MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Account_Panels/Remote_Account_Panels/CPrefsRemoteOptions.cp
r74 r150 20 20 #include "CPrefsRemoteOptions.h" 21 21 22 #include "CINETAccount.h" 22 #include "COptionsAccount.h" 23 #include "CTextFieldX.h" 23 24 24 25 #include <LCheckBox.h> … … 53 54 // Get controls 54 55 mUseRemote = (LCheckBox*) FindPaneByID(paneid_PrefsRemoteOptionsUse); 56 mBaseRURL = (CTextFieldX*) FindPaneByID(paneid_PrefsRemoteOptionsBaseRURL); 55 57 } 56 58 … … 58 60 void CPrefsRemoteOptions::SetData(void* data) 59 61 { 60 C INETAccount* acct = (CINETAccount*) data;62 COptionsAccount* acct = (COptionsAccount*) data; 61 63 62 64 // Copy info 63 65 mUseRemote->SetValue(acct->GetLogonAtStart()); 66 if (acct->GetServerType() == CINETAccount::eWebDAVPrefs) 67 mBaseRURL->SetText(acct->GetBaseRURL()); 68 else 69 { 70 FindPaneByID(paneid_PrefsRemoteOptionsBaseRURLText)->Hide(); 71 mBaseRURL->Hide(); 72 } 64 73 } 65 74 … … 67 76 void CPrefsRemoteOptions::UpdateData(void* data) 68 77 { 69 C INETAccount* acct = (CINETAccount*) data;78 COptionsAccount* acct = (COptionsAccount*) data; 70 79 71 80 acct->SetLoginAtStart(mUseRemote->GetValue()==1); 81 if (acct->GetServerType() == CINETAccount::eWebDAVPrefs) 82 acct->SetBaseRURL(mBaseRURL->GetText()); 72 83 } -
Mulberry/branches/v4.1d1/MacOS/Sources/Application/Preferences_Dialog/Sub-panels/Account_Panels/Remote_Account_Panels/CPrefsRemoteOptions.h
r74 r150 29 29 const PaneIDT paneid_PrefsRemoteOptions = 5022; 30 30 const PaneIDT paneid_PrefsRemoteOptionsUse = 'USES'; 31 const PaneIDT paneid_PrefsRemoteOptionsBaseRURLText = 'RTXT'; 32 const PaneIDT paneid_PrefsRemoteOptionsBaseRURL = 'RURL'; 31 33 32 34 // Mesages … … 35 37 36 38 // Classes 39 class CTextFieldX; 37 40 class LCheckBox; 38 41 … … 41 44 private: 42 45 LCheckBox* mUseRemote; 46 CTextFieldX* mBaseRURL; 43 47 44 48 public: -
Mulberry/branches/v4.1d1/Sources_Common/Application/Preferences/CAdminLock.cp
r19 r150 178 178 179 179 // Remote server 180 for(C INETAccountList::const_iterator iter = prefs->mRemoteAccounts.GetValue().begin(); iter != prefs->mRemoteAccounts.GetValue().end(); iter++)180 for(COptionsAccountList::const_iterator iter = prefs->mRemoteAccounts.GetValue().begin(); iter != prefs->mRemoteAccounts.GetValue().end(); iter++) 181 181 { 182 182 if (!(*iter)->GetServerIP().empty()) … … 257 257 258 258 // Remote server 259 for(C INETAccountList::iterator iter = prefs->mRemoteAccounts.Value().begin(); iter != prefs->mRemoteAccounts.Value().end(); iter++)259 for(COptionsAccountList::iterator iter = prefs->mRemoteAccounts.Value().begin(); iter != prefs->mRemoteAccounts.Value().end(); iter++) 260 260 { 261 261 cdstring serverip = (*iter)->GetServerIP(); … … 367 367 remote_set = mLockedPrefsServerAddr.empty(); 368 368 pos = 0; 369 for(C INETAccountList::iterator iter = prefs->mRemoteAccounts.Value().begin(); iter != prefs->mRemoteAccounts.Value().end(); iter++, pos++)369 for(COptionsAccountList::iterator iter = prefs->mRemoteAccounts.Value().begin(); iter != prefs->mRemoteAccounts.Value().end(); iter++, pos++) 370 370 { 371 371 if (remote_set) … … 455 455 456 456 // Remote server 457 for(C INETAccountList::iterator iter = prefs->mRemoteAccounts.Value().begin(); iter != prefs->mRemoteAccounts.Value().end(); iter++)457 for(COptionsAccountList::iterator iter = prefs->mRemoteAccounts.Value().begin(); iter != prefs->mRemoteAccounts.Value().end(); iter++) 458 458 { 459 459 // Remove port number which shuld not be considered part of the domain … … 516 516 517 517 // Change each plain text authenticator 518 for(C INETAccountList::const_iterator iter = prefs->mRemoteAccounts.GetValue().begin(); iter != prefs->mRemoteAccounts.GetValue().end(); iter++)518 for(COptionsAccountList::const_iterator iter = prefs->mRemoteAccounts.GetValue().begin(); iter != prefs->mRemoteAccounts.GetValue().end(); iter++) 519 519 { 520 520 if ((*iter)->GetAuthenticator().RequiresUserPswd()) … … 597 597 598 598 // Remote server 599 for(C INETAccountList::const_iterator iter = prefs->mRemoteAccounts.GetValue().begin(); iter != prefs->mRemoteAccounts.GetValue().end(); iter++)599 for(COptionsAccountList::const_iterator iter = prefs->mRemoteAccounts.GetValue().begin(); iter != prefs->mRemoteAccounts.GetValue().end(); iter++) 600 600 UpgradeAuthenticator(*iter); 601 601 -
Mulberry/branches/v4.1d1/Sources_Common/Application/Preferences/CINETAccount.cp
r86 r150 43 43 "SMTP", 44 44 "NNTP", 45 "WebDAV Prefs", 45 46 "IMSP", 46 47 "ACAP", … … 144 145 145 146 // HTTP only does SSL - no STARTTLS 147 case eWebDAVPrefs: 146 148 case eHTTPCalendar: 147 149 case eWebDAVCalendar: -
Mulberry/branches/v4.1d1/Sources_Common/Application/Preferences/CINETAccount.h
r86 r150 44 44 eSMTP, 45 45 eNNTP, 46 eWebDAVPrefs, 46 47 eIMSP, 47 48 eACAP, -
Mulberry/branches/v4.1d1/Sources_Common/Application/Preferences/COptionsMap.cp
r19 r150 751 751 key.compare_end(cRemoteAccountsKey_2_0)) 752 752 // Create remote account 753 acct = new C INETAccount;753 acct = new COptionsAccount; 754 754 else if (key.compare_end(cAddressAccountsKey_1_3) || 755 755 key.compare_end(cAddressAccountsKey_1_4) || -
Mulberry/branches/v4.1d1/Sources_Common/Application/Preferences/COptionsMap.h
r54 r150 33 33 #include "CManageSIEVEAccount.h" 34 34 #include "CMIMEMap.h" 35 #include "COptionsAccount.h" 35 36 #include "CSearchStyle.h" 36 37 #include "CSMTPAccount.h" … … 110 111 { return WriteValue(key, (const CINETAccountList&) value); } 111 112 virtual bool WriteValue(const cdstring& key, const CSMTPAccountList& value) 113 { return WriteValue(key, (const CINETAccountList&) value); } 114 virtual bool WriteValue(const cdstring& key, const COptionsAccountList& value) 112 115 { return WriteValue(key, (const CINETAccountList&) value); } 113 116 virtual bool WriteValue(const cdstring& key, const CAddressAccountList& value) … … 167 170 virtual bool ReadValue(const cdstring& key, CSMTPAccountList& value, NumVersion vers_prefs) 168 171 { return ReadValue(key, (CINETAccountList&) value, vers_prefs); } 172 virtual bool ReadValue(const cdstring& key, COptionsAccountList& value, NumVersion vers_prefs) 173 { return ReadValue(key, (CINETAccountList&) value, vers_prefs); } 169 174 virtual bool ReadValue(const cdstring& key, CAddressAccountList& value, NumVersion vers_prefs) 170 175 { return ReadValue(key, (CINETAccountList&) value, vers_prefs); } -
Mulberry/branches/v4.1d1/Sources_Common/Application/Preferences/CPreferences.cp
r86 r150 331 331 332 332 // Test each remote options account status 333 for(C INETAccountList::const_iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++)333 for(COptionsAccountList::const_iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++) 334 334 { 335 335 extra_txt = (*iter)->GetName(); … … 577 577 { 578 578 // Copy to all remote accounts 579 for(C INETAccountList::iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++)579 for(COptionsAccountList::iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++) 580 580 { 581 581 if ((*iter)->GetAuthenticator().RequiresUserPswd()) … … 594 594 595 595 // Copy to all remote accounts 596 for(C INETAccountList::iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++)596 for(COptionsAccountList::iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++) 597 597 { 598 598 if ((*iter)->GetAuthenticator().RequiresUserPswd()) … … 712 712 713 713 // Check remote account uids 714 for(C INETAccountList::iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++)714 for(COptionsAccountList::iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++) 715 715 { 716 716 if ((*iter)->GetAuthenticator().RequiresUserPswd()) … … 1086 1086 } 1087 1087 out << " ) Prefs ("; 1088 bool prefs_webdav = false; 1088 1089 bool prefs_imsp = false; 1089 1090 bool prefs_acap = false; 1090 for(C INETAccountList::const_iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++)1091 for(COptionsAccountList::const_iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++) 1091 1092 { 1092 1093 switch((*iter)->GetServerType()) 1093 1094 { 1095 case CINETAccount::eWebDAVPrefs: 1096 if (!prefs_webdav) 1097 { 1098 out << " WebDAV"; 1099 prefs_webdav = true; 1100 } 1101 break; 1094 1102 case CINETAccount::eIMSP: 1095 1103 if (!prefs_imsp) -
Mulberry/branches/v4.1d1/Sources_Common/Application/Preferences/CPreferences.h
r86 r150 36 36 #include "CPreferenceEnum.h" 37 37 #include "CPreferenceValue.h" 38 #include "COptionsAccount.h" 38 39 #include "CSearchStyle.h" 39 40 #include "CSMTPAccount.h" … … 115 116 CPreferenceValueMap<CMailAccountList> mMailAccounts; // List of mail accounts 116 117 CPreferenceValueMap<CSMTPAccountList> mSMTPAccounts; // List of SMTP accounts 117 CPreferenceValueMap<C INETAccountList>mRemoteAccounts; // List of remote options accounts118 CPreferenceValueMap<COptionsAccountList> mRemoteAccounts; // List of remote options accounts 118 119 CPreferenceValueMap<CManageSIEVEAccountList> mSIEVEAccounts; // List of ManageSIEVE accounts 119 120 CPreferenceValueMap<cdstring> mMailDomain; // Mail domain -
Mulberry/branches/v4.1d1/Sources_Common/Application/Preferences/CPreferencesRW.cp
r86 r150 947 947 if (!mRemoteIP.mValue.empty()) 948 948 { 949 C INETAccount* remote = new CINETAccount;949 COptionsAccount* remote = new COptionsAccount; 950 950 951 951 // Make name first part of IP address -
Mulberry/branches/v4.1d1/Sources_Common/Mail/Control/CMailControl.cp
r114 r150 929 929 case CINETAccount::eIMSP: 930 930 case CINETAccount::eACAP: 931 case CINETAccount::eCardDAVAdbk: 931 932 icon = ICNx_UserPswdAddressBook; 932 933 title = rsrc::GetString("Alerts::UserPswd::ADBKLOGIN"); … … 971 972 case CINETAccount::eIMSP: 972 973 case CINETAccount::eACAP: 974 case CINETAccount::eCardDAVAdbk: 973 975 icon = IDI_USERPSWD_ADBK; 974 976 title = rsrc::GetString("Alerts::UserPswd::ADBKLOGIN"); … … 1019 1021 case CINETAccount::eIMSP: 1020 1022 case CINETAccount::eACAP: 1023 case CINETAccount::eCardDAVAdbk: 1021 1024 icon = IDI_USERPSWD_ADBK; 1022 1025 title = rsrc::GetString("Alerts::UserPswd::ADBKLOGIN"); -
Mulberry/branches/v4.1d1/Sources_Common/Mail/Protocols/COptions