aboutsummaryrefslogtreecommitdiff
path: root/backends/cloud/cloudthread.h
diff options
context:
space:
mode:
Diffstat (limited to 'backends/cloud/cloudthread.h')
-rw-r--r--backends/cloud/cloudthread.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/backends/cloud/cloudthread.h b/backends/cloud/cloudthread.h
index ce448b7274..334a163dde 100644
--- a/backends/cloud/cloudthread.h
+++ b/backends/cloud/cloudthread.h
@@ -23,14 +23,19 @@
#ifndef BACKENDS_CLOUD_CLOUDTHREAD_H
#define BACKENDS_CLOUD_CLOUDTHREAD_H
-void cloudThread(void *thread); //this one is passed to TimerManager in main()
-
class CloudThread {
+ friend void cloudThread(void*); //calls private handler()
+
bool _firstTime;
+
+ void handler();
+ void setTimeout(int interval);
+ void unsetTimeout();
+
public:
CloudThread(): _firstTime(true) {};
- void work();
+ void start();
};
#endif