diff options
| author | Ben Boeckel <MathStuf@gmail.com> | 2009-03-28 17:23:30 -0400 |
|---|---|---|
| committer | Ben Boeckel <MathStuf@gmail.com> | 2009-03-28 17:24:26 -0400 |
| commit | 9aa254bce6db08392067c8bcea76374afc2d9b8f (patch) | |
| tree | e9ae2b4b5dd8c58f669c0115568597099551b10f | |
| parent | 39d416c00549e6d10ec19b21a85e02401c47713b (diff) | |
Move messaging down to the Client interface
| -rw-r--r-- | sigencore/Client.cpp | 4 | ||||
| -rw-r--r-- | sigencore/Client.h | 9 |
2 files changed, 13 insertions, 0 deletions
diff --git a/sigencore/Client.cpp b/sigencore/Client.cpp index f2bef9b2..5ec12fee 100644 --- a/sigencore/Client.cpp +++ b/sigencore/Client.cpp @@ -90,3 +90,7 @@ Canvas* Client::canvas(const QString& canvas) return m_canvases[canvas]; return NULL; } + +void Client::postRequest(const int type, const QVariantList& arguments) +{ +} diff --git a/sigencore/Client.h b/sigencore/Client.h index 27d3ae75..16a057b1 100644 --- a/sigencore/Client.h +++ b/sigencore/Client.h @@ -39,8 +39,13 @@ class Overworld; class SIGENCORE_EXPORT Client : public Sigscript::Config { Q_OBJECT + Q_ENUMS(ClientRequestType) public: + enum ClientRequestType + { + }; + Q_SCRIPTABLE Arena* arena(); Q_SCRIPTABLE Overworld* world(); Q_SCRIPTABLE Canvas* canvas(const QString& canvas); @@ -53,7 +58,11 @@ class SIGENCORE_EXPORT Client : public Sigscript::Config virtual bool addCanvas(const QString& name, Canvas* canvas); virtual void removeCanvas(const QString& canvas); + + virtual void postRequest(const int type, const QVariantList& arguments = QVariantList()); signals: + void postReply(const int type, const QVariantList& arguments = QVariantList()); + void cleanupClient(); protected: Client(Sigscript::GameWrapper* game, Sigscript::Config* parent); |
