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 FAppIAppControlListener.h
20 * @brief This is the header file for the %IAppControlListener interface.
22 * This header file contains the declarations of the %IAppControlListener interface.
25 #ifndef _FAPP_IAPP_CONTROL_LISTENER_H_
26 #define _FAPP_IAPP_CONTROL_LISTENER_H_
28 #include <FAppIAppControlEventListener.h>
30 namespace Tizen { namespace App { class AppControl; } }
31 namespace Tizen { namespace Base { class String; } }
32 namespace Tizen { namespace Base { namespace Collection { class IList; } } }
34 namespace Tizen { namespace App
39 * @interface IAppControlListener
40 * @brief <i>[Deprecated]</i> This interface defines a listener for the AppControl start and result events.
42 * @deprecated This interface is deprecated. Instead of using this interface, use the IAppControlResponseListener interface.
45 * The %IAppControlListener interface defines a listener for the AppControl start and result events.
48 class _OSP_EXPORT_ IAppControlListener
49 : public IAppControlEventListener
50 , virtual public Tizen::Base::Runtime::IEventListener
55 * This polymorphic destructor should be overridden if required.
56 * This way, the destructors of the derived classes are called when the destructor of this interface is called.
58 * @brief <i>[Deprecated]</i>
60 * @deprecated This interface is deprecated. Instead of using this interface, use the IAppControlResponseListener interface.
64 virtual ~IAppControlListener(void) {}
68 * Called when the application control is about to start. @n
69 * The client can get the callback result for some application controls by implementing this listener.
71 * @brief <i>[Deprecated]</i>
73 * @deprecated This interface is deprecated. Instead of using this interface, use the IAppControlResponseListener interface.
76 * @param[in] pAppControl A pointer to the AppControl instance that is started
77 * @param[in] r The error code
78 * @exception E_SUCCESS The method is successful.
79 * @exception E_SYSTEM A system error has occurred.
80 * @exception E_OUT_OF_MEMORY The memory is insufficient.
81 * @exception E_IN_PROGRESS The target AppControl is in progress.
82 * @exception E_PRIVILEGE_DENIED The application does not have the privilege to call this method.
83 * @see AppControl::Start()
84 * @see AppManager::StartAppControl()
87 virtual void OnAppControlStarted(const AppControl* pAppControl, result r) = 0;
91 // This method is for internal use only.
92 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
96 virtual void IAppControlListener_Reserved1() {}
99 // This method is for internal use only.
100 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
104 virtual void IAppControlListener_Reserved2() {}
105 }; // IAppControlListener
109 #endif // _FAPP_IAPP_CONTROL_LISTENER_H_