Merge branch 'master' into easysetup
[platform/upstream/iotivity.git] / resource / include / OutOfProcServerWrapper.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_SERVER_WRAPPER_H_
22 #define OC_OUT_OF_PROC_SERVER_WRAPPER_H_
23
24 #include <OCApi.h>
25
26 namespace OC
27 {
28     class OutOfProcServerWrapper : public IServerWrapper
29     {
30     public:
31         OutOfProcServerWrapper(PlatformConfig /*cfg*/)
32         {}
33
34         virtual OCStackResult registerResource(
35             OCResourceHandle& /*resourceHandle*/,
36             std::string& /*resourceURI*/,
37             const std::string& /*resourceTypeName*/,
38             const std::string& /*resourceInterface*/,
39             EntityHandler& /*entityHandler*/,
40             uint8_t /*resourceProperty*/)
41         {
42             // Not implemented
43             return OC_STACK_NOTIMPL;
44         }
45
46         virtual OCStackResult registerDeviceInfo(
47             const OCDeviceInfo /*deviceInfo*/)
48         {
49             // Not implemented
50             return OC_STACK_NOTIMPL;
51         }
52
53         virtual OCStackResult registerPlatformInfo(
54             const OCPlatformInfo /*deviceInfo*/)
55         {
56             // Not implemented
57             return OC_STACK_NOTIMPL;
58         }
59
60         virtual OCStackResult registerResourceWithHost(
61             OCResourceHandle& /*resourceHandle*/,
62             std::string& /*resourceHOST*/,
63             std::string& /*resourceURI*/,
64             const std::string& /*resourceTypeName*/,
65             const std::string& /*resourceInterface*/,
66             EntityHandler& /*entityHandler*/,
67             uint8_t /*resourceProperty*/)
68         {
69             // Not implemented
70             return OC_STACK_NOTIMPL;
71         }
72
73         virtual OCStackResult unregisterResource(
74             const OCResourceHandle& /*resourceHandle*/)
75         {
76             //Not implemented yet
77             return OC_STACK_ERROR;
78         }
79
80        virtual OCStackResult bindTypeToResource(
81            const OCResourceHandle& /*resourceHandle*/,
82            const std::string& /*resourceTypeName*/)
83         {
84             //Not implemented yet
85             return OC_STACK_NOTIMPL;
86         }
87
88         virtual OCStackResult bindInterfaceToResource(
89             const OCResourceHandle& /*resourceHandle*/,
90             const std::string& /*resourceInterfaceName*/)
91         {
92             //Not implemented yet
93             return OC_STACK_NOTIMPL;
94         }
95
96         virtual OCStackResult startPresence(const unsigned int /*seconds*/)
97         {
98             //Not implemented yet
99             return OC_STACK_NOTIMPL;
100         }
101
102         virtual OCStackResult stopPresence()
103         {
104             //Not implemented yet
105             return OC_STACK_NOTIMPL;
106         }
107
108         virtual OCStackResult setDefaultDeviceEntityHandler(
109             EntityHandler /*entityHandler*/)
110         {
111             //Not implemented yet
112             return OC_STACK_NOTIMPL;
113         }
114
115         virtual OCStackResult sendResponse(
116             const std::shared_ptr<OCResourceResponse> /*pResponse*/)
117         {
118            //Not implemented yet
119            return OC_STACK_NOTIMPL;
120         }
121     };
122 }
123
124 #endif