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.
18 * @file FUiIDateChangeEventListener.h
19 * @brief This is the header file for the %IDateChangeEventListener interface.
21 * This header file contains the declarations of the %IDateChangeEventListener interface.
22 * If a change event is generated, a method of this interface is called.
23 * So, for tasks related to the change events, use the methods of this interface.
26 #ifndef _FUI_IDATE_CHANGE_EVENT_LISTENER_H_
27 #define _FUI_IDATE_CHANGE_EVENT_LISTENER_H_
30 #include <FBaseRtIEventListener.h>
31 #include <FBaseObject.h>
33 namespace Tizen { namespace Ui
38 namespace Tizen {namespace Ui
42 * @interface IDateChangeEventListener
43 * @brief This interface implements the listener for Date change events.
47 * The %IDateChangeEventListener interface is the listener interface for receiving date change events.
48 * The class that processes a date change event implements this interface, and the instance created with that class is registered
49 * with a UI control, using the control's AddDateChangeEventListener() method. When the date change event occurs, the
50 * OnDateChanged() method of that instance is invoked.
52 * 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>.
54 class _OSP_EXPORT_ IDateChangeEventListener
55 : public Tizen::Base::Runtime::IEventListener
60 * This is the destructor for this class.
64 virtual ~IDateChangeEventListener(void) {}
67 * Called when there is a change in the date. @n
68 * The changed values of the year, month, and day are passed as input parameters.
72 * @param[in] source The source of the event
73 * @param[in] year The year
74 * @param[in] month The month
75 * @param[in] day The day
77 virtual void OnDateChanged(const Tizen::Ui::Control& source, int year, int month, int day) = 0;
81 * Called when the change in date is canceled.
85 * @param[in] source The source of the event
87 virtual void OnDateChangeCanceled(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 // This method is reserved and may change its name at any time without
99 virtual void IDateChangeEventListener_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 // This method is reserved and may change its name at any time without
110 virtual void IDateChangeEventListener_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 // This method is reserved and may change its name at any time without
121 virtual void IDateChangeEventListener_Reserved3(void) {}
123 }; // IDateChangeEventListener
127 #endif // _FUI_IDATE_CHANGE_EVENT_LISTENER_H_