Home | Trees | Index | Help |
---|
Package twisted :: Package im :: Module basesupport :: Class AbstractAccount |
|
Versioned
--+
|
AbstractAccount
IRCAccount
,
PBAccount
,
TOCAccount
Base class for Accounts.
I am the start of an implementation ofIAccount<interfaces.IAccount>
, I
implement isOnline
and most of logOn
, though you'll need to implement _startLogOn
in a subclass.
Method Summary | |
---|---|
__init__(self,
accountName,
autoLogin,
username,
password,
host,
port)
| |
__getstate__(self)
| |
__repr__(self)
| |
__setstate__(self,
state)
(inherited from Versioned )
| |
Group factory. | |
Person factory. | |
isOnline(self)
| |
Deferred interfaces.IClient
|
Log on to this account. |
upgrateToVersion2(self)
| |
(internal) Do a version upgrade. (inherited from Versioned )
| |
_cb_logOn(self,
client)
| |
_clientLost(self,
client,
reason)
| |
Failure |
Errorback for logOn . |
Deferred interfaces.IClient
|
Start the sign on process. |
Instance Variable Summary | |
---|---|
accountName
- | |
autoLogin
- | |
host
- | |
password
- | |
port
- | |
username
- | |
_isConnecting
- Whether I am in the process of establishing a connection to the
server. | |
_isOnline
- Whether I am currently on-line with the server. |
Class Variable Summary | |
---|---|
class |
AbstractGroup
- A Callable that will return a IGroup appropriate for this
account type. |
class |
AbstractPerson
- A Callable that will return a IPerson appropriate for this
account type. |
NoneType |
client
|
int |
persistanceVersion
|
boolean | _isConnecting
|
boolean | _isOnline
|
Method Details |
---|
getGroup(self, name)Group factory.
|
getPerson(self, name)Person factory.
|
logOn(self, chatui)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.
|
_loginFailed(self, reason)Errorback forlogOn .
|
_startLogOn(self, chatui)Start the sign on process. Factored out oflogOn .
|
Instance Variable Details |
---|
accountName |
autoLogin |
host |
password |
port |
username |
_isConnectingWhether I am in the process of establishing a connection to the server. |
_isOnlineWhether I am currently on-line with the server. |
Class Variable Details |
---|
AbstractGroupAbstractGroup = twisted.im.basesupport.AbstractGroup
|
AbstractPersonAbstractPerson = twisted.im.basesupport.AbstractPerson
|
client
|
persistanceVersion
|
_isConnecting
|
_isOnline
|
Home | Trees | Index | Help |
---|
Generated by Epydoc 1.1 on Thu May 8 13:18:22 2003 | http://epydoc.sf.net |