mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-15 06:52:15 -07:00
Move pending command, adjust CmakeLists.
Took 24 minutes
This commit is contained in:
parent
c5bf87dfed
commit
eb7c4cae6c
33 changed files with 96 additions and 43 deletions
|
|
@ -1,34 +0,0 @@
|
|||
/**
|
||||
* @file pending_command.h
|
||||
* @ingroup Messages
|
||||
* @brief TODO: Document this.
|
||||
*/
|
||||
|
||||
#ifndef PENDING_COMMAND_H
|
||||
#define PENDING_COMMAND_H
|
||||
|
||||
#include <QVariant>
|
||||
#include <libcockatrice/protocol/pb/commands.pb.h>
|
||||
#include <libcockatrice/protocol/pb/response.pb.h>
|
||||
|
||||
class PendingCommand : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
signals:
|
||||
void finished(const Response &response, const CommandContainer &commandContainer, const QVariant &extraData);
|
||||
|
||||
private:
|
||||
CommandContainer commandContainer;
|
||||
QVariant extraData;
|
||||
int ticks;
|
||||
|
||||
public:
|
||||
explicit PendingCommand(const CommandContainer &_commandContainer, QVariant _extraData = QVariant());
|
||||
CommandContainer &getCommandContainer();
|
||||
void setExtraData(const QVariant &_extraData);
|
||||
QVariant getExtraData() const;
|
||||
void processResponse(const Response &response);
|
||||
int tick();
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue