1 //******************************************************************
3 // Copyright 2014 Intel Mobile Communications GmbH All Rights Reserved.
5 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
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
11 // http://www.apache.org/licenses/LICENSE-2.0
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.
19 //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
21 #ifndef OC_OUT_OF_PROC_SERVER_WRAPPER_H_
22 #define OC_OUT_OF_PROC_SERVER_WRAPPER_H_
28 class OutOfProcServerWrapper : public IServerWrapper
31 OutOfProcServerWrapper(PlatformConfig /*cfg*/)
34 virtual OCStackResult stop()
36 return OC_STACK_NOTIMPL;
39 virtual OCStackResult start()
41 return OC_STACK_NOTIMPL;
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*/)
53 return OC_STACK_NOTIMPL;
56 virtual OCStackResult registerDeviceInfo(
57 const OCDeviceInfo /*deviceInfo*/)
60 return OC_STACK_NOTIMPL;
63 virtual OCStackResult registerPlatformInfo(
64 const OCPlatformInfo /*deviceInfo*/)
67 return OC_STACK_NOTIMPL;
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*/)
80 return OC_STACK_NOTIMPL;
83 virtual OCStackResult unregisterResource(
84 const OCResourceHandle& /*resourceHandle*/)
87 return OC_STACK_ERROR;
90 virtual OCStackResult bindTypeToResource(
91 const OCResourceHandle& /*resourceHandle*/,
92 const std::string& /*resourceTypeName*/)
95 return OC_STACK_NOTIMPL;
98 virtual OCStackResult bindInterfaceToResource(
99 const OCResourceHandle& /*resourceHandle*/,
100 const std::string& /*resourceInterfaceName*/)
102 //Not implemented yet
103 return OC_STACK_NOTIMPL;
106 virtual OCStackResult startPresence(const unsigned int /*seconds*/)
108 //Not implemented yet
109 return OC_STACK_NOTIMPL;
112 virtual OCStackResult stopPresence()
114 //Not implemented yet
115 return OC_STACK_NOTIMPL;
118 virtual OCStackResult setDefaultDeviceEntityHandler(
119 EntityHandler /*entityHandler*/)
121 //Not implemented yet
122 return OC_STACK_NOTIMPL;
125 virtual OCStackResult sendResponse(
126 const std::shared_ptr<OCResourceResponse> /*pResponse*/)
128 //Not implemented yet
129 return OC_STACK_NOTIMPL;