replace : iotivity -> iotivity-sec
[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 stop()
35         {
36             return OC_STACK_NOTIMPL;
37         }
38
39         virtual OCStackResult start()
40         {
41             return OC_STACK_NOTIMPL;
42         }
43
44         virtual OCStackResult registerResource(
45             OCResourceHandle& /*resourceHandle*/,
46             std::string& /*resourceURI*/,
47             const std::string& /*resourceTypeName*/,
48             const std::string& /*resourceInterface*/,
49             EntityHandler& /*entityHandler*/,
50             uint8_t /*resourceProperty*/)
51         {
52             // Not implemented
53             return OC_STACK_NOTIMPL;
54         }
55
56         virtual OCStackResult registerDeviceInfo(
57             const OCDeviceInfo /*deviceInfo*/)
58         {
59             // Not implemented
60             return OC_STACK_NOTIMPL;
61         }
62
63         virtual OCStackResult registerPlatformInfo(
64             const OCPlatformInfo /*deviceInfo*/)
65         {
66             // Not implemented
67             return OC_STACK_NOTIMPL;
68         }
69
70         virtual OCStackResult registerResourceWithHost(
71             OCResourceHandle& /*resourceHandle*/,
72             std::string& /*resourceHOST*/,
73             std::string& /*resourceURI*/,
74             const std::string& /*resourceTypeName*/,
75             const std::string& /*resourceInterface*/,
76             EntityHandler& /*entityHandler*/,
77             uint8_t /*resourceProperty*/)
78         {
79             // Not implemented
80             return OC_STACK_NOTIMPL;
81         }
82
83         virtual OCStackResult unregisterResource(
84             const OCResourceHandle& /*resourceHandle*/)
85         {
86             //Not implemented yet
87             return OC_STACK_ERROR;
88         }
89
90        virtual OCStackResult bindTypeToResource(
91            const OCResourceHandle& /*resourceHandle*/,
92            const std::string& /*resourceTypeName*/)
93         {
94             //Not implemented yet
95             return OC_STACK_NOTIMPL;
96         }
97
98         virtual OCStackResult bindInterfaceToResource(
99             const OCResourceHandle& /*resourceHandle*/,
100             const std::string& /*resourceInterfaceName*/)
101         {
102             //Not implemented yet
103             return OC_STACK_NOTIMPL;
104         }
105
106         virtual OCStackResult startPresence(const unsigned int /*seconds*/)
107         {
108             //Not implemented yet
109             return OC_STACK_NOTIMPL;
110         }
111
112         virtual OCStackResult stopPresence()
113         {
114             //Not implemented yet
115             return OC_STACK_NOTIMPL;
116         }
117
118         virtual OCStackResult setDefaultDeviceEntityHandler(
119             EntityHandler /*entityHandler*/)
120         {
121             //Not implemented yet
122             return OC_STACK_NOTIMPL;
123         }
124
125         virtual OCStackResult sendResponse(
126             const std::shared_ptr<OCResourceResponse> /*pResponse*/)
127         {
128            //Not implemented yet
129            return OC_STACK_NOTIMPL;
130         }
131     };
132 }
133
134 #endif