diff options
author | Alexander Tkachev | 2016-05-18 15:21:09 +0600 |
---|---|---|
committer | Alexander Tkachev | 2016-08-24 16:07:55 +0600 |
commit | 0a947618fb1faa023df03d355e9749905424dd58 (patch) | |
tree | db663626a23c333da1f9279cd6f92e8ce9c6e610 /backends/cloud/storage.h | |
parent | e743a65636a674def45e955cb7a5632aead2a033 (diff) | |
download | scummvm-rg350-0a947618fb1faa023df03d355e9749905424dd58.tar.gz scummvm-rg350-0a947618fb1faa023df03d355e9749905424dd58.tar.bz2 scummvm-rg350-0a947618fb1faa023df03d355e9749905424dd58.zip |
CLOUD: Make ConnectionManager singleton
With ConnectionManager singleton one can start their Requests without
creating Storage instance. Moreover, Storage instance should contain
cloud API, not Requests-related handling and timer starting methods.
Thus, these methods were moved into ConnectionManager itself.
Diffstat (limited to 'backends/cloud/storage.h')
-rw-r--r-- | backends/cloud/storage.h | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/backends/cloud/storage.h b/backends/cloud/storage.h index a5d048d3af..9e23e97761 100644 --- a/backends/cloud/storage.h +++ b/backends/cloud/storage.h @@ -24,28 +24,13 @@ #define BACKENDS_CLOUD_STORAGE_H #include "common/str.h" -#include "common/array.h" -#include "backends/cloud/request.h" -#include "backends/networking/curl/connectionmanager.h" namespace Cloud { class Storage { - friend void cloudThread(void *); //calls handler() - bool _timerStarted; - -protected: - Common::Array<Request *> _requests; - Networking::ConnectionManager _connectionManager; - - virtual void addRequest(Request *request); //starts the timer if it's not started - virtual void handler(); - virtual void startTimer(int interval = 1000000); //1 second is the default interval - virtual void stopTimer(); - public: - Storage(); - virtual ~Storage() {}; + Storage() {} + virtual ~Storage() {} /** * Lists given directory. |