94 QStringList t_qListParsedCommands;
96 m_iCurrentCommandThreadID = p_iThreadID;
98 if(!m_commandParser.
parse(p_sCommand, t_qListParsedCommands))
100 QByteArray t_blockReply;
101 t_blockReply.append(
"command unknown\r\n");
102 printf(
"%s", t_blockReply.data());
118 connect(t_pCommandThread, SIGNAL(finished()), t_pCommandThread, SLOT(deleteLater()));
123 connect(t_pCommandThread, &CommandThread::newCommand,
127 t_pCommandThread, &CommandThread::attachCommandReply);
129 t_pCommandThread->start();
138 m_commandParser.
attach(&p_commandManager);
157 qint32 t_iThreadID = m_iCurrentCommandThreadID;
void response(QString p_sReply, Command p_command)
void incommingCommand(QString p_sCommand, qint32 p_iThreadID)
void registerCommandManager(CommandManager &p_commandManager)
bool parse(const QString &p_sInput, QStringList &p_qListCommandsParsed)
CommandServer(QObject *parent=0)
implementation of the FiffStreamServer Class.
void response(QString p_sResponse, Command p_command)
void incomingConnection(qintptr socketDescriptor)
implementation of the MNERTServer Class.
implementation of the FiffStreamThread Class.
void closeCommandThreads()
void attach(IObserver *pObserver)
void replyCommand(QString p_blockReply, qint32 p_iID)
implementation of the ConnectorManager Class.
void prepareReply(QString p_sReply, Command p_command)
implementation of the CommandThread Class.
implementation of the CommandServer Class.