Imported Upstream version 0.9.2
[platform/upstream/iotivity.git] / resource / include / OutOfProcClientWrapper.h
1 //******************************************************************
2 //
3 // Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
4 //
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
6 //
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
10 //
11 //      http://www.apache.org/licenses/LICENSE-2.0
12 //
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.
18 //
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
20
21 #ifndef _OUT_OF_PROC_CLIENT_WRAPPER_H_
22 #define _OUT_OF_PROC_CLIENT_WRAPPER_H_
23
24 #include <OCApi.h>
25
26 namespace OC
27 {
28     class OutOfProcClientWrapper : public IClientWrapper
29     {
30     public:
31         OutOfProcClientWrapper(std::weak_ptr<std::recursive_mutex> csdkLock,
32                                 PlatformConfig cfg)
33         {}
34
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;}
40
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;}
46
47         virtual OCStackResult ListenForDevice(const std::string& serviceUrl,
48             const std::string& deviceURI, FindDeviceCallback& callback,
49             QualityOfService QoS)
50             {return OC_STACK_NOTIMPL;}
51
52         virtual OCStackResult GetResourceRepresentation(
53             const OCDevAddr& devAddr,
54             const std::string& uri,
55             const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
56             GetCallback& callback, QualityOfService QoS)
57             {return OC_STACK_NOTIMPL;}
58
59         virtual OCStackResult PutResourceRepresentation(
60             const OCDevAddr& devAddr,
61             const std::string& uri,
62             const OCRepresentation& attributes, const QueryParamsMap& queryParams,
63             const HeaderOptions& headerOptions, PutCallback& callback,
64             QualityOfService QoS)
65             {return OC_STACK_NOTIMPL;}
66
67         virtual OCStackResult PostResourceRepresentation(
68             const OCDevAddr& devAddr,
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;}
73
74         virtual OCStackResult DeleteResource(
75             const OCDevAddr& devAddr,
76             const std::string& uri,
77             const HeaderOptions& headerOptions,
78             DeleteCallback& callback, QualityOfService QoS)
79             {return OC_STACK_NOTIMPL;}
80
81         virtual OCStackResult ObserveResource(
82             ObserveType observeType, OCDoHandle* handle,
83             const OCDevAddr& devAddr,
84             const std::string& uri,
85             const QueryParamsMap& queryParams, const HeaderOptions& headerOptions,
86             ObserveCallback& callback, QualityOfService QoS)
87             {return OC_STACK_NOTIMPL;}
88
89         virtual OCStackResult CancelObserveResource(
90             OCDoHandle handle,
91             const std::string& host,
92             const std::string& uri,
93             const HeaderOptions& headerOptions, QualityOfService QoS)
94             {return OC_STACK_NOTIMPL;}
95
96         virtual OCStackResult SubscribePresence(
97             OCDoHandle* handle,
98             const std::string& host,
99             const std::string& resourceType,
100             OCConnectivityType connectivityType,
101             SubscribeCallback& presenceHandler)
102             {return OC_STACK_NOTIMPL;}
103
104         virtual OCStackResult UnsubscribePresence(OCDoHandle handle)
105             {return OC_STACK_NOTIMPL;}
106
107         virtual OCStackResult GetDefaultQos(QualityOfService& QoS)
108             {return OC_STACK_NOTIMPL;}
109     };
110 }
111
112 #endif
113