X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Finclude%2FIServerWrapper.h;h=de5f019bfab7a97aff07de0fea12ac06177fb2dd;hb=refs%2Ftags%2Faccepted%2Ftizen%2Funified%2F20171010.063815;hp=1796b02db21554db0b6497b9dc751182a4999031;hpb=462db04b9d9b706e7484c84f7c3481cfab560618;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/include/IServerWrapper.h b/resource/include/IServerWrapper.h index 1796b02..de5f019 100644 --- a/resource/include/IServerWrapper.h +++ b/resource/include/IServerWrapper.h @@ -18,8 +18,8 @@ // //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= -#ifndef _I_SERVER_WRAPPER_H_ -#define _I_SERVER_WRAPPER_H_ +#ifndef OC_I_SERVER_WRAPPER_H_ +#define OC_I_SERVER_WRAPPER_H_ #include #include @@ -34,13 +34,11 @@ namespace OC class IServerWrapper { protected: - OCPlatform_impl& m_owner; public: typedef std::shared_ptr Ptr; - IServerWrapper(OCPlatform_impl& owner) - : m_owner(owner) + IServerWrapper() {} virtual ~IServerWrapper(){}; @@ -53,14 +51,11 @@ namespace OC EntityHandler& entityHandler, uint8_t resourceProperty) = 0; - virtual OCStackResult registerResourceWithHost( - OCResourceHandle& resourceHandle, - std::string& resourceHOST, - std::string& resourceURI, - const std::string& resourceTypeName, - const std::string& resourceInterface, - EntityHandler& entityHandler, - uint8_t resourceProperty) = 0; + virtual OCStackResult registerDeviceInfo( + const OCDeviceInfo deviceInfo) = 0; + + virtual OCStackResult registerPlatformInfo( + const OCPlatformInfo PlatformInfo) = 0; virtual OCStackResult unregisterResource( const OCResourceHandle& resourceHandle) = 0; @@ -76,7 +71,26 @@ namespace OC virtual OCStackResult stopPresence() = 0; + virtual OCStackResult notifyAllObservers( + OCResourceHandle resourceHandle, + QualityOfService QoS) = 0; + + virtual OCStackResult notifyListOfObservers( + OCResourceHandle resourceHandle, + ObservationIds& observationIds, + const std::shared_ptr pResponse, + QualityOfService QoS) = 0; + virtual OCStackResult setDefaultDeviceEntityHandler(EntityHandler entityHandler) = 0; + + virtual OCStackResult sendResponse(const std::shared_ptr pResponse) = 0; + + virtual OCStackResult setPropertyValue(OCPayloadType type, const std::string& tag, const std::string& value) = 0; + virtual OCStackResult getPropertyValue(OCPayloadType type, const std::string& tag, std::string& value) = 0; + + virtual OCStackResult stop() = 0; + + virtual OCStackResult start() = 0; }; }