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 FUiCtrl_DateTimeModel.h
19 * @brief This is the header file for the _DateTimeModel class.
22 #ifndef _FUI_CTRL_INTERNAL_DATETIME_MODEL_H_
23 #define _FUI_CTRL_INTERNAL_DATETIME_MODEL_H_
25 #include <FBaseObject.h>
26 #include <FBaseDateTime.h>
27 #include <FSysSystemTime.h>
28 #include "FUiCtrl_DateTimeDefine.h"
30 namespace Tizen { namespace Ui { namespace Controls
34 : public Tizen::Base::Object
38 virtual ~_DateTimeModel(void);
41 result SetYear(int year);
42 int GetYear(void) const;
44 result SetMonth(int month);
45 int GetMonth(void) const;
47 result SetDay(int day);
48 int GetDay(void) const;
50 result SetHour(int hour);
51 int GetHour(void) const;
53 result SetMinute(int minute);
54 int GetMinute(void) const;
56 result SetMaxYear(int maxYear);
57 result SetMinYear(int minYear);
58 result GetYearRange(int& minYear, int& maxYear) const;
60 void SetCurrentDateTime(void);
62 void SetDateTime(const Tizen::Base::DateTime& time);
63 Tizen::Base::DateTime GetDateTime(void) const;
66 _DateTimeModel(const _DateTimeModel&);
68 _DateTimeModel& operator =(const _DateTimeModel&);
70 void SetSecond(int second);
71 int GetSecond(void) const;
87 }}} // Tizen::Ui::Controls
89 #endif // _FUI_CTRL_INTERNAL_DATETIME_MODEL_H_