Official reference client implementation for Cumulocity SmartREST on u-blox C027.

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Vincent Wochnik

operation/OperationSupport.h

Committer:
xinlei
Date:
2015-05-13
Revision:
107:fc5f25f0e0d5
Parent:
99:e369fc75c000
Child:
108:f1ee3e1eb126

File content as of revision 107:fc5f25f0e0d5:

#ifndef OPERATIONSUPPORT_H
#define OPERATIONSUPPORT_H

#include "Operation.h"
#include "SmartRestConf.h"
#include "SmartRestTemplate.h"
#include "ConfigSync.h"

class OperationSupport
{
public:
    OperationSupport(SmartRestTemplate& tpl, OperationPool& pool,
    ConfigSync& _conf): _init(false), _tpl(tpl), opool(pool), conf(_conf) {}

    bool executePendingOperations();
    bool init();

private:
    bool _init;
    SmartRestTemplate& _tpl;
    OperationPool& opool;
    ConfigSync &conf;
};

#endif