Merge "Patch 1 : Adding Arduino WiFi support. This requires updated Arduino WiFi...
[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(PlatformConfig cfg) {};
32
33         virtual OCStackResult registerResource(
34                     OCResourceHandle& resourceHandle,
35                     std::string& resourceURI,
36                     const std::string& resourceTypeName,
37                     const std::string& resourceInterface,
38                     std::function<void(const OCResourceRequest::Ptr, const OCResourceResponse::Ptr)> entityHandler,
39                     uint8_t resourceProperty)
40
41         {
42             // Not implemented
43             return OC_STACK_NOTIMPL;
44         }
45
46         virtual OCStackResult unregisterResource(
47                      const OCResourceHandle& resourceHandle)
48         {   //Not implemented yet
49             return OC_STACK_ERROR;
50         }
51
52        virtual OCStackResult bindTypeToResource(
53                      const OCResourceHandle& resourceHandle,
54                      const std::string& resourceTypeName)
55         {   //Not implemented yet
56             return OC_STACK_NOTIMPL;
57         }
58
59         virtual OCStackResult bindInterfaceToResource(
60                      const OCResourceHandle& resourceHandle,
61                      const std::string& resourceInterfaceName)
62         {   //Not implemented yet
63             return OC_STACK_NOTIMPL;
64         }
65
66         virtual OCStackResult startPresence(const unsigned int seconds)
67         {   //Not implemented yet
68             return OC_STACK_NOTIMPL;
69         }
70
71         virtual OCStackResult stopPresence()
72         {   //Not implemented yet
73             return OC_STACK_NOTIMPL;
74         }
75     };
76 }
77
78 #endif