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 FAppPkgIPackageUninstallationResponseListener.h
20 * @brief This is the header file for the %IPackageUninstallationResponseListener interface.
22 * This header file contains the declarations of the %IPackageUninstallationResponseListener interface.
25 #ifndef _FAPP_PKG_IPACKAGE_UNINSTALLATION_RESPONSE_LISTENER_H_
26 #define _FAPP_PKG_IPACKAGE_UNINSTALLATION_RESPONSE_LISTENER_H_
28 #include <FAppPkgPackageManager.h>
29 #include <FAppPkgIPackageInstallationEventListener.h>
30 #include <FBaseRtIEventListener.h>
32 namespace Tizen { namespace App { namespace Package
36 * @interface IPackageUninstallationResponseListener
37 * @brief This interface defines a listener for the asynchronous package uninstallation operation.
41 * The %IPackageUninstallationResponseListener interface defines a listener for the asynchronous package uninstallation operation.
44 class _OSP_EXPORT_ IPackageUninstallationResponseListener
45 : virtual public Tizen::Base::Runtime::IEventListener
49 * This polymorphic destructor should be overridden if required.
50 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
55 virtual ~IPackageUninstallationResponseListener(void) {}
58 * Called when a package uninstallation is completed. @n
59 * The value of @c uninstallationResult is @c true if the uninstallation is successful, else @c false.
63 * @param[in] packageId The package ID
64 * @param[in] uninstallationResult Set to @c true if the uninstallation is successful, @n
68 virtual void OnPackageUninstallationResponseReceived(const PackageId& packageId, bool uninstallationResult) = 0;
73 // This method is for internal use only.
74 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
76 // The following methods are reserved and the name of the methods can be changed at any time without prior notice.
80 virtual void IPackageUninstallationResponseListener_Reserved1(void) {}
83 // This method is for internal use only.
84 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
86 // The following methods are reserved and the name of the methods can be changed at any time without prior notice.
90 virtual void IPackageUninstallationResponseListener_Reserved2(void) {}
93 // This method is for internal use only.
94 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
96 // The following methods are reserved and the name of the methods can be changed at any time without prior notice.
100 virtual void IPackageUninstallationResponseListener_Reserved3(void) {}
102 }; // IPackageUninstallationResponseListener
104 } } } // Tizen::App::Package
106 #endif // _FAPP_PKG_IPACKAGE_UNINSTALLATION_RESPONSE_LISTENER_H_