1 //******************************************************************
3 // Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
7 // Licensed under the Apache License, Version 2.0 (the "License");
8 // you may not use this file except in compliance with the License.
9 // You may obtain a copy of the License at
11 // http://www.apache.org/licenses/LICENSE-2.0
13 // Unless required by applicable law or agreed to in writing, software
14 // distributed under the License is distributed on an "AS IS" BASIS,
15 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 // See the License for the specific language governing permissions and
17 // limitations under the License.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21 #ifndef _OUT_OF_PROC_CLIENT_WRAPPER_H_
22 #define _OUT_OF_PROC_CLIENT_WRAPPER_H_
28 class OutOfProcClientWrapper : public IClientWrapper
31 OutOfProcClientWrapper(std::weak_ptr<std::recursive_mutex> csdkLock,
36 virtual OCStackResult ListenForResource(const std::string& serviceUrl,
37 const std::string& resourceType, uint8_t connectivityType,
38 FindCallback& callback, QualityOfService QoS)
39 {return OC_STACK_NOTIMPL;}
41 virtual OCStackResult ListenForDevice(const std::string& serviceUrl,
42 const std::string& deviceURI, uint8_t connectivityType, FindDeviceCallback& callback,
44 {return OC_STACK_NOTIMPL;}
46 virtual OCStackResult GetResourceRepresentation(const std::string& host,
47 const std::string& uri, uint8_t connectivityType, const QueryParamsMap& queryParams,
48 const HeaderOptions& headerOptions, GetCallback& callback,
50 {return OC_STACK_NOTIMPL;}
52 virtual OCStackResult PutResourceRepresentation(const std::string& host,
53 const std::string& uri, uint8_t connectivityType, const OCRepresentation& attributes,
54 const QueryParamsMap& queryParams,
55 const HeaderOptions& headerOptions, PutCallback& callback,
57 {return OC_STACK_NOTIMPL;}
59 virtual OCStackResult PostResourceRepresentation(const std::string& host,
60 const std::string& uri, uint8_t connectivityType, const OCRepresentation& attributes,
61 const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
62 PostCallback& callback, QualityOfService QoS)
63 {return OC_STACK_NOTIMPL;}
65 virtual OCStackResult DeleteResource(const std::string& host, const std::string& uri,
66 uint8_t connectivityType, const HeaderOptions& headerOptions, DeleteCallback& callback,
67 QualityOfService QoS) {return OC_STACK_NOTIMPL;}
69 virtual OCStackResult ObserveResource(ObserveType observeType, OCDoHandle* handle,
70 const std::string& host, const std::string& uri, uint8_t connectivityType,
71 const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
72 ObserveCallback& callback, QualityOfService QoS){return OC_STACK_NOTIMPL;}
74 virtual OCStackResult ListenForResource(const std::string& serviceUrl,
75 const std::string& resourceType, FindCallback& callback, QualityOfService QoS)
76 {return OC_STACK_NOTIMPL;}
78 virtual OCStackResult ListenForDevice(const std::string& serviceUrl,
79 const std::string& deviceURI, FindDeviceCallback& callback,
81 {return OC_STACK_NOTIMPL;}
83 virtual OCStackResult GetResourceRepresentation(const std::string& host,
84 const std::string& uri, const QueryParamsMap& queryParams,
85 const HeaderOptions& headerOptions, GetCallback& callback,
87 {return OC_STACK_NOTIMPL;}
89 virtual OCStackResult PutResourceRepresentation(const std::string& host,
90 const std::string& uri, const OCRepresentation& attributes,
91 const QueryParamsMap& queryParams,
92 const HeaderOptions& headerOptions, PutCallback& callback,
94 {return OC_STACK_NOTIMPL;}
96 virtual OCStackResult PostResourceRepresentation(const std::string& host,
97 const std::string& uri, const OCRepresentation& attributes,
98 const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
99 PostCallback& callback, QualityOfService QoS)
100 {return OC_STACK_NOTIMPL;}
102 virtual OCStackResult DeleteResource(const std::string& host, const std::string& uri,
103 const HeaderOptions& headerOptions, DeleteCallback& callback,
104 QualityOfService QoS) {return OC_STACK_NOTIMPL;}
106 virtual OCStackResult ObserveResource(ObserveType observeType, OCDoHandle* handle,
107 const std::string& host, const std::string& uri, const QueryParamsMap& queryParams,
108 const HeaderOptions& headerOptions,
109 ObserveCallback& callback, QualityOfService QoS){return OC_STACK_NOTIMPL;}
111 virtual OCStackResult CancelObserveResource(OCDoHandle handle, const std::string& host,
112 const std::string& uri,
113 const HeaderOptions& headerOptions, QualityOfService QoS){return OC_STACK_NOTIMPL;}
115 virtual OCStackResult SubscribePresence(OCDoHandle* handle, const std::string& host,
116 const std::string& resourceType, uint8_t connectivityType,
117 SubscribeCallback& presenceHandler)
118 {return OC_STACK_NOTIMPL;}
120 virtual OCStackResult SubscribePresence(OCDoHandle* handle, const std::string& host,
121 const std::string& resourceType, SubscribeCallback& presenceHandler)
122 {return OC_STACK_NOTIMPL;}
124 virtual OCStackResult UnsubscribePresence(OCDoHandle handle){return OC_STACK_NOTIMPL;}
126 virtual OCStackResult GetDefaultQos(QualityOfService& QoS){return OC_STACK_NOTIMPL;}