2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FAppPkgPackageAppInfo.h
19 * @brief This is the header file for the %PackageAppInfo class.
21 * This header file contains the declarations of the %PackageAppInfo class.
24 #ifndef _FAPP_PKG_PACKAGE_APP_INFO_H_
25 #define _FAPP_PKG_PACKAGE_APP_INFO_H_
28 #include <FAppTypes.h>
29 #include <FAppPkgPackageManager.h>
31 namespace Tizen { namespace Graphics
36 namespace Tizen { namespace App { namespace Package
40 * @class PackageAppInfo
41 * @brief This class represents the information of the application in package.
45 * @final This class is not intended for extension.
47 * The %PackageAppInfo class provides the information of the application in package.
50 class _OSP_EXPORT_ PackageAppInfo
51 : public Tizen::Base::Object
55 * This destructor overrides Tizen::Base::Object::~Object().
59 virtual ~PackageAppInfo(void);
62 * Gets an application ID.
66 * @return An application ID
68 AppId GetAppId(void) const;
71 * Gets the name of an application.
75 * @return The name of an application
77 Tizen::Base::String GetAppName(void) const;
80 * Gets the display name of an application.
84 * @return The display name of an application
86 Tizen::Base::String GetAppDisplayName(void) const;
89 * Gets the menu icon path of an application.
93 * @return The menu icon path of an application, @n
94 * else an empty string is returned if there is no value
96 Tizen::Base::String GetAppMenuIconPath(void) const;
99 * Gets the setting icon path of an application.
103 * @return The setting icon path of an application, @n
104 * else an empty string is returned if there is no value
106 Tizen::Base::String GetAppSettingIconPath(void) const;
109 * Gets the notification icon path of an application.
113 * @return The notification icon path of an application, @n
114 * else an empty string is returned if there is no value
116 Tizen::Base::String GetAppNotificationIconPath(void) const;
119 * Gets the menu icon of an application.
123 * @return A pointer to the menu icon of an application, @n
124 * else @c null if it fails
125 * @exception E_SUCCESS The method is successful.
126 * @exception E_FILE_NOT_FOUND The menu icon does not exist.
127 * @exception E_UNSUPPORTED_FORMAT The image file format is not supported.
128 * @remarks The specific error code can be accessed using the GetLastResult() method.
130 Tizen::Graphics::Bitmap* GetAppMenuIconN(void) const;
133 * Gets the metadata list of an application.
137 * @return A pointer to a map of key(Tizen::Base::String) and value(Tizen::Base::String) pairs of the metadata, @n
138 * else @c null if it fails
139 * @exception E_SUCCESS The method is successful.
140 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
142 * - The specific error code can be accessed using the GetLastResult() method.
143 * - Application can use the metadata to set app-wide information.
145 Tizen::Base::Collection::IMap* GetAppMetadataListN(void) const;
148 * Gets the category list of an application.
152 * @return A pointer to the list of the Tizen::Base::String instances, @n
153 * else @c null if it fails
154 * @exception E_SUCCESS The method is successful.
155 * @exception E_SYSTEM The method cannot proceed due to a severe system error.
156 * @remarks The specific error code can be accessed using the GetLastResult() method.
158 Tizen::Base::Collection::IList* GetAppCategoryListN(void) const;
161 * Checks whether an application is visible on the menu.
165 * @return @c true if an application is visible on the menu, @n
167 * @remarks If the return value is @c false, it is recommended not to display the application on the menu.
169 bool IsMenuIconVisible(void) const;
172 * Checks whether an application is the main application of the package.
176 * @return @c true if an application is the main application of the package, @n
179 bool IsMainApp(void) const;
183 * This is the default constructor for this class. This default constructor is intentionally
184 declared as private so that only the platform can create an instance.
186 PackageAppInfo(void);
189 * The implementation of this copy constructor is intentionally blank and declared as private to prohibit copying of objects.
191 PackageAppInfo(const PackageAppInfo& rhs);
194 * The implementation of this copy assignment operator is intentionally blank and declared as private to prohibit copying of objects.
196 PackageAppInfo& operator =(const PackageAppInfo& rhs);
199 class _PackageAppInfoImpl* __pPackageAppInfoImpl;
201 friend class _PackageAppInfoImpl;
202 friend class _PackageInfoImpl;
203 friend class _PackageManagerImpl;
204 friend class _PackageParser;
205 friend class _PackageManagerServer;
209 } } } // Tizen::App::Package
211 #endif // _FAPP_PKG_PACKAGE_APP_INFO_H_