1 // Copyright (c) 2015 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by an apache-2.0 license that can be
3 // found in the LICENSE file.
5 #ifndef COMMON_PLUGINS_CATEGORY_PLUGIN_H_
6 #define COMMON_PLUGINS_CATEGORY_PLUGIN_H_
12 #include "common/plugins/plugin.h"
14 namespace common_installer {
16 class CategoryPlugin : public Plugin {
18 static const char kType[];
20 static std::unique_ptr<CategoryPlugin> Create(const PluginInfo& plugin_info);
21 bool Run(xmlDocPtr doc_ptr, manifest_x* manifest,
22 ActionType action_type) override;
25 bool LoadPluginInfo(manifest_x* manifest);
26 bool ExecutePlugin(const std::string& name, const char* pkgid,
27 const char* appid, GList* category_list);
28 bool AddPluginInfo(manifest_x* manifest, const char* appid);
29 std::string GetFunctionName(ActionType action) const;
31 std::set<std::string> appid_set_;
35 SCOPE_LOG_TAG(CategoryPlugin)
38 } // namespace common_installer
40 #endif // COMMON_PLUGINS_CATEGORY_PLUGIN_H_