TPProto::AccountCreate Class Reference

The Frame for creating a account on the server. More...

#include <createaccount.h>

Inheritance diagram for TPProto::AccountCreate:

TPProto::Frame List of all members.

Public Member Functions

 AccountCreate ()
 Default constructor.
virtual ~AccountCreate ()
 Required virtual destructor.
void packBuffer (Buffer *buf)
 Pack the login into a Buffer.
bool unpackBuffer (Buffer *buf)
 Unpack from a Buffer, always false.
void setUser (const std::string &name)
 Sets the username to create the account.
void setPass (const std::string &word)
 Sets the password to create the account with.
void setEmail (const std::string &address)
 Sets the email address to create the account with.
void setComment (const std::string &c)
 Sets the comment to create the account with.

Detailed Description

The Frame for creating a account on the server.


Member Function Documentation

void TPProto::AccountCreate::packBuffer ( Buffer buf  )  [virtual]

Pack the login into a Buffer.

Parameters:
buf The Buffer to pack into.

Implements TPProto::Frame.

bool TPProto::AccountCreate::unpackBuffer ( Buffer buf  )  [virtual]

Unpack from a Buffer, always false.

Since AccountCreate frames are only sent to the server, we should not receive them and therefore this method always returns false.

Parameters:
buf The Buffer, ignored.
Returns:
False always.

Implements TPProto::Frame.

void TPProto::AccountCreate::setUser ( const std::string &  name  ) 

Sets the username to create the account.

Parameters:
name The username.

void TPProto::AccountCreate::setPass ( const std::string &  word  ) 

Sets the password to create the account with.

Parameters:
word The password.

void TPProto::AccountCreate::setEmail ( const std::string &  address  ) 

Sets the email address to create the account with.

Parameters:
address The email address.

void TPProto::AccountCreate::setComment ( const std::string &  c  ) 

Sets the comment to create the account with.

Parameters:
c The comment.


The documentation for this class was generated from the following files:
Generated on Tue Jan 6 01:00:47 2009 for libtpproto-cpp by  doxygen 1.5.1