Mana
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Protected Member Functions | Friends | List of all members
CommandHandler Class Reference

A class to parse and handle user commands. More...

#include <commandhandler.h>

Public Member Functions

 CommandHandler ()
 
 ~CommandHandler ()
 
void handleCommand (const std::string &command, ChatTab *tab=localChatTab)
 Parse and handle the given command.
 

Static Public Member Functions

static char parseBoolean (const std::string &value)
 

Protected Member Functions

void handleHelp (const std::string &args, ChatTab *tab)
 Handle a help command.
 
void handleWhere (const std::string &args, ChatTab *tab)
 Handle a where command.
 
void handleWho (const std::string &args, ChatTab *tab)
 Handle a who command.
 
void handleMsg (const std::string &args, ChatTab *tab)
 Handle a msg command.
 
void handleQuery (const std::string &args, ChatTab *tab)
 Handle a msg tab request.
 
void handleJoin (const std::string &args, ChatTab *tab)
 Handle a join command.
 
void handleListChannels (const std::string &args, ChatTab *tab)
 Handle a listchannels command.
 
void handleClear (const std::string &args, ChatTab *tab)
 Handle a clear command.
 
void handleCreateParty (const std::string &args, ChatTab *tab)
 Handle a createparty command.
 
void handleParty (const std::string &args, ChatTab *tab)
 Handle a party command.
 
void handleMe (const std::string &args, ChatTab *tab)
 Handle a me command.
 
void handleRecord (const std::string &args, ChatTab *tab)
 Handle a record command.
 
void handleToggle (const std::string &args, ChatTab *tab)
 Handle a toggle command.
 
void handlePresent (const std::string &args, ChatTab *tab)
 Handle a present command.
 
void handleIgnore (const std::string &args, ChatTab *tab)
 Handle an ignore command.
 
void handleUnignore (const std::string &args, ChatTab *tab)
 Handle an unignore command.
 
void handleAway (const std::string &args, ChatTab *tab)
 Handle away command.
 
void handleShowIp (const std::string &args, ChatTab *tab)
 

Friends

class ChatTab
 
class WhisperTab
 

Detailed Description

A class to parse and handle user commands.

Definition at line 35 of file commandhandler.h.

Constructor & Destructor Documentation

◆ CommandHandler()

CommandHandler::CommandHandler ( )

Definition at line 46 of file commandhandler.cpp.

◆ ~CommandHandler()

CommandHandler::~CommandHandler ( )
inline

Definition at line 40 of file commandhandler.h.

Member Function Documentation

◆ handleAway()

void CommandHandler::handleAway ( const std::string &  args,
ChatTab tab 
)
protected

Handle away command.

Definition at line 562 of file commandhandler.cpp.

◆ handleClear()

void CommandHandler::handleClear ( const std::string &  args,
ChatTab tab 
)
protected

Handle a clear command.

Definition at line 413 of file commandhandler.cpp.

◆ handleCommand()

void CommandHandler::handleCommand ( const std::string &  command,
ChatTab tab = localChatTab 
)

Parse and handle the given command.

Definition at line 49 of file commandhandler.cpp.

◆ handleCreateParty()

void CommandHandler::handleCreateParty ( const std::string &  args,
ChatTab tab 
)
protected

Handle a createparty command.

Definition at line 432 of file commandhandler.cpp.

◆ handleHelp()

void CommandHandler::handleHelp ( const std::string &  args,
ChatTab tab 
)
protected

Handle a help command.

Definition at line 155 of file commandhandler.cpp.

◆ handleIgnore()

void CommandHandler::handleIgnore ( const std::string &  args,
ChatTab tab 
)
protected

Handle an ignore command.

Definition at line 518 of file commandhandler.cpp.

◆ handleJoin()

void CommandHandler::handleJoin ( const std::string &  args,
ChatTab tab 
)
protected

Handle a join command.

Definition at line 418 of file commandhandler.cpp.

◆ handleListChannels()

void CommandHandler::handleListChannels ( const std::string &  args,
ChatTab tab 
)
protected

Handle a listchannels command.

Definition at line 427 of file commandhandler.cpp.

◆ handleMe()

void CommandHandler::handleMe ( const std::string &  args,
ChatTab tab 
)
protected

Handle a me command.

Definition at line 448 of file commandhandler.cpp.

◆ handleMsg()

void CommandHandler::handleMsg ( const std::string &  args,
ChatTab tab 
)
protected

Handle a msg command.

Definition at line 341 of file commandhandler.cpp.

◆ handleParty()

void CommandHandler::handleParty ( const std::string &  args,
ChatTab tab 
)
protected

Handle a party command.

Definition at line 440 of file commandhandler.cpp.

◆ handlePresent()

void CommandHandler::handlePresent ( const std::string &  args,
ChatTab tab 
)
protected

Handle a present command.

Definition at line 513 of file commandhandler.cpp.

◆ handleQuery()

void CommandHandler::handleQuery ( const std::string &  args,
ChatTab tab 
)
protected

Handle a msg tab request.

Definition at line 391 of file commandhandler.cpp.

◆ handleRecord()

void CommandHandler::handleRecord ( const std::string &  args,
ChatTab tab 
)
protected

Handle a record command.

Definition at line 453 of file commandhandler.cpp.

◆ handleShowIp()

void CommandHandler::handleShowIp ( const std::string &  args,
ChatTab tab 
)
protected

Definition at line 484 of file commandhandler.cpp.

◆ handleToggle()

void CommandHandler::handleToggle ( const std::string &  args,
ChatTab tab 
)
protected

Handle a toggle command.

Definition at line 458 of file commandhandler.cpp.

◆ handleUnignore()

void CommandHandler::handleUnignore ( const std::string &  args,
ChatTab tab 
)
protected

Handle an unignore command.

Definition at line 540 of file commandhandler.cpp.

◆ handleWhere()

void CommandHandler::handleWhere ( const std::string &  args,
ChatTab tab 
)
protected

Handle a where command.

Definition at line 326 of file commandhandler.cpp.

◆ handleWho()

void CommandHandler::handleWho ( const std::string &  args,
ChatTab tab 
)
protected

Handle a who command.

Definition at line 336 of file commandhandler.cpp.

◆ parseBoolean()

char CommandHandler::parseBoolean ( const std::string &  value)
static

Definition at line 139 of file commandhandler.cpp.

Friends And Related Symbol Documentation

◆ ChatTab

friend class ChatTab
friend

Definition at line 50 of file commandhandler.h.

◆ WhisperTab

friend class WhisperTab
friend

Definition at line 51 of file commandhandler.h.


The documentation for this class was generated from the following files: