X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=resource%2Finclude%2FInProcClientWrapper.h;h=ff62d7b88ab666732b9ce91f5b2b6261bc65daa5;hb=8229635f6d207516ccbbdf23b13be164e0fc1787;hp=2c90c90f916a72d8a2bb03887f2fc3e14631d572;hpb=6dc5c6adbc159bbeb11ef6a387ad39dfbd0d3d52;p=platform%2Fupstream%2Fiotivity.git diff --git a/resource/include/InProcClientWrapper.h b/resource/include/InProcClientWrapper.h index 2c90c90..ff62d7b 100644 --- a/resource/include/InProcClientWrapper.h +++ b/resource/include/InProcClientWrapper.h @@ -67,6 +67,26 @@ namespace OC : callback(cb1), errorCallback(cb2), clientWrapper(cw){} }; + struct ListenResListContext + { + FindResListCallback callback; + std::weak_ptr clientWrapper; + + ListenResListContext(FindResListCallback cb, std::weak_ptr cw) + : callback(cb), clientWrapper(cw){} + }; + + struct ListenResListWithErrorContext + { + FindResListCallback callback; + FindErrorCallback errorCallback; + std::weak_ptr clientWrapper; + + ListenResListWithErrorContext(FindResListCallback cb1, FindErrorCallback cb2, + std::weak_ptr cw) + : callback(cb1), errorCallback(cb2), clientWrapper(cw){} + }; + struct DeviceListenContext { FindDeviceCallback callback; @@ -99,13 +119,20 @@ namespace OC DirectPairingContext(DirectPairingCallback cb) : callback(cb){} }; +#ifdef TCP_ADAPTER + struct KeepAliveContext + { + KeepAliveCallback callback; + KeepAliveContext(KeepAliveCallback cb) : callback(cb){} + }; +#endif #ifdef WITH_MQ - struct CreateMQTopicContext + struct MQTopicContext { - MQCreateTopicCallback callback; + MQTopicCallback callback; std::weak_ptr clientWrapper; - CreateMQTopicContext(MQCreateTopicCallback cb, std::weak_ptr cw) + MQTopicContext(MQTopicCallback cb, std::weak_ptr cw) : callback(cb), clientWrapper(cw){} }; #endif @@ -124,6 +151,15 @@ namespace OC const std::string& resourceType, OCConnectivityType transportFlags, FindCallback& callback, QualityOfService QoS); + virtual OCStackResult ListenForResourceList(const std::string& serviceUrl, + const std::string& resourceType, OCConnectivityType transportFlags, + FindResListCallback& callback, QualityOfService QoS); + + virtual OCStackResult ListenForResourceListWithError(const std::string& serviceUrl, + const std::string& resourceType, OCConnectivityType connectivityType, + FindResListCallback& callback, FindErrorCallback& errorCallback, + QualityOfService QoS); + virtual OCStackResult ListenErrorForResource(const std::string& serviceUrl, const std::string& resourceType, OCConnectivityType transportFlags, FindCallback& callback, FindErrorCallback& errorCallback, QualityOfService QoS); @@ -136,6 +172,7 @@ namespace OC const OCDevAddr& devAddr, const std::string& uri, const QueryParamsMap& queryParams, const HeaderOptions& headerOptions, + OCConnectivityType connectivityType, GetCallback& callback, QualityOfService QoS); virtual OCStackResult PutResourceRepresentation( @@ -155,6 +192,7 @@ namespace OC const OCDevAddr& devAddr, const std::string& uri, const HeaderOptions& headerOptions, + OCConnectivityType connectivityType, DeleteCallback& callback, QualityOfService QoS); virtual OCStackResult ObserveResource( @@ -202,14 +240,24 @@ namespace OC const OCDevAddr& devAddr, const std::string& resourceUri, const QueryParamsMap& queryParams, const HeaderOptions& headerOptions, - FindCallback& callback, QualityOfService QoS); + MQTopicCallback& callback, QualityOfService QoS); virtual OCStackResult PutMQTopicRepresentation( const OCDevAddr& devAddr, const std::string& uri, const OCRepresentation& rep, const QueryParamsMap& queryParams, const HeaderOptions& headerOptions, - MQCreateTopicCallback& callback, QualityOfService QoS); + MQTopicCallback& callback, QualityOfService QoS); +#endif + + virtual OCStackResult stop(); + virtual OCStackResult start(); + +#ifdef TCP_ADAPTER + virtual OCStackResult findKeepAliveResource(std::string host, + KeepAliveCallback resultCallback); + virtual OCStackResult sendKeepAliveRequest(std::string host, const OCRepresentation& rep, + KeepAliveCallback resultCallback); #endif private: