o ¯b{ã@sGdd„dƒZdS)c@sXeZdZdZdd„Zdd„Zdd„Zdd „Zd d „Zd d „Z dd„Z dd„Z dd„Z dS)ÚAccountManagera*I am responsible for managing a user's accounts. That is, remembering what accounts are available, their settings, adding and removal of accounts, etc. @ivar accounts: A collection of available accounts. @type accounts: mapping of strings to L{Account}s. cCs i|_dS©N©Úaccounts©Úself©rú>/usr/lib/python3/dist-packages/twisted/words/im/baseaccount.pyÚ__init__s zAccountManager.__init__cCs4g}|j ¡D]}| |j| ¡|j|jf¡q|S)zÕA snapshot of all the accounts and their status. @returns: A list of tuples, each of the form (string:accountName, boolean:isOnline, boolean:autoLogin, string:gatewayType) )rÚvaluesÚappendÚ accountNameÚisOnlineÚ autoLoginÚ gatewayType)rÚdataÚaccountrrrÚ getSnapShotsüÿzAccountManager.getSnapShotcCst|jƒdkS)Né)ÚlenrrrrrÚisEmpty)szAccountManager.isEmptycCs&g}|j ¡D] }| | ¡¡q|Sr)rr r r )rÚconnectioninforrrrÚgetConnectionInfo,sz AccountManager.getConnectionInfocCs||j|j<dSr)rr )rrrrrÚ addAccount2szAccountManager.addAccountcCs |j|=dSrr©rr rrrÚ delAccount5s zAccountManager.delAccountcCs|j| |¡S)z= @returntype: Deferred L{interfaces.IClient} )rÚlogOn)rr ÚchatuirrrÚconnect8szAccountManager.connectcCódSrrrrrrÚ disconnect>ózAccountManager.disconnectcCrrrrrrrÚquitBr zAccountManager.quitN) Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrrrrrrr!rrrrr s  rN)rrrrrÚs