
Own fork of MbedSmartRestMain
Dependencies: C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed
Fork of MbedSmartRestMain by
Diff: operation/OperationSupport.h
- Revision:
- 106:fc5f25f0e0d5
- Parent:
- 98:e369fc75c000
- Child:
- 107:f1ee3e1eb126
--- a/operation/OperationSupport.h Mon May 11 18:10:44 2015 +0000 +++ b/operation/OperationSupport.h Wed May 13 12:12:55 2015 +0000 @@ -2,29 +2,24 @@ #define OPERATIONSUPPORT_H #include "Operation.h" -#include "SmartRest.h" +#include "SmartRestConf.h" #include "SmartRestTemplate.h" +#include "ConfigSync.h" class OperationSupport { public: - OperationSupport(SmartRest& client, SmartRestTemplate& tpl, OperationPool& pool): - _init(false), _firstRun(true), _tpl(tpl), - _client(client), opool(pool) {} + OperationSupport(SmartRestTemplate& tpl, OperationPool& pool, + ConfigSync& _conf): _init(false), _tpl(tpl), opool(pool), conf(_conf) {} + + bool executePendingOperations(); bool init(); - bool run(); - -protected: - bool requestPendingOperations(); - bool executePendingOperation(Operation&); - bool operationFromRecord(ParsedRecord& record, Operation& op); private: bool _init; - bool _firstRun; SmartRestTemplate& _tpl; - SmartRest& _client; OperationPool& opool; + ConfigSync &conf; }; #endif \ No newline at end of file