aboutsummaryrefslogtreecommitdiff
path: root/backends/networking/curl/request.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-05-26 17:12:40 +0600
committerAlexander Tkachev2016-08-24 16:07:55 +0600
commiteda575a660543884b1a4addd21b676a67d2c2a31 (patch)
tree0964f46167ff44daefba64cf429ea69da5512aeb /backends/networking/curl/request.h
parent17fc40a94436f970af75d6717c7a63c70eafcb12 (diff)
downloadscummvm-rg350-eda575a660543884b1a4addd21b676a67d2c2a31.tar.gz
scummvm-rg350-eda575a660543884b1a4addd21b676a67d2c2a31.tar.bz2
scummvm-rg350-eda575a660543884b1a4addd21b676a67d2c2a31.zip
CLOUD: Add Requests id
(Upgrading ConnectionManager step by step.)
Diffstat (limited to 'backends/networking/curl/request.h')
-rw-r--r--backends/networking/curl/request.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/backends/networking/curl/request.h b/backends/networking/curl/request.h
index 37cb3884ca..0265d3e2f3 100644
--- a/backends/networking/curl/request.h
+++ b/backends/networking/curl/request.h
@@ -24,6 +24,7 @@
#define BACKENDS_NETWORKING_CURL_REQUEST_H
#include "common/callback.h"
+#include "common/scummsys.h"
namespace Networking {
@@ -36,9 +37,11 @@ protected:
Common::BaseCallback<> *_callback;
+ int32 _id;
+
public:
- Request(Common::BaseCallback<> *cb): _callback(cb) {};
- virtual ~Request() { delete _callback; };
+ Request(Common::BaseCallback<> *cb): _callback(cb), _id(-1) {}
+ virtual ~Request() { delete _callback; }
/**
* Method, which does actual work. Depends on what this Request is doing.
@@ -47,6 +50,8 @@ public:
*/
virtual bool handle() = 0;
+
+ void setId(int32 id) { _id = id; }
};
} //end of namespace Cloud