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_METADATA_PLUGIN_H_
6 #define COMMON_PLUGINS_METADATA_PLUGIN_H_
12 #include "common/plugins/plugin.h"
14 namespace common_installer {
16 class MetadataPlugin : public Plugin {
18 static const char kType[];
20 static std::unique_ptr<MetadataPlugin> Create(const PluginInfo& plugin_info);
21 bool Run(xmlDocPtr doc_ptr, manifest_x* manifest,
22 ActionType action_type) override;
25 bool AddPluginInfo(manifest_x* manifest, const char* appid);
26 std::string GetFunctionName(ActionType action) const;
30 std::vector<std::string> appid_list_;
31 SCOPE_LOG_TAG(MetadataPlugin)
34 } // namespace common_installer
36 #endif // COMMON_PLUGINS_METADATA_PLUGIN_H_