1 //******************************************************************
3 // Copyright 2014 Intel Corporation All Rights Reserved.
4 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 /// @file OCResourceHandler.h
8 /// @brief This file contains the declaration of classes and its members related to
11 #ifndef _OCRESOURCEHANDLER_H
12 #define _OCRESOURCEHANDLER_H
15 #include "OCResource.h"
20 * @brief OCResourceHandler is a pure abstract class and it can be used for
21 * resource related callbacks
23 class OCResourceHandler
26 virtual ~OCResourceHandler(void){}
28 * @fn This function is called when it finds the resource
30 * @param update resource result information
31 * @param params reserved
33 virtual void onFoundResource(OCResourceResult *update, void *params) = 0;
35 * @fn This function is called when the find is completed
37 * @param propertyName name of the property
38 * @param value value of the property
40 virtual void onCompleted() = 0;
42 * @fn This function is called when the find is failed
45 virtual void onFailed() = 0;
49 #endif //_OCRESOURCEHANDLER_H