iotivity 0.9.0
[platform/upstream/iotivity.git] / service / notification-manager / NotificationManager / include / HostingInterface.h
1 /*
2  * HostingInterface.h
3  *
4  *  Created on: 2014. 10. 15.
5  *      Author: jyong2
6  */
7
8 #ifndef HOSTINGINTERFACE_H_
9 #define HOSTINGINTERFACE_H_
10
11 #include "NotificationManager.h"
12
13 using namespace OC;
14 using namespace OCPlatform;
15
16 class HostingInterface
17 {
18
19 public:
20         HostingInterface();
21         ~HostingInterface();
22
23         int setOnFoundHostingCandidate(
24                         std::function< void(std::shared_ptr< OCResource > resource) > func);
25         int setOnObserve(std::function< void(AttributeMap &inputAttMap, OCResourceHandle resourceHandle) > func);
26
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);
31
32 };
33
34 #endif /* HOSTINGINTERFACE_H_ */