1 //******************************************************************
3 // Copyright 2015 Samsung Electronics 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 RESOURCECONTAINERIMPL_H_
22 #define RESOURCECONTAINERIMPL_H_
24 #include "ResourceContainer.h"
25 #include "ResourceContainerBundleAPI.h"
26 #include "BundleInfoInternal.h"
33 class ResourceContainerImpl: public ResourceContainer, public ResourceContainerBundleAPI
36 ResourceContainerImpl();
37 virtual ~ResourceContainerImpl();
39 // methods from ResourceContainer
41 void init(string configFile);
42 void activateBundle(int id);
43 void deactivateBundle(int id);
44 void activateBundleByName(string name);
45 void deactivateBundleByName(string id);
46 void activateBundle(BundleInfo* bundleInfo);
47 void deactivateBundle(BundleInfo* bundleInfo);
48 vector< Resource* > listBundleResources(string id);
50 // methods from ResourceContainerBundleAPI
51 void registerBundle(BundleInfo* bundleinfo);
52 void unregisterBundle(BundleInfo* bundleinfo);
53 void unregisterBundle(int id);
54 void registerResource(Resource* resource);
55 void unregisterResource(Resource* resource);
57 static ResourceContainerImpl* getImplInstance();
60 vector<BundleInfoInternal* > m_bundles;
62 Configuration m_config;