Spec compliance change to move oc/core/d to oic/p.
[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 _OUT_OF_PROC_SERVER_WRAPPER_H_
22 #define _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         {
43             // Not implemented
44             return OC_STACK_NOTIMPL;
45         }
46
47         virtual OCStackResult registerDeviceInfo(
48                     const OCDeviceInfo deviceInfo)
49         {
50             // Not implemented
51             return OC_STACK_NOTIMPL;
52         }
53
54         virtual OCStackResult registerPlatformInfo(
55                     const OCPlatformInfo deviceInfo)
56         {
57             // Not implemented
58             return OC_STACK_NOTIMPL;
59         }
60
61         virtual OCStackResult registerResourceWithHost(
62                     OCResourceHandle& resourceHandle,
63                     std::string& resourceHOST,
64                     std::string& resourceURI,
65                     const std::string& resourceTypeName,
66                     const std::string& resourceInterface,
67                     EntityHandler& entityHandler,
68                     uint8_t resourceProperty)
69         {
70             // Not implemented
71             return OC_STACK_NOTIMPL;
72         }
73
74         virtual OCStackResult unregisterResource(
75                      const OCResourceHandle& resourceHandle)
76         {
77             //Not implemented yet
78             return OC_STACK_ERROR;
79         }
80
81        virtual OCStackResult bindTypeToResource(
82                      const OCResourceHandle& resourceHandle,
83                      const std::string& resourceTypeName)
84         {
85             //Not implemented yet
86             return OC_STACK_NOTIMPL;
87         }
88
89         virtual OCStackResult bindInterfaceToResource(
90                      const OCResourceHandle& resourceHandle,
91                      const std::string& resourceInterfaceName)
92         {
93             //Not implemented yet
94             return OC_STACK_NOTIMPL;
95         }
96
97         virtual OCStackResult startPresence(const unsigned int seconds)
98         {
99             //Not implemented yet
100             return OC_STACK_NOTIMPL;
101         }
102
103         virtual OCStackResult stopPresence()
104         {
105             //Not implemented yet
106             return OC_STACK_NOTIMPL;
107         }
108
109         virtual OCStackResult setDefaultDeviceEntityHandler(EntityHandler entityHandler)
110         {
111             //Not implemented yet
112             return OC_STACK_NOTIMPL;
113         }
114
115         virtual OCStackResult sendResponse(const std::shared_ptr<OCResourceResponse> pResponse)
116         {
117            //Not implemented yet
118            return OC_STACK_NOTIMPL;
119         }
120     };
121 }
122
123 #endif