Show
Ignore:
Timestamp:
01/13/08 21:39:50 (11 months ago)
Author:
cyrusdaboo
Message:

Support for reading/writing preferences as a flat file on a WebDAV server. This is the final piece to
provide a full replacement for IMSP/ACAP via WebDAV technologies. Ultimately an XCAP-like solution
allowing partial reads/writes would be better but this is a good first step.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/branches/v4.1d1/Sources_Common/Application/Preferences/CPreferences.cp

    r86 r150  
    331331 
    332332                // Test each remote options account status 
    333                 for(CINETAccountList::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++) 
    334334                { 
    335335                        extra_txt = (*iter)->GetName(); 
     
    577577                { 
    578578                        // Copy to all remote accounts 
    579                         for(CINETAccountList::iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++) 
     579                        for(COptionsAccountList::iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++) 
    580580                        { 
    581581                                if ((*iter)->GetAuthenticator().RequiresUserPswd()) 
     
    594594 
    595595                        // Copy to all remote accounts 
    596                         for(CINETAccountList::iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++) 
     596                        for(COptionsAccountList::iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++) 
    597597                        { 
    598598                                if ((*iter)->GetAuthenticator().RequiresUserPswd()) 
     
    712712 
    713713        // Check remote account uids 
    714         for(CINETAccountList::iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++) 
     714        for(COptionsAccountList::iterator iter = mRemoteAccounts.mValue.begin(); iter != mRemoteAccounts.mValue.end(); iter++) 
    715715        { 
    716716                if ((*iter)->GetAuthenticator().RequiresUserPswd()) 
     
    10861086        } 
    10871087        out << " ) Prefs ("; 
     1088        bool prefs_webdav = false; 
    10881089        bool prefs_imsp = false; 
    10891090        bool prefs_acap = false; 
    1090         for(CINETAccountList::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++) 
    10911092        { 
    10921093                switch((*iter)->GetServerType()) 
    10931094                { 
     1095                case CINETAccount::eWebDAVPrefs: 
     1096                        if (!prefs_webdav) 
     1097                        { 
     1098                                out << " WebDAV"; 
     1099                                prefs_webdav = true; 
     1100                        } 
     1101                        break; 
    10941102                case CINETAccount::eIMSP: 
    10951103                        if (!prefs_imsp)