2 // Open Service Platform
3 // Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
5 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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 FUiITimeChangeEventListener.h
20 * @brief This is the header file for the %ITimeChangeEventListener interface.
22 * This header file contains the declarations of the %ITimeChangeEventListener interface. @n
23 * If a change event is generated, a method of this class is called. @n
24 * So, for tasks related to change events, use the methods of this class.
27 #ifndef _FUI_ITIME_CHANGE_EVENT_LISTENER_H_
28 #define _FUI_ITIME_CHANGE_EVENT_LISTENER_H_
31 #include <FBaseRtIEventListener.h>
32 #include <FBaseObject.h>
34 namespace Tizen { namespace Ui
39 namespace Tizen {namespace Ui
43 * @interface ITimeChangeEventListener
44 * @brief This interface implements the listener for the time change events.
48 * The %ITimeChangeEventListener interface is the listener interface for receiving time change events.
49 * The class that processes a time change event implements this interface, and the instance created with that class is registered
50 * with a UI control, using the control's AddTimeChangeEventListener() method. When the time change event occurs, the
51 * OnTimeChanged() method of that instance is invoked.
53 * For more information on the class features, see <a href="../org.tizen.native.appprogramming/html/guide/ui/implementing_edittime_editdate.htm">EditDate and EditTime</a> and <a href="../org.tizen.native.appprogramming/html/guide/ui/implementing_datepicker.htm">DatePicker, TimePicker, and DateTimePicker</a>.
56 class _OSP_EXPORT_ ITimeChangeEventListener
57 : public Tizen::Base::Runtime::IEventListener
62 * This is the destructor for this class.
66 virtual ~ITimeChangeEventListener(void) {}
69 * Called when there is a change in time. @n
70 * The changed hour and minute values are passed as input parameters.
74 * @param[in] source The source of the event
75 * @param[in] hour The hour
76 * @param[in] minute The minute
78 virtual void OnTimeChanged(const Tizen::Ui::Control& source, int hour, int minute) = 0;
81 * Called when a time change is canceled.
85 * @param[in] source The source of the event
87 virtual void OnTimeChangeCanceled(const Tizen::Ui::Control& source) = 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.
94 // The following method is reserved, and their names can be changed
95 // at any time without prior notice.
99 virtual void ITimeChangeEventListener_Reserved1(void) {}
102 // This method is for internal use only.
103 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
105 // The following method is reserved, and their names can be changed
106 // at any time without prior notice.
110 virtual void ITimeChangeEventListener_Reserved2(void) {}
113 // This method is for internal use only.
114 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
116 // The following method is reserved, and their names can be changed
117 // at any time without prior notice.
121 virtual void ITimeChangeEventListener_Reserved3(void) {}
122 }; // ITimeChangeEventListener
126 #endif // _FUI_ITIME_CHANGE_EVENT_LISTENER_H_