#include <login.h>
Inheritance diagram for TPProto::Login:

Public Member Functions | |
| Login () | |
| Default constructor. | |
| virtual | ~Login () |
| 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 login as. | |
| void | setPass (const std::string &word) |
| Sets the password to login with. | |
| void TPProto::Login::packBuffer | ( | Buffer * | buf | ) | [virtual] |
| bool TPProto::Login::unpackBuffer | ( | Buffer * | buf | ) | [virtual] |
Unpack from a Buffer, always false.
Since Login frames are only sent to the server, we should not receive them and therefore this method always returns false.
| buf | The Buffer, ignored. |
Implements TPProto::Frame.
| void TPProto::Login::setUser | ( | const std::string & | name | ) |
Sets the username to login as.
| name | The username. |
| void TPProto::Login::setPass | ( | const std::string & | word | ) |
Sets the password to login with.
| word | The password. |
1.5.1