equal
deleted
inserted
replaced
|
1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // @file ctlbstimerutils.h |
|
15 // |
|
16 // |
|
17 |
|
18 |
|
19 |
|
20 /** |
|
21 @file |
|
22 @internalTechnology |
|
23 @test |
|
24 */ |
|
25 |
|
26 #ifndef __CT_LBS_TIMER_UTILS_H__ |
|
27 #define __CT_LBS_TIMER_UTILS_H__ |
|
28 |
|
29 #include <e32base.h> |
|
30 |
|
31 class MT_LbsTimerUtilsObserver |
|
32 { |
|
33 public: |
|
34 virtual void HandleTimerL(TInt aTimerId, const TTime& aTargetTime) = 0; |
|
35 }; |
|
36 |
|
37 |
|
38 class CT_LbsTimerUtils : public CTimer |
|
39 { |
|
40 public: |
|
41 IMPORT_C static CT_LbsTimerUtils* NewL(MT_LbsTimerUtilsObserver* aObserver, TInt aTimerId); |
|
42 |
|
43 IMPORT_C ~CT_LbsTimerUtils(); |
|
44 |
|
45 IMPORT_C void SetTimer(const TTimeIntervalMicroSeconds32 aPeriod); |
|
46 IMPORT_C void SetTimer(const TTime& aUtcTargetTime); |
|
47 |
|
48 IMPORT_C void CancelTimer(); |
|
49 |
|
50 protected: |
|
51 CT_LbsTimerUtils(MT_LbsTimerUtilsObserver* aObserver, TInt aTimerId); |
|
52 void ConstructL(); |
|
53 |
|
54 void RunL(); |
|
55 |
|
56 private: |
|
57 MT_LbsTimerUtilsObserver* iObserver; |
|
58 TInt iTimerId; |
|
59 TTime iTargetTime; |
|
60 }; |
|
61 |
|
62 #endif //__CT_LBS_TIMER_UTILS_H__ |