Public Member Functions | |
virtual void | Execute () |
execute command | |
virtual void | CheckParams () |
chech whether all parameters are present and meaningful | |
Private Member Functions | |
void | HandleLogCommand () |
void | HandleStatusCommand () |
void | HandleUnknownCommand () |
void | HandleRegisterCommand (bool reg) |
void QMsgCommand::Execute | ( | ) | [virtual] |
execute command
This method should be called after CheckParams(), and only if after calling CheckParams() the command is still valid and has no errors.
This method is expected to execute the command by calling the appropriate method of the main server object based on the modifier and the parameters obtained in CheckParams().
Implements QCommand.
References QCommand::GetModifier().
void QMsgCommand::CheckParams | ( | ) | [virtual] |
chech whether all parameters are present and meaningful
The aim of this method is to separate checks on command correctness from command execution (performed in Execute()).
This method should check whether all the parameters needed for the requested command/modifier pair are present and make sense.
In case of failure an error must be set by calling SetError()
Implements QCommand.