2 // Open Service Platform
3 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
5 // Licensed under the Apache License, Version 2.0 (the License);
6 // you may not use this file except in compliance with the License.
7 // You may obtain a copy of the License at
9 // http://www.apache.org/licenses/LICENSE-2.0
11 // Unless required by applicable law or agreed to in writing, software
12 // distributed under the License is distributed on an "AS IS" BASIS,
13 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 // See the License for the specific language governing permissions and
15 // limitations under the License.
19 * @file FAppPkgPackageAppInfo.h
20 * @brief This is the header file for the %PackageAppInfo class.
22 * This header file contains the declarations of the %PackageAppInfo class.
25 #ifndef _FAPP_PKG_PACKAGE_APP_INFO_H_
26 #define _FAPP_PKG_PACKAGE_APP_INFO_H_
29 #include <FAppTypes.h>
30 #include <FAppPkgPackageManager.h>
32 namespace Tizen { namespace App { namespace Package
36 * @class PackageAppInfo
37 * @brief This class represents the information of the application in package.
41 * @final This class is not intended for extension.
43 * The %PackageAppInfo class provides the information of the application in package.
46 class _OSP_EXPORT_ PackageAppInfo
47 : public Tizen::Base::Object
51 * This destructor overrides Tizen::Base::Object::~Object().
55 virtual ~PackageAppInfo(void);
58 * Gets an application ID.
62 * @return An application ID
64 AppId GetAppId(void) const;
67 * Gets the name of an application.
71 * @return The name of an application
73 Tizen::Base::String GetAppName(void) const;
76 * Gets the display name of an application.
80 * @return The display name of an application
82 Tizen::Base::String GetAppDisplayName(void) const;
85 * @if VISPARTNER-MANUFACTURER
86 * Gets the menu icon path of an application.
89 * @visibility partner-manufacturer
90 * @privilege %http://tizen.org/privilege/packagesetting
92 * @return The menu icon path of an application, @n
93 * else an empty string is returned if there is no value
96 Tizen::Base::String GetAppMenuIconPath(void) const;
99 * @if VISPARTNER-MANUFACTURER
100 * Gets the setting icon path of an application.
103 * @visibility partner-manufacturer
104 * @privilege %http://tizen.org/privilege/packagesetting
106 * @return The setting icon path of an application, @n
107 * else an empty string is returned if there is no value
110 Tizen::Base::String GetAppSettingIconPath(void) const;
113 * @if VISPARTNER-MANUFACTURER
114 * Gets the notification icon path of an application.
117 * @visibility partner-manufacturer
118 * @privilege %http://tizen.org/privilege/packagesetting
120 * @return The notification icon path of an application, @n
121 * else an empty string is returned if there is no value
124 Tizen::Base::String GetAppNotificationIconPath(void) const;
127 * Gets the category list of an application.
131 * @return A pointer to the list of the Tizen::Base::String instances, @n
132 * else @c null if it fails
133 * @exception E_SUCCESS The method is successful.
134 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
135 * @remarks The specific error code can be accessed using the GetLastResult() method.
137 Tizen::Base::Collection::IList* GetAppCategoryListN(void) const;
140 * Checks whether an application is visible on the menu.
144 * @return @c true if an application is visible on the menu, @n
146 * @remarks If the return value is @c false, it is recommended not to display the application on the menu.
148 bool IsMenuIconVisible(void) const;
151 * Checks whether an application is the main application of the package.
155 * @return @c true if an application is the main application of the package, @n
158 bool IsMainApp(void) const;
162 * This is the default constructor for this class. This default constructor is intentionally
163 declared as private so that only the platform can create an instance.
165 PackageAppInfo(void);
168 * The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
170 PackageAppInfo(const PackageAppInfo& rhs);
173 * The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
175 PackageAppInfo& operator =(const PackageAppInfo& rhs);
178 class _PackageAppInfoImpl* __pPackageAppInfoImpl;
180 friend class _PackageAppInfoImpl;
181 friend class _PackageInfoImpl;
182 friend class _PackageManagerImpl;
186 } } } // Tizen::App::Package
188 #endif // _FAPP_PKG_PACKAGE_APP_INFO_H_