Update snapshot(2018-01-04)
[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 OC_OUT_OF_PROC_CLIENT_WRAPPER_H_
22 #define OC_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 stop()
36         {
37             return OC_STACK_NOTIMPL;
38         }
39
40         virtual OCStackResult start()
41         {
42             return OC_STACK_NOTIMPL;
43         }
44
45         virtual OCStackResult ListenForResource(const std::string& /*servUrl*/,
46                                                 const std::string& /*rsrcType*/,
47                                                 OCConnectivityType /*connType*/,
48                                                 FindCallback& /*callback*/,
49                                                 QualityOfService /*QoS*/)
50             {return OC_STACK_NOTIMPL;}
51
52         virtual OCStackResult ListenForResourceList(const std::string& /*servUrl*/,
53                                                 const std::string& /*rsrcType*/,
54                                                 OCConnectivityType /*connType*/,
55                                                 FindResListCallback& /*callback*/,
56                                                 QualityOfService /*QoS*/)
57             {return OC_STACK_NOTIMPL;}
58
59         virtual OCStackResult ListenForResourceListWithError(const std::string& /*servUrl*/,
60                                                 const std::string&  /*rsrcType*/,
61                                                 OCConnectivityType /*connType*/,
62                                                 FindResListCallback& /*callback*/,
63                                                 FindErrorCallback&  /*errorCallback*/,
64                                                 QualityOfService /*QoS*/)
65             {return OC_STACK_NOTIMPL;}
66
67         virtual OCStackResult ListenErrorForResource(const std::string& /*servUrl*/,
68                                                      const std::string& /*rsrcType*/,
69                                                      OCConnectivityType /*connType*/,
70                                                      FindCallback& /*callback*/,
71                                                      FindErrorCallback& /*errorCallback*/,
72                                                      QualityOfService /*QoS*/)
73             {return OC_STACK_NOTIMPL;}
74
75         virtual OCStackResult ListenForDevice(const std::string& /*serviceUrl*/,
76                                               const std::string& /*deviceURI*/,
77                                               OCConnectivityType /*connType*/,
78                                               FindDeviceCallback& /*callback*/,
79                                               QualityOfService /*QoS*/)
80             {return OC_STACK_NOTIMPL;}
81
82         virtual OCStackResult ListenForDevice(const std::string& /*serviceUrl*/,
83                                               const std::string& /*deviceURI*/,
84                                               FindDeviceCallback& /*callback*/,
85                                               QualityOfService /*QoS*/)
86             {return OC_STACK_NOTIMPL;}
87
88         virtual OCStackResult GetResourceRepresentation(
89             const OCDevAddr& /*devAddr*/,
90             const std::string& /*uri*/,
91             const QueryParamsMap& /*queryParams*/,
92             const HeaderOptions& /*headerOptions*/,
93             OCConnectivityType /*connectivityType*/,
94             GetCallback& /*callback*/, QualityOfService /*QoS*/)
95             {return OC_STACK_NOTIMPL;}
96
97         virtual OCStackResult PutResourceRepresentation(
98             const OCDevAddr& /*devAddr*/,
99             const std::string& /*uri*/,
100             const OCRepresentation& /*attributes*/,
101             const QueryParamsMap& /*queryParams*/,
102             const HeaderOptions& /*headerOptions*/,
103             PutCallback& /*callback*/,
104             QualityOfService /*QoS*/)
105             {return OC_STACK_NOTIMPL;}
106
107         virtual OCStackResult PostResourceRepresentation(
108             const OCDevAddr& /*devAddr*/,
109             const std::string& /*uri*/,
110             const OCRepresentation& /*attributes*/,
111             const QueryParamsMap& /*queryParams*/,
112             const HeaderOptions& /*headerOptions*/,
113             OCConnectivityType /*connectivityType*/,
114             PostCallback& /*callback*/, QualityOfService /*QoS*/)
115             {return OC_STACK_NOTIMPL;}
116
117         virtual OCStackResult DeleteResource(
118             const OCDevAddr& /*devAddr*/,
119             const std::string& /*uri*/,
120             const HeaderOptions& /*headerOptions*/,
121             OCConnectivityType /*connectivityType*/,
122             DeleteCallback& /*callback*/, QualityOfService /*QoS*/)
123             {return OC_STACK_NOTIMPL;}
124
125         virtual OCStackResult ObserveResource(
126             ObserveType /*observeType*/, OCDoHandle* /*handle*/,
127             const OCDevAddr& /*devAddr*/,
128             const std::string& /*uri*/,
129             const QueryParamsMap& /*queryParams*/,
130             const HeaderOptions& /*headerOptions*/,
131             ObserveCallback& /*callback*/, QualityOfService /*QoS*/)
132             {return OC_STACK_NOTIMPL;}
133
134         virtual OCStackResult CancelObserveResource(
135             OCDoHandle /*handle*/,
136             const std::string& /*host*/,
137             const std::string& /*uri*/,
138             const HeaderOptions& /*headerOptions*/, QualityOfService /*QoS*/)
139             {return OC_STACK_NOTIMPL;}
140
141         virtual OCStackResult SubscribePresence(
142             OCDoHandle* /*handle*/,
143             const std::string& /*host*/,
144             const std::string& /*resourceType*/,
145             OCConnectivityType /*connectivityType*/,
146             SubscribeCallback& /*presenceHandler*/)
147             {return OC_STACK_NOTIMPL;}
148
149         virtual OCStackResult UnsubscribePresence(OCDoHandle /*handle*/)
150             {return OC_STACK_NOTIMPL;}
151 #ifdef WITH_CLOUD
152         virtual OCStackResult SubscribeDevicePresence(
153             OCDoHandle* /*handle*/,
154             const std::string& /*host*/,
155             const std::vector<std::string>& /*di*/,
156             OCConnectivityType /*connectivityType*/,
157             ObserveCallback& /*callback*/)
158             {return OC_STACK_NOTIMPL;}
159 #endif
160
161         virtual OCStackResult GetDefaultQos(QualityOfService& /*QoS*/)
162             {return OC_STACK_NOTIMPL;}
163
164         virtual OCStackResult FindDirectPairingDevices(unsigned short /*waittime*/,
165                        GetDirectPairedCallback& /*callback*/)
166             {return OC_STACK_NOTIMPL;}
167
168         virtual OCStackResult GetDirectPairedDevices(GetDirectPairedCallback& /*callback*/)
169             {return OC_STACK_NOTIMPL;}
170
171         virtual OCStackResult DoDirectPairing(std::shared_ptr<OCDirectPairing> /*peer*/,
172                 const OCPrm_t& /*pmSel*/,
173                 const std::string& /*pinNumber*/, DirectPairingCallback& /*resultCallback*/)
174             {return OC_STACK_NOTIMPL;}
175
176 #ifdef WITH_MQ
177         virtual OCStackResult ListenForMQTopic(const OCDevAddr& /*devAddr*/,
178                                                const std::string& /*resourceUri*/,
179                                                const QueryParamsMap& /*queryParams*/,
180                                                const HeaderOptions& /*headerOptions*/,
181                                                MQTopicCallback& /*callback*/,
182                                                QualityOfService /*QoS*/)
183             {return OC_STACK_NOTIMPL;}
184
185         virtual OCStackResult PutMQTopicRepresentation(const OCDevAddr& /*devAddr*/,
186                                                        const std::string& /*uri*/,
187                                                        const OCRepresentation& /*rep*/,
188                                                        const QueryParamsMap& /*queryParams*/,
189                                                        const HeaderOptions& /*headerOptions*/,
190                                                        MQTopicCallback& /*callback*/,
191                                                        QualityOfService /*QoS*/)
192             {return OC_STACK_NOTIMPL;}
193 #endif
194 #ifdef TCP_ADAPTER
195         virtual OCStackResult findKeepAliveResource(std::string /*host*/,
196                                                     KeepAliveCallback /*resultCallback*/)
197             {return OC_STACK_NOTIMPL;}
198         virtual OCStackResult sendKeepAliveRequest(std::string /*host*/, const OCRepresentation& /*rep*/,
199                                                    KeepAliveCallback /*resultCallback*/)
200             {return OC_STACK_NOTIMPL;}
201 #endif
202     };
203 }
204
205 #endif