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 * @pre The WatchTime needs to be initialized.
65 * @brief return current hour24
68 * @pre The WatchTime needs to be initialized.
70 int GetHour24() const;
73 * @brief return current minute
76 * @pre The WatchTime needs to be initialized.
78 int GetMinute() const;
81 * @brief return current second
84 * @pre The WatchTime needs to be initialized.
86 int GetSecond() const;
88 public: // Not intended for application developers
89 DALI_INTERNAL WatchTime(void *time_handle);
91 private: // Internal Data
102 #endif // __DALI_WATCH_TIME_H__