%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/words/im/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/words/im/__pycache__/interfaces.cpython-312.pyc

�

Ϫ�f�!���dZddlmZmZGd�de�ZGd�de�ZGd�de�ZGd	�d
e�ZGd�de�ZGd
�de�Z	Gd�de�Z
y)z
Pan-protocol chat client.
�)�	Attribute�	Interfacec�T�eZdZdZed�Zed�Zd�Zd�Zd�Z	d�Z
d�Zd	�Zy
)�IAccountz;
    I represent a user's account with a chat service.
    z<The L{IClient} currently connecting to this account, if any.z;A C{str} that identifies the protocol used by this account.c��y)a
        @type accountName: string
        @param accountName: A name to refer to the account by locally.
        @type autoLogin: boolean
        @type username: string
        @type password: string
        @type host: string
        @type port: integer
        N�)�accountName�	autoLogin�username�password�host�ports      �=/usr/lib/python3/dist-packages/twisted/words/im/interfaces.py�__init__zIAccount.__init__���c��y)z7
        Am I online?

        @rtype: boolean
        Nrrrr�isOnlinezIAccount.isOnline*rrc��y)z�
        Go on-line.

        @type chatui: Implementor of C{IChatUI}

        @rtype: L{Deferred} with an eventual L{IClient} result.
        Nr)�chatuis r�logOnzIAccount.logOn1rrc��y)z
        Sign off.
        Nrrrr�logOffzIAccount.logOff:rrc��y)z*
        @rtype: L{Group<IGroup>}
        Nr��	groupNames r�getGroupzIAccount.getGroup?rrc��y)z,
        @rtype: L{Person<IPerson>}
        Nr)�
personNames r�	getPersonzIAccount.getPersonDrrN)
�__name__�
__module__�__qualname__�__doc__r�client�gatewayTyperrrrrr rrrrrs?����U�
V�F��E��K�	����
�
rrc�<�eZdZed�Zd�Zd�Zd�Zdd�Zd�Z	y)	�IClientz!The L{IAccount} I am a Client forc��y)z�
        @type account: L{IAccount}
        @type chatui: L{IChatUI}
        @param logonDeferred: Will be called back once I am logged on.
        @type logonDeferred: L{Deferred<twisted.internet.defer.Deferred>}
        Nr)�accountr�
logonDeferreds   rrzIClient.__init__Mrrc��y)zb
        @param groupName: The name of the group to join.
        @type groupName: string
        Nrrs r�	joinGroupzIClient.joinGroupUrrc��y)zc
        @param groupName: The name of the group to leave.
        @type groupName: string
        Nrrs r�
leaveGroupzIClient.leaveGroup[rrc��y�Nr)�name�hides  r�getGroupConversationzIClient.getGroupConversationa���rc��yr1r)r2s rr zIClient.getPersondr5rN�r)
r!r"r#rr*rr-r/r4r rrrr(r(Js&���;�<�G����
�
rr(c�,�eZdZd�Zd�Zd�Zd�Zdd�Zy)�IPersonc��y)z�
        Initialize me.

        @param name: My name, as the server knows me.
        @type name: string
        @param account: The account I am accessed through.
        @type account: I{Account}
        Nr�r2r*s  rrzIPerson.__init__irrc��y)zA
        Am I online right now?

        @rtype: boolean
        NrrrrrzIPerson.isOnlinesrrc��y)zS
        What is my on-line status?

        @return: L{locals.StatusEnum}
        Nrrrr�	getStatuszIPerson.getStatuszrrc��y)z;
        @rtype: string (XXX: How about a scalar?)
        Nrrrr�getIdleTimezIPerson.getIdleTime�rrNc��y)zi
        Send a message to this person.

        @type text: string
        @type metadata: dict
        Nr��text�metadatas  r�sendMessagezIPerson.sendMessage�rrr1)r!r"r#rrr>r@rErrrr9r9hs������
rr9c�P�eZdZdZed�Zed�Zd�Zd�Zd
d�Z	d�Z
d	�Zy)�IGroupz�
    A group which you may have a conversation with.

    Groups generally have a loosely-defined set of members, who may
    leave and join at any time.
    z'My C{str} name, as the server knows me.z/The L{Account<IAccount>} I am accessed through.c��y)z�
        Initialize me.

        @param name: My name, as the server knows me.
        @type name: str
        @param account: The account I am accessed through.
        @type account: L{Account<IAccount>}
        Nrr;s  rrzIGroup.__init__�rrc��y)zR
        Set this Groups topic on the server.

        @type text: string
        Nr)rCs r�setTopiczIGroup.setTopic�rrNc��y)a
        Send a message to this group.

        @type text: str

        @type metadata: dict
        @param metadata: Valid keys for this dictionary include:

            - C{'style'}: associated with one of:
                - C{'emote'}: indicates this is an action
        NrrBs  r�sendGroupMessagezIGroup.sendGroupMessage�rrc��y)z"
        Join this group.
        Nrrrr�joinzIGroup.join�rrc��y)z$
        Depart this group.
        Nrrrr�leavezIGroup.leave�rrr1)r!r"r#r$rr2r*rrJrLrNrPrrrrGrG�s8����>�?�D��I�J�G�����
rrGc�4�eZdZdZd�Zd�Zd�Zd�Zd�Zd�Z	y)	�
IConversationz0
    A conversation with a specific person.
    c��y)z*
        @type person: L{IPerson}
        Nr)�personrs  rrzIConversation.__init__�rrc��y�zA
        doesn't seem like it belongs in this interface.
        Nrrrr�showzIConversation.show�rrc��y�z#
        nor this neither.
        Nrrrrr3zIConversation.hide�rrc��yr1rrBs  r�sendTextzIConversation.sendText�r5rc��yr1rrBs  r�showMessagezIConversation.showMessage�r5rc��y)zR
        @param person: XXX Shouldn't this always be Conversation.person?
        Nr)rT�newnicks  r�changedNickzIConversation.changedNick�rrN)
r!r"r#r$rrWr3r[r]r`rrrrRrR�s%����
�
�

�
�rrRc�B�eZdZd�Zd�Zd�Zd�Zd�Zd�Zd�Z	d�Z
d	�Zy
)�IGroupConversationc��yrVrrrrrWzIGroupConversation.show�rrc��yrYrrrrr3zIGroupConversation.hide�rrc��yr1rrBs  rr[zIGroupConversation.sendText�r5rc��yr1r)�senderrCrDs   r�showGroupMessagez#IGroupConversation.showGroupMessage�r5rc��y)zT
        Sets the list of members in the group and displays it to the user.
        Nr)�memberss r�setGroupMembersz"IGroupConversation.setGroupMembers�rrc��y)z�
        Displays the topic (from the server) for the group conversation window.

        @type topic: string
        @type author: string (XXX: Not Person?)
        Nr)�topic�authors  rrJzIGroupConversation.setTopic�rrc��y)z�
        Adds the given member to the list of members in the group conversation
        and displays this to the user,

        @type member: string (XXX: Not Person?)
        Nr��members r�memberJoinedzIGroupConversation.memberJoinedrrc��y)z�
        Changes the oldnick in the list of members to C{newnick} and displays this
        change to the user,

        @type oldnick: string (XXX: Not Person?)
        @type newnick: string
        Nr��oldnickr_s  r�memberChangedNickz$IGroupConversation.memberChangedNick	rrc��y)z�
        Deletes the given member from the list of members in the group
        conversation and displays the change to the user.

        @type member: string (XXX: Not Person?)
        Nrrps r�
memberLeftzIGroupConversation.memberLeftrrN)r!r"r#rWr3r[rhrkrJrrrvrxrrrrbrb�s/���
�

�
��
���rrbc�@�eZdZd�Zd�Zd�Zd
d�Zd
d�Zd�Zd�Z	d�Z
y	)�IChatUIc��y)zp
        Notifies user that an account has been signed on to.

        @type client: L{Client<IClient>}
        Nr�r%s r�registerAccountClientzIChatUI.registerAccountClientrrc��y)z~
        Notifies user that an account has been signed off or disconnected.

        @type client: L{Client<IClient>}
        Nrr|s r�unregisterAccountClientzIChatUI.unregisterAccountClient#rrc��y)z)
        @rtype: L{ContactsList}
        Nrrrr�getContactsListzIChatUI.getContactsList*rrc��y)aT
        For the given person object, returns the conversation window
        or creates and returns a new conversation window if one does not exist.

        @type person: L{Person<IPerson>}
        @type Class: L{Conversation<IConversation>} class
        @type stayHidden: boolean

        @rtype: L{Conversation<IConversation>}
        Nr)rT�Class�
stayHiddens   r�getConversationzIChatUI.getConversation2rrc��y)a�
        For the given group object, returns the group conversation window or
        creates and returns a new group conversation window if it doesn't exist.

        @type group: L{Group<interfaces.IGroup>}
        @type Class: L{Conversation<interfaces.IConversation>} class
        @type stayHidden: boolean

        @rtype: L{GroupConversation<interfaces.IGroupConversation>}
        Nr)�groupr�r�s   rr4zIChatUI.getGroupConversation>rrc��y)z�
        Get a Person for a client.

        Duplicates L{IAccount.getPerson}.

        @type name: string
        @type client: L{Client<IClient>}

        @rtype: L{Person<IPerson>}
        Nr�r2r%s  rr zIChatUI.getPersonJrrc��y)z�
        Get a Group for a client.

        Duplicates L{IAccount.getGroup}.

        @type name: string
        @type client: L{Client<IClient>}

        @rtype: L{Group<IGroup>}
        Nrr�s  rrzIChatUI.getGroupVrrc��y)z�
        For the given person, changes the person's name to newnick, and
        tells the contact list and any conversation windows with that person
        to change as well.

        @type oldnick: string
        @type newnick: string
        Nrrts  r�contactChangedNickzIChatUI.contactChangedNickbrrNr7)r!r"r#r}rr�r�r4r rr�rrrrzrzs*�����
�
�
�
�rrzN)r$�zope.interfacerrrr(r9rGrRrbrzrrr�<module>r�sj��
�0�2�y�2�j
�i�
�<$�i�$�N1�Y�1�h�I��@5��5�pO�i�Or

Zerion Mini Shell 1.0