Merge "Broke out build script into variability.. Added support to build either in...
[platform/upstream/iotivity.git] / 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(OC::OCPlatform& owner, PlatformConfig cfg)
32          : IServerWrapper(owner)
33         {};
34
35         virtual OCStackResult registerResource(
36                     OCResourceHandle& resourceHandle,
37                     std::string& resourceURI,
38                     const std::string& resourceTypeName,
39                     const std::string& resourceInterface,
40                     EntityHandler& entityHandler,
41                     uint8_t resourceProperty)
42
43         {
44             // Not implemented
45             return OC_STACK_NOTIMPL;
46         }
47
48         virtual OCStackResult unregisterResource(
49                      const OCResourceHandle& resourceHandle)
50         {
51             //Not implemented yet
52             return OC_STACK_ERROR;
53         }
54
55        virtual OCStackResult bindTypeToResource(
56                      const OCResourceHandle& resourceHandle,
57                      const std::string& resourceTypeName)
58         {
59             //Not implemented yet
60             return OC_STACK_NOTIMPL;
61         }
62
63         virtual OCStackResult bindInterfaceToResource(
64                      const OCResourceHandle& resourceHandle,
65                      const std::string& resourceInterfaceName)
66         {
67             //Not implemented yet
68             return OC_STACK_NOTIMPL;
69         }
70
71         virtual OCStackResult startPresence(const unsigned int seconds)
72         {
73             //Not implemented yet
74             return OC_STACK_NOTIMPL;
75         }
76
77         virtual OCStackResult stopPresence()
78         {
79             //Not implemented yet
80             return OC_STACK_NOTIMPL;
81         }
82
83
84         virtual OCStackResult setDefaultDeviceEntityHandler(EntityHandler entityHandler)
85         {
86             //Not implemented yet
87             return OC_STACK_NOTIMPL;
88         }
89     };
90 }
91
92 #endif