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 method for checking if package is installed based
27 * \return true if package is installed
29 bool IsPkgInstalled(const std::string& arg, uid_t uid) override;
32 * \brief This method is workaround for detecting installation of hybrid
35 * \return true if package is hybrid
37 bool IsHybridApplication(const std::string& arg, uid_t uid);
40 * \brief method for getting package id from package file
44 std::string GetPkgId(const std::string& arg) override;
49 #endif // WGT_WGT_APP_QUERY_INTERFACE_H_