#ifndef PENDINGCOMMAND_H #define PENDINGCOMMAND_H #include class PendingCommand { private: QString cmd; int msgid; int time; public: int getMsgId() const { return msgid; } QString getCmd() const { return cmd; } bool timeout() { return ++time > 5; } PendingCommand(const QString &_cmd, int _msgid) : cmd(_cmd), msgid(_msgid), time(0) { } }; #endif