Package twisted :: Package im :: Module basesupport :: Class AbstractAccount
[show private | hide private]
[frames | no frames]

Class AbstractAccount

Known Subclasses:
IRCAccount, PBAccount, TOCAccount

Method Summary
  __init__(self, accountName, autoLogin, username, password, host, port)
  __getstate__(self)
  __setstate__(self, d)
  isOnline(self)
Deferred interfaces.IClient logOn(self, chatui)
Log on to this account.
  _loginFailed(self, reason)
Errorback for logOn.
Deferred interfaces.IClient _startLogOn(self, chatui)
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
boolean _isConnecting
boolean _isOnline

Method Details

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.
Returns:
Deferred interfaces.IClient

_loginFailed(self, reason)

Errorback for logOn.
Parameters:
reason
           (type=Failure)

_startLogOn(self, chatui)

Start the sign on process.

Factored out of logOn.
Returns:
Deferred interfaces.IClient

Instance Variable Details

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 Details

_isConnecting

Type:
boolean
Value:
0                                                                      

_isOnline

Type:
boolean
Value:
0                                                                      

Generated by Epydoc 1.2 prerelease on Wed Jan 29 06:28:08 2003 http://epydoc.sf.net