equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: TimerServer |
|
15 * |
|
16 */ |
|
17 |
|
18 #ifndef TICKERPROVIDER_H |
|
19 #define TICKERPROVIDER_H |
|
20 |
|
21 #include <sys/types.h> |
|
22 |
|
23 #include "tickerproviderinterface.h" |
|
24 |
|
25 namespace java |
|
26 { |
|
27 namespace captain |
|
28 { |
|
29 |
|
30 class TickerProvider : public TickerProviderInterface |
|
31 { |
|
32 public: |
|
33 TickerProvider(TickerProviderEventsInterface* aEvents); |
|
34 virtual ~TickerProvider(); |
|
35 |
|
36 virtual void nextTickAt(const long long& aJavaTime); |
|
37 virtual long long getNextTickAt(); |
|
38 virtual void cancel(); |
|
39 |
|
40 // Helpers |
|
41 // virtual long long getCurrentJavaTime(); |
|
42 |
|
43 private: |
|
44 timer_t mTimerId; |
|
45 long long mNextTickAt; |
|
46 }; |
|
47 |
|
48 } // namespace captain |
|
49 } // namespace java |
|
50 |
|
51 #endif // TICKERPROVIDER_H |
|
52 |