Fix crash issue when getting the locale was failed
[platform/core/appfw/wgt-backend.git] / src / lib / wgt_archive_info.h
1 // Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
2 // Use of this source code is governed by a apache 2.0 license that can be
3 // found in the LICENSE file.
4
5 #ifndef LIB_WGT_ARCHIVE_INFO_H_
6 #define LIB_WGT_ARCHIVE_INFO_H_
7
8 #include <package-manager-plugin.h>
9
10 #include <manifest_parser/utils/logging.h>
11
12 #include <common/utils/singleton.h>
13
14 class WgtArchiveInfo : public common_installer::Singleton<WgtArchiveInfo> {
15   CRTP_DECLARE_DEFAULT_CONSTRUCTOR_CLASS(WgtArchiveInfo)
16  public:
17   bool GetArchiveInfo(const char* file_path,
18     package_manager_pkg_detail_info_t* info);
19
20   SCOPE_LOG_TAG(WgtArchiveInfo)
21 };
22
23 #endif  // LIB_WGT_ARCHIVE_INFO_H_