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 call rescan function of plugins in the configuration folder
75 * @return int, 1 is success, 0 is fail.
86 std::vector<Plugin> getPlugins(void);
92 * @return Plugin state.
94 std::string getState(const std::string plugID);
97 PluginManagerImpl *pluginManagerImpl;
98 void (*destroy)(PluginManagerImpl *);
102 #endif //__PLUGINMANAGER_H