Changeset 114 for Mulberry

Show
Ignore:
Timestamp:
10/28/07 23:43:05 (1 year ago)
Author:
daboo
Message:

Keychain support.

Location:
Mulberry/branches/v4.1d1/Sources_Common
Files:
2 added
4 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/branches/v4.1d1/Sources_Common/Mail/Control/CMailControl.cp

    r19 r114  
    5050#include "CMulberryCommon.h" 
    5151#include "CNewMailTask.h" 
     52#include "CPasswordManager.h" 
    5253#include "CPreferences.h" 
    5354#if __dest_os == __mac_os || __dest_os == __mac_os_x 
     
    876877        { 
    877878                auth->SetPswd(CINETProtocol::GetCachedPswd(auth->GetUID())); 
     879                return true; 
     880        } 
     881 
     882        // Try password manager 
     883        cdstring savedpswd; 
     884        if (first_save_user && CPasswordManager::GetManager()->GetPassword(acct, savedpswd)) 
     885        { 
     886                auth->SetPswd(savedpswd); 
     887                return true; 
    878888        } 
    879889        else 
  • Mulberry/branches/v4.1d1/Sources_Common/Mail/INET_Clients/LDAP/CLDAPClient.cp

    r54 r114  
    2626#include "CMailControl.h" 
    2727#include "CMulberryApp.h" 
     28#include "CPasswordManager.h" 
    2829#include "CStatusWindow.h" 
    2930#include "CStringUtils.h" 
     
    443444                        // Only bother if it contains something 
    444445                        if (!auth->GetPswd().empty()) 
     446                        { 
    445447                                CINETProtocol::SetCachedPswd(auth->GetUID(), auth->GetPswd()); 
     448                                CPasswordManager::GetManager()->AddPassword(GetAccount(), auth->GetPswd()); 
     449                        } 
    446450                } 
    447451 
  • Mulberry/branches/v4.1d1/Sources_Common/Mail/Protocols/CINETProtocol.cp

    r86 r114  
    2828#include "CMailControl.h" 
    2929#include "CMulberryApp.h" 
     30#include "CPasswordManager.h" 
    3031#include "CPreferences.h" 
    3132#include "CURL.h" 
     
    432433                        // Only bother if it contains something 
    433434                        if (!auth->GetPswd().empty()) 
     435                        { 
    434436                                CINETProtocol::SetCachedPswd(auth->GetUID(), auth->GetPswd()); 
     437                                CPasswordManager::GetManager()->AddPassword(GetAccount(), auth->GetPswd()); 
     438                        } 
    435439                } 
    436440 
  • Mulberry/branches/v4.1d1/Sources_Common/Plugins/General/CPluginManager.cp

    r19 r114  
    208208                                        break; 
    209209                                case CPlugin::ePluginSpelling: 
    210                                         // Only allow Spellex plugin with this version 
    211                                         if (!HasSpelling() && actual_plugin->GetName().compare_start("Spellex")) 
     210                                        // Only allow CocoaSpeller plugin with this version 
     211                                        if (!HasSpelling() && actual_plugin->GetName().compare_start("CocoaSpeller")) 
    212212                                                mSpellingPlugin = static_cast<CSpellPlugin*>(actual_plugin); 
    213213                                        break;