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 #include "TestBundleActivator.h"
23 TestBundleActivator *bundle;
25 TestBundleActivator::TestBundleActivator()
29 TestBundleActivator::~TestBundleActivator()
33 void TestBundleActivator::activateBundle(ResourceContainerBundleAPI *resourceContainer,
36 std::cout << "TestBundleActivator::activateBundle .. " << std::endl;
39 void TestBundleActivator::deactivateBundle()
41 std::cout << "TestBundleActivator::deactivateBundle .. " << std::endl;
44 void TestBundleActivator::createResource(resourceInfo resourceInfo)
46 std::cout << "TestBundleActivator::createResource .. " << std::endl;
49 void TestBundleActivator::destroyResource(BundleResource *pBundleResource)
51 std::cout << "TestBundleActivator::destroyResource .. " << std::endl;
54 extern "C" void externalActivateBundle(ResourceContainerBundleAPI *resourceContainer,
57 bundle = new TestBundleActivator();
58 bundle->activateBundle(resourceContainer, bundleId);
61 extern "C" void externalDeactivateBundle()
65 bundle->deactivateBundle();
69 extern "C" void externalCreateResource(resourceInfo resourceInfo)
71 bundle->createResource(resourceInfo);
74 extern "C" void externalDestroyResource(BundleResource *pBundleResource)
76 bundle->destroyResource(pBundleResource);