IoTivity C++ SDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
BundleActivator.h
Go to the documentation of this file.
1 //******************************************************************
2 //
3 // Copyright 2015 Samsung Electronics 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 BUNDLEACTIVATOR_H_
22 #define BUNDLEACTIVATOR_H_
23 
25 
26 using namespace OIC::Service;
27 
28 namespace OIC
29 {
30  namespace Service
31  {
32 
39  {
40 
41  public:
42 
47  {
48 
49  };
50 
54  virtual ~BundleActivator()
55  {
56 
57  };
58 
68  virtual void activateBundle(ResourceContainerBundleAPI *resourceContainer,
69  std::string bundleId) = 0;
70 
76  virtual void deactivateBundle() = 0;
77 
85  virtual void createResource(resourceInfo resourceInfo) = 0;
86 
94  virtual void destroyResource(BundleResource::Ptr pBundleResource) = 0;
95  };
96  }
97 }
98 
99 #endif /* RESOURCEBUNDLE_H_ */
std::shared_ptr< BundleResource > Ptr
Definition: BundleResource.h:50
This class provides APIs for retrieving bundle and resource configuration and registering/unregisteri...
Definition: ResourceContainerBundleAPI.h:48
This class represents Bundle to be activated by container.
Definition: BundleActivator.h:38
This file contains the resource container Bundle APIs provided to the resource bundle developers...
BundleActivator()
Constructor for BundleActivator.
Definition: BundleActivator.h:46
virtual ~BundleActivator()
Virtual destructor for BundleActivator.
Definition: BundleActivator.h:54