1 //******************************************************************
3 // Copyright 2014 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 /// @file PluginManager.h
25 #ifndef __PLUGINMANAGER_H
26 #define __PLUGINMANAGER_H
34 #include "PluginManagerImpl.h"
41 * @brief After installing a plug-in in a directory, each plug-ins can be managed by this class.
55 * Start plugins by resource type
57 * @param type resouce type string to be started.
60 int startPlugins(const std::string key, const std::string value);
63 * Stop plugins by resource type
65 * @param type resouce type string to be started.
68 int stopPlugins(const std::string key, const std::string value);
72 * This function will load dynamic plugin library on memory and call start function of plugin to be initialized.
75 * @return int, 1 is success, 0 is fail.
77 int startPlugins(Plugin *const plugin);
82 * This function will call stop function of plugin and unload dynamic plugin library from memory.
85 * @return int, 1 is success, 0 is fail.
87 int stopPlugins(Plugin *const plugin);
96 std::vector<Plugin> getPlugins(void);
99 PluginManagerImpl *pluginManagerImpl;
100 void (*destroy)(PluginManagerImpl *);
103 #endif //__PLUGINMANAGER_H