mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
18 lines
367 B
C++
18 lines
367 B
C++
#ifndef PENDINGCOMMAND_H
|
|
#define PENDINGCOMMAND_H
|
|
|
|
#include <QString>
|
|
|
|
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
|