4 * Created on: 2014. 10. 15.
8 #ifndef HOSTINGINTERFACE_H_
9 #define HOSTINGINTERFACE_H_
11 #include "NotificationManager.h"
14 using namespace OCPlatform;
16 class HostingInterface
23 int setOnFoundHostingCandidate(
24 std::function< void(std::shared_ptr< OCResource > resource) > func);
25 int setOnObserve(std::function< void(AttributeMap &inputAttMap, OCResourceHandle resourceHandle) > func);
27 int setFindHosting(std::function< void(bool isHosting) > &func);
28 int setStartHosting(std::function< void(std::shared_ptr< OCResource > resource) > &func);
29 int setNotifyObservers(std::function< void(OCResourceHandle resourceHandle) > &func);
30 int setAddExtraStr(std::function< void(std::string) > &func);
34 #endif /* HOSTINGINTERFACE_H_ */