Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

MSN Namespace Reference


Detailed Description

Contains all of the functionality provided by libmsn.


Classes

class  AuthData
class  Buddy
 The Buddy class contains information about a member of a buddy list. More...
class  Group
 The Group class represents a group of contacts on the buddy list. More...
class  Connection
 An abstract base class that represents a connection to another computer. More...
class  Callbacks
class  FileTransferInvitation
 Contains information about the invitation that was sent or received when a file transfer was initiated. More...
class  FileTransferConnection
 Represents a connection to another users computer for the purpose of transferring a file. More...
class  hasCookieOf
class  Invitation
class  Message
 This class represents an MSN message. More...
class  _sameUserName
class  ListSyncInfo
 Contains information about synchronising the contact list with the server. More...
class  connectinfo
class  NotificationServerConnection
 Represents a connection to a MSN notification server. More...
class  InvalidPassport
 An InvalidPassport exception will be thrown whenever a malformed passport is passed to a function that requires a valid address. More...
class  Passport
 A Passport represents a passport address. More...
class  SwitchboardServerConnection
 Represents a connection to a MSN switchboard. More...

Enumerations

enum  BuddyStatus {
  STATUS_AVAILABLE, STATUS_BUSY, STATUS_IDLE, STATUS_BERIGHTBACK,
  STATUS_AWAY, STATUS_ONTHEPHONE, STATUS_OUTTOLUNCH, STATUS_INVISIBLE
}
 The online state of a buddy. More...
enum  ErrorCodes {
  ERR_SYNTAX_ERROR = 200, ERR_INVALID_PARAMETER, ERR_INVALID_USER = 205, ERR_FQDN_MISSING,
  ERR_ALREADY_LOGIN, ERR_INVALID_USERNAME, ERR_INVALID_FRIENDLY_NAME, ERR_LIST_FULL,
  ERR_ALREADY_THERE = 215, ERR_NOT_ON_LIST, ERR_ALREADY_IN_THE_MODE = 218, ERR_ALREADY_IN_OPPOSITE_LIST,
  ERR_SWITCHBOARD_FAILED = 280, ERR_NOTIFY_XFR_FAILED, ERR_REQUIRED_FIELDS_MISSING = 300, ERR_NOT_LOGGED_IN = 302,
  ERR_INTERNAL_SERVER = 500, ERR_DB_SERVER = 501, ERR_FILE_OPERATION = 510, ERR_MEMORY_ALLOC = 520,
  ERR_SERVER_BUSY = 600, ERR_SERVER_UNAVAILABLE, ERR_PEER_NS_DOWN, ERR_DB_CONNECT,
  ERR_SERVER_GOING_DOWN, ERR_CREATE_CONNECTION = 707, ERR_BLOCKING_WRITE = 711, ERR_SESSION_OVERLOAD,
  ERR_USER_TOO_ACTIVE, ERR_TOO_MANY_SESSIONS, ERR_NOT_EXPECTED, ERR_BAD_FRIEND_FILE = 717,
  ERR_AUTHENTICATION_FAILED = 911, ERR_NOT_ALLOWED_WHEN_OFFLINE = 913, ERR_NOT_ACCEPTING_NEW_USERS = 920
}
 Error codes that the MSN servers may return in response to commands. More...

Functions

std::string buddyStatusToString (BuddyStatus state)
BuddyStatus buddyStatusFromString (std::string state)
std::pair< std::string, int > splitServerAddress (const std::string &address, int default_port)
 Split a string containing a hostname and port number into its respective parts.
std::string decodeURL (const std::string &s)
 URL-decode a string.
std::string encodeURL (const std::string &s)
 URL-encode a string.
std::vector< std::string > splitString (const std::string &s, const std::string &sep, bool suppressBlanks)
 Split string at each occurence of separator.
int nocase_cmp (const std::string &s1, const std::string &s2)
 Compare two strings in a case insensitive fashion.
unsigned int decimalFromString (const std::string &s) throw (std::logic_error)
 Convert a string, s, that contains decimal digits into an unsigned int.

Variables

const unsigned int MAX_FTP_BLOCK_SIZE = 20000


Enumeration Type Documentation

enum MSN::BuddyStatus
 

The online state of a buddy.

Enumeration values:
STATUS_AVAILABLE 
STATUS_BUSY 
STATUS_IDLE 
STATUS_BERIGHTBACK 
STATUS_AWAY 
STATUS_ONTHEPHONE 
STATUS_OUTTOLUNCH 
STATUS_INVISIBLE 

enum MSN::ErrorCodes
 

Error codes that the MSN servers may return in response to commands.

Enumeration values:
ERR_SYNTAX_ERROR 
ERR_INVALID_PARAMETER 
ERR_INVALID_USER 
ERR_FQDN_MISSING 
ERR_ALREADY_LOGIN 
ERR_INVALID_USERNAME 
ERR_INVALID_FRIENDLY_NAME 
ERR_LIST_FULL 
ERR_ALREADY_THERE 
ERR_NOT_ON_LIST 
ERR_ALREADY_IN_THE_MODE 
ERR_ALREADY_IN_OPPOSITE_LIST 
ERR_SWITCHBOARD_FAILED 
ERR_NOTIFY_XFR_FAILED 
ERR_REQUIRED_FIELDS_MISSING 
ERR_NOT_LOGGED_IN 
ERR_INTERNAL_SERVER 
ERR_DB_SERVER 
ERR_FILE_OPERATION 
ERR_MEMORY_ALLOC 
ERR_SERVER_BUSY 
ERR_SERVER_UNAVAILABLE 
ERR_PEER_NS_DOWN 
ERR_DB_CONNECT 
ERR_SERVER_GOING_DOWN 
ERR_CREATE_CONNECTION 
ERR_BLOCKING_WRITE 
ERR_SESSION_OVERLOAD 
ERR_USER_TOO_ACTIVE 
ERR_TOO_MANY_SESSIONS 
ERR_NOT_EXPECTED 
ERR_BAD_FRIEND_FILE 
ERR_AUTHENTICATION_FAILED 
ERR_NOT_ALLOWED_WHEN_OFFLINE 
ERR_NOT_ACCEPTING_NEW_USERS 


Function Documentation

BuddyStatus MSN::buddyStatusFromString std::string  s  ) 
 

std::string MSN::buddyStatusToString BuddyStatus  s  ) 
 

unsigned int MSN::decimalFromString const std::string &  s  )  throw (std::logic_error)
 

Convert a string, s, that contains decimal digits into an unsigned int.

std::string MSN::decodeURL const std::string &  s  ) 
 

URL-decode a string.

Parameters:
s The URL-encoded string to decode.
Returns:
A string with all URL-encoded sequences replaced by their ASCII equivalent.

std::string MSN::encodeURL const std::string &  s  ) 
 

URL-encode a string.

Parameters:
s The string to encode.
Returns:
A string with all non-alphanumeric characters replaced by their URL-encoded equivalent.

int MSN::nocase_cmp const std::string &  s1,
const std::string &  s2
 

Compare two strings in a case insensitive fashion.

std::pair< std::string, int > MSN::splitServerAddress const std::string &  address,
int  default_port = 1863
 

Split a string containing a hostname and port number into its respective parts.

Parameters:
address A string in the form "hostname:port".
default_port A port number to return in the event that ":port" is omitted from address.
Returns:
A pair containing the hostname and port number.

std::vector< std::string > MSN::splitString const std::string &  string,
const std::string &  separator,
bool  suppressBlanks = true
 

Split string at each occurence of separator.


Variable Documentation

const unsigned int MSN::MAX_FTP_BLOCK_SIZE = 20000
 


Generated on Sun Feb 6 19:59:40 2005 for libmsn by  doxygen 1.4.1