Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

SearchUserPacket Class Reference

#include <evasearchuser.h>

Inherits OutPacket.

Inheritance diagram for SearchUserPacket:

Inheritance graph
[legend]
Collaboration diagram for SearchUserPacket:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 SearchUserPacket ()
 SearchUserPacket (SearchUserPacket &rhs)
virtual ~SearchUserPacket ()
void setPage (const int p)
void setPage (const std::string p)
const int getIntPage () const
const std::string getPage () const
void setSearchType (const uint8_t type)
const uint8_t getSearchType () const
void setMatchEntireString (const bool match)
const bool getMatchEntireString () const
void setNick (const std::string &nickname)
const std::string getNick () const
void setQQ (const int qqNum)
void setQQ (const std::string &id)
const int getIntQQ () const
const std::string getQQ () const
void setEmail (const std::string &mail)
const std::string getEmail () const
SearchUserPacketoperator= (const SearchUserPacket &rhs)
OutPacketcopy ()

Protected Member Functions

virtual int putBody (unsigned char *buf)

Private Attributes

uint8_t searchType
std::string page
std::string qqStr
std::string nick
std::string email
bool matchEntireString

Static Private Attributes

static const uint8_t DIVIDER = 0x1F
static const uint8_t NULL_FIELD = 0x2D
static const uint8_t PERCENT = 0x25

Detailed Description

Definition at line 52 of file evasearchuser.h.


Constructor & Destructor Documentation

SearchUserPacket::SearchUserPacket  ) 
 

Definition at line 72 of file evasearchuser.cpp.

Referenced by copy().

SearchUserPacket::SearchUserPacket SearchUserPacket rhs  ) 
 

Definition at line 81 of file evasearchuser.cpp.

References email, getEmail(), getMatchEntireString(), getNick(), getPage(), getQQ(), getSearchType(), matchEntireString, nick, page, qqStr, and searchType.

Here is the call graph for this function:

virtual SearchUserPacket::~SearchUserPacket  )  [inline, virtual]
 

Definition at line 57 of file evasearchuser.h.


Member Function Documentation

OutPacket* SearchUserPacket::copy  )  [inline]
 

Definition at line 78 of file evasearchuser.h.

References SearchUserPacket().

Here is the call graph for this function:

const std::string SearchUserPacket::getEmail  )  const [inline]
 

Definition at line 75 of file evasearchuser.h.

References email.

Referenced by operator=(), and SearchUserPacket().

const int SearchUserPacket::getIntPage  )  const [inline]
 

Definition at line 62 of file evasearchuser.h.

References page.

const int SearchUserPacket::getIntQQ  )  const [inline]
 

Definition at line 72 of file evasearchuser.h.

References qqStr.

const bool SearchUserPacket::getMatchEntireString  )  const [inline]
 

Definition at line 67 of file evasearchuser.h.

References matchEntireString.

Referenced by operator=(), and SearchUserPacket().

const std::string SearchUserPacket::getNick  )  const [inline]
 

Definition at line 69 of file evasearchuser.h.

References nick.

Referenced by operator=(), and SearchUserPacket().

const std::string SearchUserPacket::getPage  )  const [inline]
 

Definition at line 63 of file evasearchuser.h.

References page.

Referenced by operator=(), and SearchUserPacket().

const std::string SearchUserPacket::getQQ  )  const [inline]
 

Definition at line 73 of file evasearchuser.h.

References qqStr.

Referenced by operator=(), and SearchUserPacket().

const uint8_t SearchUserPacket::getSearchType  )  const [inline]
 

Definition at line 65 of file evasearchuser.h.

References searchType.

Referenced by operator=(), and SearchUserPacket().

SearchUserPacket & SearchUserPacket::operator= const SearchUserPacket rhs  ) 
 

Definition at line 106 of file evasearchuser.cpp.

References email, getEmail(), getMatchEntireString(), getNick(), getPage(), getQQ(), getSearchType(), matchEntireString, nick, page, qqStr, and searchType.

Here is the call graph for this function:

int SearchUserPacket::putBody unsigned char *  buf  )  [protected, virtual]
 

Reimplemented from OutPacket.

Definition at line 118 of file evasearchuser.cpp.

References DIVIDER, email, matchEntireString, nick, NULL_FIELD, page, PERCENT, QQ_SEARCH_ALL, QQ_SEARCH_CUSTOM, qqStr, and searchType.

void SearchUserPacket::setEmail const std::string &  mail  )  [inline]
 

Definition at line 74 of file evasearchuser.h.

References email.

void SearchUserPacket::setMatchEntireString const bool  match  )  [inline]
 

Definition at line 66 of file evasearchuser.h.

References matchEntireString.

void SearchUserPacket::setNick const std::string &  nickname  )  [inline]
 

Definition at line 68 of file evasearchuser.h.

References nick.

void SearchUserPacket::setPage const std::string  p  )  [inline]
 

Definition at line 61 of file evasearchuser.h.

References page.

void SearchUserPacket::setPage const int  p  ) 
 

Definition at line 92 of file evasearchuser.cpp.

References page.

void SearchUserPacket::setQQ const std::string &  id  )  [inline]
 

Definition at line 71 of file evasearchuser.h.

References qqStr.

void SearchUserPacket::setQQ const int  qqNum  ) 
 

Reimplemented from Packet.

Definition at line 99 of file evasearchuser.cpp.

References qqStr.

void SearchUserPacket::setSearchType const uint8_t  type  )  [inline]
 

Definition at line 64 of file evasearchuser.h.

References searchType.


Member Data Documentation

const uint8_t SearchUserPacket::DIVIDER = 0x1F [static, private]
 

Definition at line 88 of file evasearchuser.h.

Referenced by putBody().

std::string SearchUserPacket::email [private]
 

Definition at line 86 of file evasearchuser.h.

Referenced by getEmail(), operator=(), putBody(), SearchUserPacket(), and setEmail().

bool SearchUserPacket::matchEntireString [private]
 

Definition at line 87 of file evasearchuser.h.

Referenced by getMatchEntireString(), operator=(), putBody(), SearchUserPacket(), and setMatchEntireString().

std::string SearchUserPacket::nick [private]
 

Definition at line 85 of file evasearchuser.h.

Referenced by getNick(), operator=(), putBody(), SearchUserPacket(), and setNick().

const uint8_t SearchUserPacket::NULL_FIELD = 0x2D [static, private]
 

Definition at line 89 of file evasearchuser.h.

Referenced by putBody().

std::string SearchUserPacket::page [private]
 

Definition at line 83 of file evasearchuser.h.

Referenced by getIntPage(), getPage(), operator=(), putBody(), SearchUserPacket(), and setPage().

const uint8_t SearchUserPacket::PERCENT = 0x25 [static, private]
 

Definition at line 90 of file evasearchuser.h.

Referenced by putBody().

std::string SearchUserPacket::qqStr [private]
 

Definition at line 84 of file evasearchuser.h.

Referenced by getIntQQ(), getQQ(), operator=(), putBody(), SearchUserPacket(), and setQQ().

uint8_t SearchUserPacket::searchType [private]
 

Definition at line 82 of file evasearchuser.h.

Referenced by getSearchType(), operator=(), putBody(), SearchUserPacket(), and setSearchType().


The documentation for this class was generated from the following files:
Generated on Mon May 15 20:52:52 2006 for libeva by  doxygen 1.4.4