HEX
Server: Apache
System: Linux scp1.abinfocom.com 5.4.0-216-generic #236-Ubuntu SMP Fri Apr 11 19:53:21 UTC 2025 x86_64
User: confeduphaar (1010)
PHP: 8.1.33
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //proc/self/root/lib/python3/dist-packages/twisted/words/im/__pycache__/baseaccount.cpython-38.pyc
U


W[�@sGdd�d�ZdS)c@sXeZdZdZdd�Zdd�Zdd�Zdd	�Zd
d�Zdd
�Z	dd�Z
dd�Zdd�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<interfaces.IAccount>}s.
    cCs
i|_dS�N��accounts��self�r�>/usr/lib/python3/dist-packages/twisted/words/im/baseaccount.py�__init__szAccountManager.__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�isOnlineZ	autoLoginZgatewayType)r�data�accountrrr�getSnapShots�zAccountManager.getSnapShotcCst|j�dkS)N�)�lenrrrrr�isEmpty"szAccountManager.isEmptycCs&g}|j��D]}|�|���q|Sr)rr
rr
)rZconnectioninforrrr�getConnectionInfo%sz AccountManager.getConnectionInfocCs||j|j<dSr)rr)rrrrr�
addAccount+szAccountManager.addAccountcCs|j|=dSrr�rrrrr�
delAccount.szAccountManager.delAccountcCs|j|�|�S)z=
        @returntype: Deferred L{interfaces.IClient}
        )rZlogOn)rrZchatuirrr�connect1szAccountManager.connectcCsdSrrrrrr�
disconnect7szAccountManager.disconnectcCsdSrrrrrr�quit;szAccountManager.quitN)
�__name__�
__module__�__qualname__�__doc__r	rrrrrrrrrrrrr	s
rN)rrrrr�<module>	�