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
36 #include "PluginManagerImpl.h"
43 * @brief After installing a plug-in in a directory, each plug-ins can be managed by this class.
58 * Start plugins by key-value pair.
60 * @param key-value pair string to be started.
61 * @return int, 1 is success, 0 is fail.
63 int startPlugins(const std::string key, const std::string value);
66 * Stop plugins by key-value pair.
68 * @param key-value pair string to be stopped.
69 * @return int, 1 is success, 0 is fail.
71 int stopPlugins(const std::string key, const std::string value);
75 * This function will call rescan function of plugins in the configuration folder
78 * @return int, 1 is success, 0 is fail.
80 int rescanPlugin(void);
86 * @return Plugin vector
88 std::vector<Plugin> getPlugins(void);
93 * @param Plugin ID string.
94 * @return Plugin state string.
96 std::string getState(const std::string plugID);
99 PluginManagerImpl *pluginManagerImpl;
100 void (*destroy)(PluginManagerImpl *);
104 #endif //__PLUGINMANAGER_H