Part of twisted.words.im.basesupport View Source View In Hierarchy
Known subclasses: twisted.words.im.ircsupport.IRCAccount, twisted.words.im.pbsupport.PBAccount
Base class for Accounts.
I am the start of an implementation ofIAccount
,
I implement isOnline
and most of logOn
,
though you'll need to implement _startLogOn
in a subclass.
Instance Variables | _isConnecting | Whether I am in the process of establishing a connection to the server. (type: boolean ) |
_isOnline | Whether I am currently on-line with the server. (type: boolean ) | |
accountName | ||
autoLogin | ||
username | ||
password | ||
host | ||
port | ||
Class Variables | _groupFactory | A Callable that will return a IGroup
appropriate for this account type.
|
_personFactory | A Callable that will return a IPerson
appropriate for this account type.
|
Method | __init__ | Undocumented |
Method | upgrateToVersion2 | Undocumented |
Method | __getstate__ | Get state, adding a version number to it on its way out. |
Method | isOnline | Undocumented |
Method | logOn | Log on to this account. |
Method | getGroup | Group factory. |
Method | getPerson | Person factory. |
Method | __repr__ | Undocumented |
Method | _startLogOn | Start the sign on process. |
Method | _cb_logOn | Undocumented |
Method | _loginFailed | Errorback for logOn .
|
Method | _clientLost | Undocumented |
Inherited from Versioned:
Method | __setstate__ | Undocumented |
Method | versionUpgrade | (internal) Do a version upgrade. |
Log on to this account.
Takes care to not start a connection if a connection is already in progress. You will need to implement_startLogOn
for this to work, and it would be a good idea to override _loginFailed
too.
Returns | (type: Deferred interfaces.IClient
) |
Parameters | name | Name of the group on this account. (type: string ) |
Parameters | name | Name of the person on this account. (type: string ) |