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 _OUT_OF_PROC_SERVER_WRAPPER_H_
22 #define _OUT_OF_PROC_SERVER_WRAPPER_H_
28 class OutOfProcServerWrapper : public IServerWrapper
31 OutOfProcServerWrapper(PlatformConfig cfg)
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)
44 return OC_STACK_NOTIMPL;
46 virtual OCStackResult registerResourceWithHost(
47 OCResourceHandle& resourceHandle,
48 std::string& resourceHOST,
49 std::string& resourceURI,
50 const std::string& resourceTypeName,
51 const std::string& resourceInterface,
52 EntityHandler& entityHandler,
53 uint8_t resourceProperty)
56 return OC_STACK_NOTIMPL;
59 virtual OCStackResult unregisterResource(
60 const OCResourceHandle& resourceHandle)
63 return OC_STACK_ERROR;
66 virtual OCStackResult bindTypeToResource(
67 const OCResourceHandle& resourceHandle,
68 const std::string& resourceTypeName)
71 return OC_STACK_NOTIMPL;
74 virtual OCStackResult bindInterfaceToResource(
75 const OCResourceHandle& resourceHandle,
76 const std::string& resourceInterfaceName)
79 return OC_STACK_NOTIMPL;
82 virtual OCStackResult startPresence(const unsigned int seconds)
85 return OC_STACK_NOTIMPL;
88 virtual OCStackResult stopPresence()
91 return OC_STACK_NOTIMPL;
94 virtual OCStackResult setDefaultDeviceEntityHandler(EntityHandler entityHandler)
97 return OC_STACK_NOTIMPL;
100 virtual OCStackResult sendResponse(const std::shared_ptr<OCResourceResponse> pResponse)
102 //Not implemented yet
103 return OC_STACK_NOTIMPL;