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 FAppIAppControlListener.h
19 * @brief This is the header file for the %IAppControlListener interface.
21 * This header file contains the declarations of the %IAppControlListener interface.
24 #ifndef _FAPP_IAPP_CONTROL_LISTENER_H_
25 #define _FAPP_IAPP_CONTROL_LISTENER_H_
27 #include <FAppIAppControlEventListener.h>
29 namespace Tizen { namespace App { class AppControl; } }
30 namespace Tizen { namespace Base { class String; } }
31 namespace Tizen { namespace Base { namespace Collection { class IList; } } }
33 namespace Tizen { namespace App
38 * @interface IAppControlListener
39 * @brief <i>[Deprecated]</i> This interface defines a listener for the AppControl start and result events.
41 * @deprecated This interface is deprecated. Instead of using this interface, use the IAppControlResponseListener interface.
44 * The %IAppControlListener interface defines a listener for the AppControl start and result events.
47 class _OSP_EXPORT_ IAppControlListener
48 : public IAppControlEventListener
49 , virtual public Tizen::Base::Runtime::IEventListener
54 * This polymorphic destructor should be overridden if required.
55 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
57 * @brief <i>[Deprecated]</i>
59 * @deprecated This interface is deprecated. Instead of using this interface, use the IAppControlResponseListener interface.
63 virtual ~IAppControlListener(void) {}
67 * Called when the application control is about to start. @n
68 * The client can get the callback result for some application controls by implementing this listener.
70 * @brief <i>[Deprecated]</i>
72 * @deprecated This interface is deprecated. Instead of using this interface, use the IAppControlResponseListener interface.
75 * @param[in] pAppControl A pointer to the AppControl instance that is started
76 * @param[in] r The error code
77 * @exception E_SUCCESS The method is successful.
78 * @exception E_SYSTEM A system error has occurred.
79 * @exception E_OUT_OF_MEMORY The memory is insufficient.
80 * @exception E_IN_PROGRESS The target AppControl is in progress.
81 * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
82 * @see AppControl::Start()
83 * @see AppManager::StartAppControl()
86 virtual void OnAppControlStarted(const AppControl* pAppControl, result r) = 0;
90 // This method is for internal use only.
91 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
95 virtual void IAppControlListener_Reserved1() {}
98 // This method is for internal use only.
99 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
103 virtual void IAppControlListener_Reserved2() {}
104 }; // IAppControlListener
108 #endif // _FAPP_IAPP_CONTROL_LISTENER_H_