This commit is contained in:
Max-Wilhelm Bruker 2009-05-23 02:43:28 +02:00
parent 175512a2ad
commit bb30012fbb
4 changed files with 31 additions and 25 deletions

View file

@ -11,9 +11,8 @@ private:
public:
int getMsgId() const { return msgid; }
QString getCmd() const { return cmd; }
bool timeout() const { return time > 5; }
void incTime() { ++time; }
bool timeout() { return ++time > 5; }
PendingCommand(const QString &_cmd, int _msgid) : cmd(_cmd), msgid(_msgid), time(0) { }
};
#endif