TPProto::AddCategory Class Reference

A Frame to send AddCategory frame to the server. More...

#include <addcategory.h>

Inheritance diagram for TPProto::AddCategory:

TPProto::Frame List of all members.

Public Member Functions

 AddCategory ()
 Default constructor.
virtual ~AddCategory ()
 Required virtual destructor.
void packBuffer (Buffer *buf)
 Pack into a Buffer.
bool unpackBuffer (Buffer *buf)
 Unpack from a Buffer, fails. Unpacks the AddCategory frame from the buffer. Since these frames are always sent to the server, this method always fails and returns false.
void setName (const std::string &n)
 Sets the name of this Category.
void setDescription (const std::string &d)
 Sets the description of this Category.

Detailed Description

A Frame to send AddCategory frame to the server.


Member Function Documentation

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

Pack into a Buffer.

Packs this AddCategory frame into the buffer.

Parameters:
buf Buffer to pack into.

Implements TPProto::Frame.

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

Unpack from a Buffer, fails. Unpacks the AddCategory frame from the buffer. Since these frames are always sent to the server, this method always fails and returns false.

Parameters:
buf The Buffer to unpack out of, ignored.
Returns:
False always.

Implements TPProto::Frame.

void TPProto::AddCategory::setName ( const std::string &  n  ) 

Sets the name of this Category.

Parameters:
n The name of the Category.

void TPProto::AddCategory::setDescription ( const std::string &  d  ) 

Sets the description of this Category.

Parameters:
d The description of the Category.


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