MNE-CPP  beta 1.0
Signals | Public Member Functions | Protected Member Functions | List of all members
RTSERVER::CommandServer Class Reference

CommandServer manages threaded command connections. More...

#include <commandserver.h>

Inheritance diagram for RTSERVER::CommandServer:

Signals

void replyCommand (QString p_blockReply, qint32 p_iID)
 
void closeCommandThreads ()
 

Public Member Functions

 CommandServer (QObject *parent=0)
 
virtual ~CommandServer ()
 
CommandParsergetCommandParser ()
 
void incommingCommand (QString p_sCommand, qint32 p_iThreadID)
 
void registerCommandManager (CommandManager &p_commandManager)
 
void prepareReply (QString p_sReply, Command p_command)
 

Protected Member Functions

void incomingConnection (qintptr socketDescriptor)
 

Detailed Description

CommandServer manages threaded command connections.

Command Server which manages command connections in seperate threads

Definition at line 84 of file commandserver.h.

Constructor & Destructor Documentation

CommandServer::CommandServer ( QObject *  parent = 0)

Constructs a CommandServer

Parameters
[in]parentParent QObject (optional)

Definition at line 74 of file commandserver.cpp.

CommandServer::~CommandServer ( )
virtual

Destructor

Definition at line 84 of file commandserver.cpp.

Member Function Documentation

void RTSERVER::CommandServer::closeCommandThreads ( )
signal

Signal which triggers closing all command clients

CommandParser & RTSERVER::CommandServer::getCommandParser ( )
inline

Returns the command parser.

Returns
the command parser.

Definition at line 175 of file commandserver.h.

void CommandServer::incomingConnection ( qintptr  socketDescriptor)
protected

Slot which handels incomming connections.

Definition at line 112 of file commandserver.cpp.

void CommandServer::incommingCommand ( QString  p_sCommand,
qint32  p_iThreadID 
)

Slot which is called when a new command is available.

Parameters
[in]p_sCommandRaw command
[in]p_iThreadIDID of the thread which received the command.

Definition at line 92 of file commandserver.cpp.

void CommandServer::prepareReply ( QString  p_sReply,
Command  p_command 
)

Is called to prepare the reply

Parameters
[in]p_sReplyThe reply which should be send back
[in]p_commandComman which evoked the reply

Definition at line 147 of file commandserver.cpp.

void CommandServer::registerCommandManager ( CommandManager p_commandManager)

Registers a CommandManager (Observer) at CommandParser (Subject) to include in the chain of notifications

Parameters
[in]p_commandManagerCommand Manager to register.

Definition at line 135 of file commandserver.cpp.

void RTSERVER::CommandServer::replyCommand ( QString  p_blockReply,
qint32  p_iID 
)
signal

Reply to a command

Parameters
[in]p_blockReplyThe reply data
[in]p_iIDID of the client thread to identify the target.

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