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 for the asynchronous package uninstallation operation.
43 class _OSP_EXPORT_ IPackageUninstallationResponseListener
44 : virtual public Tizen::Base::Runtime::IEventListener
48 * This polymorphic destructor should be overridden if required.
49 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
54 virtual ~IPackageUninstallationResponseListener(void) {}
57 * Called when a package uninstallation is completed. @n
58 * The value of @c uninstallationResult is @c true if the uninstallation is successful, else @c false.
62 * @param[in] packageId The package ID
63 * @param[in] uninstallationResult Set to @c true if the uninstallation is successful, @n
67 virtual void OnPackageUninstallationResponseReceived(const PackageId& packageId, bool uninstallationResult) = 0;
72 // This method is for internal use only.
73 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
75 // This method is reserved and may change its name at any time without prior notice.
79 virtual void IPackageUninstallationResponseListener_Reserved1(void) {}
82 // This method is for internal use only.
83 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
85 // This method is reserved and may change its name at any time without prior notice.
89 virtual void IPackageUninstallationResponseListener_Reserved2(void) {}
92 // This method is for internal use only.
93 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
95 // This method is reserved and may change its name at any time without prior notice.
99 virtual void IPackageUninstallationResponseListener_Reserved3(void) {}
101 }; // IPackageUninstallationResponseListener
103 } } } // Tizen::App::Package
105 #endif // _FAPP_PKG_IPACKAGE_UNINSTALLATION_RESPONSE_LISTENER_H_