Package client :: Module Connection :: Class Profile
[hide private]
[frames] | no frames]

Class Profile

source code

Overview

This is just a small structure for keeping track of Connection Profiles. It only holds a name, host, port, and user. I use it by having a dictionary of these, where the profile name is also the dictionary key.

Instance Methods [hide private]
 
__init__(self, name) source code
 
setHost(self, host) source code
 
setPort(self, port) source code
 
setUser(self, user) source code
 
getName(self)
Returns: string, the name of the profile.
source code
 
getHost(self)
Returns: string, the name of the host.
source code
 
getPort(self)
Returns: string, the port number.
source code
 
getUser(self)
Returns: string, the name of the user.
source code
Method Details [hide private]

__init__(self, name)
(Constructor)

source code 
Parameters:
  • name (string) - The name of the profile. This can't be changed later.

setHost(self, host)

source code 
Parameters:
  • host (string) - The name of the host to be set.

setPort(self, port)

source code 
Parameters:
  • port (string) - The port's number to be set.

setUser(self, user)

source code 
Parameters:
  • user (string) - The name of the user to be set.

getName(self)

source code 
Returns:
string, the name of the profile.

getHost(self)

source code 
Returns:
string, the name of the host.

getPort(self)

source code 
Returns:
string, the port number.

getUser(self)

source code 
Returns:
string, the name of the user.