1 #ifndef __DALI_WATCH_TIME_H__
2 #define __DALI_WATCH_TIME_H__
5 * Copyright (c) 2016 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
24 #include <dali/public-api/dali-core.h>
29 * @addtogroup dali_adaptor_framework
34 * @brief The WatchTime class is used to get time for the WatchApplication.
36 * A WatchTime has a time handle from watch application framework.
37 * You can get time(hour, minute, second) on receiving timeTick signal
40 class DALI_IMPORT_API WatchTime
57 * @brief return current hour
60 * @return the current hour
61 * @pre The WatchTime needs to be initialized.
66 * @brief return current hour24
69 * @return the current hour(the 24-hour clock)
70 * @pre The WatchTime needs to be initialized.
72 int GetHour24() const;
75 * @brief return current minute
78 * @return the current minute
79 * @pre The WatchTime needs to be initialized.
81 int GetMinute() const;
84 * @brief return current second
87 * @return the current second
88 * @pre The WatchTime needs to be initialized.
90 int GetSecond() const;
92 public: // Not intended for application developers
93 DALI_INTERNAL WatchTime(void *time_handle);
95 private: // Internal Data
106 #endif // __DALI_WATCH_TIME_H__