Own fork of MbedSmartRestMain

Dependencies:   C027_Support C12832 LM75B MMA7660 MbedSmartRest mbed-rtos mbed

Fork of MbedSmartRestMain by Cumulocity Official

operation/OperationSupport.h

Committer:
xinlei
Date:
2015-05-13
Revision:
106:fc5f25f0e0d5
Parent:
98:e369fc75c000
Child:
107:f1ee3e1eb126

File content as of revision 106: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