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 FUiIDateChangeEventListener.h
20 * @brief This is the header file for the %IDateChangeEventListener interface.
22 * This header file contains the declarations of the %IDateChangeEventListener interface.
23 * If a change event is generated, a method of this interface is called.
24 * So, for tasks related to the change events, use the methods of this interface.
27 #ifndef _FUI_IDATE_CHANGE_EVENT_LISTENER_H_
28 #define _FUI_IDATE_CHANGE_EVENT_LISTENER_H_
31 #include <FBaseRtIEventListener.h>
32 #include <FBaseObject.h>
34 namespace Tizen { namespace Ui
39 namespace Tizen {namespace Ui
43 * @interface IDateChangeEventListener
44 * @brief This interface implements the listener for Date change events.
48 * The %IDateChangeEventListener interface is the listener interface for receiving date change events.
49 * The class that processes a date change event implements this interface, and the instance created with that class is registered
50 * with a UI control, using the control's AddDateChangeEventListener() method. When the date change event occurs, the
51 * OnDateChanged() 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>.
55 class _OSP_EXPORT_ IDateChangeEventListener
56 : public Tizen::Base::Runtime::IEventListener
61 * This is the destructor for this class.
65 virtual ~IDateChangeEventListener(void) {}
68 * Called when there is a change in the date. @n
69 * The changed values of the year, month, and day are passed as input parameters.
73 * @param[in] source The source of the event
74 * @param[in] year The year
75 * @param[in] month The month
76 * @param[in] day The day
78 virtual void OnDateChanged(const Tizen::Ui::Control& source, int year, int month, int day) = 0;
82 * Called when the change in date is canceled.
86 * @param[in] source The source of the event
88 virtual void OnDateChangeCanceled(const Tizen::Ui::Control& source) = 0;
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
100 virtual void IDateChangeEventListener_Reserved1(void) {}
103 // This method is for internal use only.
104 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
106 // This method is reserved and may change its name at any time without
111 virtual void IDateChangeEventListener_Reserved2(void) {}
114 // This method is for internal use only.
115 // Using this method can cause behavioral, security-related, and consistency-related issues in the application.
117 // This method is reserved and may change its name at any time without
122 virtual void IDateChangeEventListener_Reserved3(void) {}
124 }; // IDateChangeEventListener
128 #endif // _FUI_IDATE_CHANGE_EVENT_LISTENER_H_