Ϫf{GddZy)cFeZdZdZdZdZdZdZdZdZ dZ d Z d Z y ) 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. ci|_yNaccountsselfs >/usr/lib/python3/dist-packages/twisted/words/im/baseaccount.py__init__zAccountManager.__init__s  cg}|jjD]C}|j|j|j |j |j fE|S)zA 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) )rvaluesappend accountNameisOnline autoLogin gatewayType)r dataaccounts r getSnapShotzAccountManager.getSnapShotsd}}++- G KK''$$&%%''    r c2t|jdk(S)N)lenrrs r isEmptyzAccountManager.isEmpty)s4==!Q&&r cg}|jjD]!}|j|j#|Sr)rrrr)r connectioninfors r getConnectionInfoz AccountManager.getConnectionInfo,s@}}++- 6G  ! !'"2"2"4 5 6r c6||j|j<yr)rr)r rs r addAccountzAccountManager.addAccount2s-4 g))*r c|j|=yrrr rs r delAccountzAccountManager.delAccount5s MM+ &r c>|j|j|S)z= @returntype: Deferred L{interfaces.IClient} )rlogOn)r rchatuis r connectzAccountManager.connect8s}}[)//77r cyrr!s r disconnectzAccountManager.disconnect> r cyrr(rs r quitzAccountManager.quitBr*r N) __name__ __module__ __qualname____doc__r rrrrr"r&r)r,r(r r rr s4&' 5'8   r rN)rr(r r r1s: : r