aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/cloudthread.h
diff options
context:
space:
mode:
authorAlexander Tkachev2016-05-11 01:10:37 +0600
committerAlexander Tkachev2016-08-24 16:05:07 +0600
commit8429c40362b1e4d4010f808740b79baae69c97ed (patch)
tree8916f123e0dfadd807cfccae0446e4627102d1ed /backends/cloud/cloudthread.h
parent380902eb071fbe960e615d0c29fc1f5099aa9af8 (diff)
downloadscummvm-rg350-8429c40362b1e4d4010f808740b79baae69c97ed.tar.gz
scummvm-rg350-8429c40362b1e4d4010f808740b79baae69c97ed.tar.bz2
scummvm-rg350-8429c40362b1e4d4010f808740b79baae69c97ed.zip
CLOUD: Add SimpleJSON library as Common::JSON
This commit also adds CloudThread class, which work() method is called every second by TimerManager. Right now it prints JSON examples on the console, so that's why it's introduced with SimpleJSON library.
Diffstat (limited to 'backends/cloud/cloudthread.h')
-rw-r--r--backends/cloud/cloudthread.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/backends/cloud/cloudthread.h b/backends/cloud/cloudthread.h
new file mode 100644
index 0000000000..dcab42f6ae
--- /dev/null
+++ b/backends/cloud/cloudthread.h
@@ -0,0 +1,35 @@
+/* ScummVM - Graphic Adventure Engine
+*
+* ScummVM is the legal property of its developers, whose names
+* are too numerous to list here. Please refer to the COPYRIGHT
+* file distributed with this source distribution.
+*
+* This program is free software; you can redistribute it and/or
+* modify it under the terms of the GNU General Public License
+* as published by the Free Software Foundation; either version 2
+* of the License, or (at your option) any later version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU General Public License for more details.
+*
+* You should have received a copy of the GNU General Public License
+* along with this program; if not, write to the Free Software
+* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+*
+*/
+
+#ifndef BACKENDS_CLOUD_CLOUDTHREAD_H
+#define BACKENDS_CLOUD_CLOUDTHREAD_H
+
+void cloudThread(void *thread); //this one is passed to TimerManager in main()
+
+class CloudThread {
+ bool firstTime;
+public:
+ CloudThread(): firstTime(true) {};
+ void work();
+};
+
+#endif