mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
19 lines
400 B
C++
19 lines
400 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() const { return time > 5; }
|
|
void incTime() { ++time; }
|
|
PendingCommand(const QString &_cmd, int _msgid) : cmd(_cmd), msgid(_msgid), time(0) { }
|
|
};
|
|
|
|
#endif
|