mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-06-10 16:24:45 -07:00
initial commit
This commit is contained in:
commit
a11f93df4d
99 changed files with 7493 additions and 0 deletions
21
servatrice/src/returnmessage.h
Normal file
21
servatrice/src/returnmessage.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef RETURNMESSAGE_H
|
||||
#define RETURNMESSAGE_H
|
||||
|
||||
#include <QString>
|
||||
#include <QObject>
|
||||
|
||||
class ReturnMessage : public QObject {
|
||||
Q_OBJECT
|
||||
private:
|
||||
unsigned int msg_id;
|
||||
QString cmd;
|
||||
public:
|
||||
ReturnMessage(QObject *parent = 0) : QObject(parent), msg_id(0) { }
|
||||
unsigned int getMsgId() const { return msg_id; }
|
||||
void setMsgId(unsigned int _msg_id);
|
||||
void setCmd(const QString &_cmd) { cmd = _cmd; }
|
||||
bool send(const QString &args = QString(), bool success = true);
|
||||
bool sendList(const QStringList &args);
|
||||
};
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue