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,
35 virtual OCStackResult ListenForResource(const std::string& serviceUrl,
36 const std::string& resourceType,
37 OCConnectivityType connectivityType,
38 FindCallback& callback, QualityOfService QoS)
39 {return OC_STACK_NOTIMPL;}
41 virtual OCStackResult ListenForDevice(const std::string& serviceUrl,
42 const std::string& deviceURI,
43 OCConnectivityType connectivityType,
44 FindDeviceCallback& callback, QualityOfService QoS)
45 {return OC_STACK_NOTIMPL;}
47 virtual OCStackResult ListenForDevice(const std::string& serviceUrl,
48 const std::string& deviceURI, FindDeviceCallback& callback,
50 {return OC_STACK_NOTIMPL;}
52 virtual OCStackResult GetResourceRepresentation(
53 const OCDevAddr& devAddr, bool useHostString,
54 const std::string& uri,
55 const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
56 GetCallback& callback, QualityOfService QoS)
57 {return OC_STACK_NOTIMPL;}
59 virtual OCStackResult PutResourceRepresentation(
60 const OCDevAddr& devAddr, bool useHostString,
61 const std::string& uri,
62 const OCRepresentation& attributes, const QueryParamsMap& queryParams,
63 const HeaderOptions& headerOptions, PutCallback& callback,
65 {return OC_STACK_NOTIMPL;}
67 virtual OCStackResult PostResourceRepresentation(
68 const OCDevAddr& devAddr, bool useHostString,
69 const std::string& uri,
70 const OCRepresentation& attributes, const QueryParamsMap& queryParams,
71 const HeaderOptions& headerOptions, PostCallback& callback, QualityOfService QoS)
72 {return OC_STACK_NOTIMPL;}
74 virtual OCStackResult DeleteResource(
75 const OCDevAddr& devAddr, bool useHostString,
76 const std::string& uri,
77 const HeaderOptions& headerOptions,
78 DeleteCallback& callback, QualityOfService QoS)
79 {return OC_STACK_NOTIMPL;}
81 virtual OCStackResult ObserveResource(
82 ObserveType observeType, OCDoHandle* handle,
83 const OCDevAddr& devAddr, bool useHostString,
84 const std::string& uri,
85 const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
86 ObserveCallback& callback, QualityOfService QoS)
87 {return OC_STACK_NOTIMPL;}
89 virtual OCStackResult CancelObserveResource(
91 const std::string& host,
92 const std::string& uri,
93 const HeaderOptions& headerOptions, QualityOfService QoS)
94 {return OC_STACK_NOTIMPL;}
96 virtual OCStackResult SubscribePresence(
98 const std::string& host,
99 const std::string& resourceType,
100 OCConnectivityType connectivityType,
101 SubscribeCallback& presenceHandler)
102 {return OC_STACK_NOTIMPL;}
104 virtual OCStackResult UnsubscribePresence(OCDoHandle handle)
105 {return OC_STACK_NOTIMPL;}
107 virtual OCStackResult GetDefaultQos(QualityOfService& QoS)
108 {return OC_STACK_NOTIMPL;}