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 WGT_WGT_APP_QUERY_INTERFACE_H_
6 #define WGT_WGT_APP_QUERY_INTERFACE_H_
8 #include <common/app_query_interface.h>
10 #include <sys/types.h>
17 * \brief Helper functionalities used before
18 * configuring app-installer steps.
19 * Eg. it is used to check, if package is to be installed or updated
21 class WgtAppQueryInterface : public common_installer::AppQueryInterface {
24 * \brief This method is workaround for detecting installation of hybrid
27 * \return true if package is hybrid
29 bool IsHybridApplication(const std::string& arg, uid_t uid) const;
32 std::string GetPkgIdFromPath(const std::string& path) const override;
33 std::string GetManifestFileName() const override;
38 #endif // WGT_WGT_APP_QUERY_INTERFACE_H_