added APIs related to account in OCAccountManager
[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 ListenForResource(const std::string& /*servUrl*/,
36                                                 const std::string& /*rsrcType*/,
37                                                 OCConnectivityType /*connType*/,
38                                                 FindCallback& /*callback*/,
39                                                 QualityOfService /*QoS*/)
40             {return OC_STACK_NOTIMPL;}
41
42         virtual OCStackResult ListenErrorForResource(const std::string& /*servUrl*/,
43                                                      const std::string& /*rsrcType*/,
44                                                      OCConnectivityType /*connType*/,
45                                                      FindCallback& /*callback*/,
46                                                      FindErrorCallback& /*errorCallback*/,
47                                                      QualityOfService /*QoS*/)
48             {return OC_STACK_NOTIMPL;}
49
50         virtual OCStackResult ListenForDevice(const std::string& /*serviceUrl*/,
51                                               const std::string& /*deviceURI*/,
52                                               OCConnectivityType /*connType*/,
53                                               FindDeviceCallback& /*callback*/,
54                                               QualityOfService /*QoS*/)
55             {return OC_STACK_NOTIMPL;}
56
57         virtual OCStackResult ListenForDevice(const std::string& /*serviceUrl*/,
58                                               const std::string& /*deviceURI*/,
59                                               FindDeviceCallback& /*callback*/,
60                                               QualityOfService /*QoS*/)
61             {return OC_STACK_NOTIMPL;}
62
63         virtual OCStackResult GetResourceRepresentation(
64             const OCDevAddr& /*devAddr*/,
65             const std::string& /*uri*/,
66             const QueryParamsMap& /*queryParams*/,
67             const HeaderOptions& /*headerOptions*/,
68             OCConnectivityType /*connectivityType*/,
69             GetCallback& /*callback*/, QualityOfService /*QoS*/)
70             {return OC_STACK_NOTIMPL;}
71
72         virtual OCStackResult PutResourceRepresentation(
73             const OCDevAddr& /*devAddr*/,
74             const std::string& /*uri*/,
75             const OCRepresentation& /*attributes*/,
76             const QueryParamsMap& /*queryParams*/,
77             const HeaderOptions& /*headerOptions*/,
78             PutCallback& /*callback*/,
79             QualityOfService /*QoS*/)
80             {return OC_STACK_NOTIMPL;}
81
82         virtual OCStackResult PostResourceRepresentation(
83             const OCDevAddr& /*devAddr*/,
84             const std::string& /*uri*/,
85             const OCRepresentation& /*attributes*/,
86             const QueryParamsMap& /*queryParams*/,
87             const HeaderOptions& /*headerOptions*/,
88             OCConnectivityType /*connectivityType*/,
89             PostCallback& /*callback*/, QualityOfService /*QoS*/)
90             {return OC_STACK_NOTIMPL;}
91
92         virtual OCStackResult DeleteResource(
93             const OCDevAddr& /*devAddr*/,
94             const std::string& /*uri*/,
95             const HeaderOptions& /*headerOptions*/,
96             OCConnectivityType /*connectivityType*/,
97             DeleteCallback& /*callback*/, QualityOfService /*QoS*/)
98             {return OC_STACK_NOTIMPL;}
99
100         virtual OCStackResult ObserveResource(
101             ObserveType /*observeType*/, OCDoHandle* /*handle*/,
102             const OCDevAddr& /*devAddr*/,
103             const std::string& /*uri*/,
104             const QueryParamsMap& /*queryParams*/,
105             const HeaderOptions& /*headerOptions*/,
106             ObserveCallback& /*callback*/, QualityOfService /*QoS*/)
107             {return OC_STACK_NOTIMPL;}
108
109         virtual OCStackResult CancelObserveResource(
110             OCDoHandle /*handle*/,
111             const std::string& /*host*/,
112             const std::string& /*uri*/,
113             const HeaderOptions& /*headerOptions*/, QualityOfService /*QoS*/)
114             {return OC_STACK_NOTIMPL;}
115
116         virtual OCStackResult SubscribePresence(
117             OCDoHandle* /*handle*/,
118             const std::string& /*host*/,
119             const std::string& /*resourceType*/,
120             OCConnectivityType /*connectivityType*/,
121             SubscribeCallback& /*presenceHandler*/)
122             {return OC_STACK_NOTIMPL;}
123
124         virtual OCStackResult UnsubscribePresence(OCDoHandle /*handle*/)
125             {return OC_STACK_NOTIMPL;}
126 #ifdef WITH_CLOUD
127         virtual OCStackResult SubscribeDevicePresence(
128             OCDoHandle* /*handle*/,
129             const std::string& /*host*/,
130             const std::vector<std::string>& /*di*/,
131             OCConnectivityType /*connectivityType*/,
132             ObserveCallback& /*callback*/)
133             {return OC_STACK_NOTIMPL;}
134 #endif
135
136         virtual OCStackResult GetDefaultQos(QualityOfService& /*QoS*/)
137             {return OC_STACK_NOTIMPL;}
138
139         virtual OCStackResult FindDirectPairingDevices(unsigned short /*waittime*/,
140                        GetDirectPairedCallback& /*callback*/)
141             {return OC_STACK_NOTIMPL;}
142
143         virtual OCStackResult GetDirectPairedDevices(GetDirectPairedCallback& /*callback*/)
144             {return OC_STACK_NOTIMPL;}
145
146         virtual OCStackResult DoDirectPairing(std::shared_ptr<OCDirectPairing> /*peer*/,
147                 const OCPrm_t& /*pmSel*/,
148                 const std::string& /*pinNumber*/, DirectPairingCallback& /*resultCallback*/)
149             {return OC_STACK_NOTIMPL;}
150
151 #ifdef WITH_MQ
152         virtual OCStackResult ListenForMQTopic(const OCDevAddr& /*devAddr*/,
153                                                const std::string& /*resourceUri*/,
154                                                const QueryParamsMap& /*queryParams*/,
155                                                const HeaderOptions& /*headerOptions*/,
156                                                FindCallback& /*callback*/,
157                                                QualityOfService /*QoS*/)
158             {return OC_STACK_NOTIMPL;}
159
160         virtual OCStackResult PutMQTopicRepresentation(const OCDevAddr& /*devAddr*/,
161                                                        const std::string& /*uri*/,
162                                                        const OCRepresentation& /*rep*/,
163                                                        const QueryParamsMap& /*queryParams*/,
164                                                        const HeaderOptions& /*headerOptions*/,
165                                                        MQCreateTopicCallback& /*callback*/,
166                                                        QualityOfService /*QoS*/)
167             {return OC_STACK_NOTIMPL;}
168 #endif
169     };
170 }
171
172 #endif