[SRUK] Initial copy from Tizen 2.2 version
[platform/core/uifw/dali-adaptor.git] / adaptors / base / interfaces / timer-interface.h
1 #ifndef __DALI_INTERNAL_ADAPTOR_BASE_TIMER_INTERFACE_H__
2 #define __DALI_INTERNAL_ADAPTOR_BASE_TIMER_INTERFACE_H__
3
4 //
5 // Copyright (c) 2014 Samsung Electronics Co., Ltd.
6 //
7 // Licensed under the Flora License, Version 1.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://floralicense.org/license/
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 namespace Dali
21 {
22 namespace Internal
23 {
24 namespace Adaptor
25 {
26
27 /**
28  * Interface for a timer class
29  */
30 class TimerInterface
31 {
32 public:
33   /**
34    * @copydoc Dali::Timer::Start()
35    */
36   virtual void Start() = 0;
37
38   /**
39    * @copydoc Dali::Timer::Stop()
40    */
41   virtual void Stop() = 0;
42
43   /**
44    * @copydoc Dali::Timer::SetInterval()
45    */
46   virtual void SetInterval( unsigned int intervalInMilliseconds ) = 0;
47
48   /**
49    * @copydoc Dali::Timer::GetInterval()
50    */
51   virtual unsigned int GetInterval() const = 0;
52
53   /**
54    * @copydoc Dali::Timer::IsRunning()
55    */
56   virtual bool IsRunning() const = 0;
57
58 protected:
59   /**
60    * Virtual protected destructor, no deletion through this interface
61    */
62   virtual ~TimerInterface() { }
63 };
64
65
66 } // Adaptor
67 } // Internal
68 } // Dali
69
70 #endif // __DALI_INTERNAL_ADAPTOR_BASE_TIMER_INTERFACE_H__