Dali 3D User Interface Engine
timer.h
Go to the documentation of this file.
1 #ifndef __DALI_TIMER_H__
2 #define __DALI_TIMER_H__
3 
4 /*
5  * Copyright (c) 2015 Samsung Electronics Co., Ltd.
6  *
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
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
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.
18  *
19  */
20 
21 // EXTERNAL INCLUDES
22 
25 
26 namespace Dali
27 {
33 namespace Internal DALI_INTERNAL
34 {
35 namespace Adaptor
36 {
37 class Timer;
38 }
39 }
40 
55 {
56 public: // Signal typedefs
57 
59 
60 public: // API
61 
68  Timer();
69 
77  static Timer New( unsigned int milliSec );
78 
85  Timer( const Timer& timer );
86 
95  Timer& operator=( const Timer& timer );
96 
103  ~Timer();
104 
115  static Timer DownCast( BaseHandle handle );
116 
123  void Start();
124 
129  void Stop();
130 
138  void SetInterval( unsigned int milliSec );
139 
145  unsigned int GetInterval() const;
146 
152  bool IsRunning() const;
153 
154 public: // Signals
155 
165  TimerSignalType& TickSignal();
166 
167 public: // Not intended for application developers
169 };
170 
174 } // namespace Dali
175 
176 #endif // __DALI_TIMER_H__
Dali Docs Home
Read more about Dali