ObserveCache & operator = (const ObserveCache &) = delete;
ObserveCache & operator = (ObserveCache &&) = delete;
- void startCache(DataCacheCB func);
+ void startCache(DataCacheCB func, bool reportAll = false);
void stopCache();
CACHE_STATE getCacheState() const;
private:
static void verifyObserveCB(const HeaderOptions &_hos,
const ResponseStatement &_rep, int _result,
- unsigned int _seq, weakDataCache ptr);
+ unsigned int _seq, weakDataCache ptr, bool reportAll);
void onObserve(const HeaderOptions &_hos,
- const ResponseStatement &_rep, int _result, unsigned int _seq);
+ const ResponseStatement &_rep, int _result, unsigned int _seq, bool reportAll);
bool convertOCResultToSuccess(OCStackResult ret);
};
} // namespace Service