Add WgtInstallerFactory and HybridInstallerFactory
[platform/core/appfw/wgt-backend.git] / src / hybrid / hybrid_installer_factory.h
1 // Copyright (c) 2020 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.
4
5 #ifndef HYBRID_HYBRID_INSTALLER_FACTORY_H_
6 #define HYBRID_HYBRID_INSTALLER_FACTORY_H_
7
8 #include <common/installer_factory.h>
9 #include <common/pkgmgr_interface.h>
10
11 #include <memory>
12
13 namespace ci = common_installer;
14
15 namespace hybrid {
16
17 class AppInstaller;
18
19 class HybridInstallerFactory : public ci::InstallerFactory {
20  public:
21   std::unique_ptr<ci::AppInstaller> CreateInstaller(
22       ci::PkgMgrPtr pkgmgr, int idx);
23 };
24
25 }  // namespace hybrid
26
27 #endif  // HYBRID_HYBRID_INSTALLER_FACTORY_H_