2 * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
18 * @author Pawel Sikorski (p.sikorski@samgsung.com)
19 * @author Grzegorz Krawczyk (g.krawczyk@samgsung.com)
29 #include "plugin_installer_context.h"
30 #include "plugin_objects.h"
34 namespace PluginInstall {
35 class PluginInstallTask :
36 public DPL::TaskDecl<PluginInstallTask>
39 PluginInstallTask(PluginInstallerContext *inCont);
40 virtual ~PluginInstallTask();
44 PluginInstallerContext *m_context;
47 WrtDB::PluginMetafileData m_pluginInfo;
49 //Plugin LibraryObjects
50 PluginObjectsPtr m_libraryObjects;
52 WrtDB::DbPluginHandle m_pluginHandle;
54 bool m_dataFromConfigXML;
57 void stepCheckPluginPath();
58 void stepFindPluginLibrary();
59 void stepParseConfigFile();
60 void stepCheckIfAlreadyInstalled();
61 void stepLoadPluginLibrary();
62 void stepRegisterPlugin();
63 void stepRegisterFeatures();
64 void stepRegisterPluginObjects();
65 void stepResolvePluginDependencies();
67 void registerObjects(const WrtPluginsApi::IObjectsListPtr& objects);
70 } //namespace PluginInstall
72 #endif /* INSTALL_H_ */