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 FAppPkgIPackageUninstallationResponseListener.h
19 * @brief This is the header file for the %IPackageUninstallationResponseListener interface.
21 * This header file contains the declarations of the %IPackageUninstallationResponseListener interface.
24 #ifndef _FAPP_PKG_IPACKAGE_UNINSTALLATION_RESPONSE_LISTENER_H_
25 #define _FAPP_PKG_IPACKAGE_UNINSTALLATION_RESPONSE_LISTENER_H_
27 #include <FAppPkgPackageManager.h>
28 #include <FAppPkgIPackageInstallationEventListener.h>
29 #include <FBaseRtIEventListener.h>
31 namespace Tizen { namespace App { namespace Package
35 * @interface IPackageUninstallationResponseListener
36 * @brief This interface defines a listener for the asynchronous package uninstallation operation.
40 * The %IPackageUninstallationResponseListener interface defines a listener that is notified about events related to the uninstallation of a target package.
41 * The events include the uninstallation result.
42 * Generally, applications such as the %Tizen Store use this listener in a package uninstallation step.
43 * @see PackageManager::UninstallPackage()
46 class _OSP_EXPORT_ IPackageUninstallationResponseListener
47 : virtual public Tizen::Base::Runtime::IEventListener
51 * This polymorphic destructor should be overridden if required. @n
52 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
57 virtual ~IPackageUninstallationResponseListener(void) {}
60 * Called when a package uninstallation is completed. @n
61 * The value of @c uninstallationResult is @c true if the uninstallation is successful, otherwise it is @c false.
65 * @param[in] packageId The package ID
66 * @param[in] uninstallationResult Set to @c true if the uninstallation is successful, @n
70 virtual void OnPackageUninstallationResponseReceived(const PackageId& packageId, bool uninstallationResult) = 0;
75 // This method is for internal use only.
76 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
78 // This method is reserved and may change its name at any time without prior notice.
82 virtual void IPackageUninstallationResponseListener_Reserved1(void) {}
85 // This method is for internal use only.
86 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
88 // This method is reserved and may change its name at any time without prior notice.
92 virtual void IPackageUninstallationResponseListener_Reserved2(void) {}
95 // This method is for internal use only.
96 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
98 // This method is reserved and may change its name at any time without prior notice.
102 virtual void IPackageUninstallationResponseListener_Reserved3(void) {}
104 }; // IPackageUninstallationResponseListener
106 } } } // Tizen::App::Package
108 #endif // _FAPP_PKG_IPACKAGE_UNINSTALLATION_RESPONSE_LISTENER_H_