equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2005-2009 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 the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.symbianfoundation.org/legal/licencesv10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * @file |
|
16 * This contains CTEFTimer |
|
17 * |
|
18 */ |
|
19 |
|
20 |
|
21 #ifndef __TEF_TIMER_H__ |
|
22 #define __TEF_TIMER_H__ |
|
23 |
|
24 #include <e32base.h> |
|
25 |
|
26 class MTEFTimerCallback |
|
27 /** |
|
28 * @internalComponent |
|
29 * @test |
|
30 * |
|
31 * Timer completion callback |
|
32 */ |
|
33 { |
|
34 public: |
|
35 /** |
|
36 * Method from which CTEFTimer informs the user that the timer has completed |
|
37 */ |
|
38 virtual void TimerCompleted() = 0; |
|
39 }; |
|
40 |
|
41 class CTEFTimer : public CTimer |
|
42 /** |
|
43 * @internalComponent |
|
44 * @test |
|
45 * |
|
46 * @see CTimer |
|
47 * Timer help class |
|
48 */ |
|
49 { |
|
50 public: |
|
51 IMPORT_C static CTEFTimer* NewL(MTEFTimerCallback& aCallback, TInt aPriority = EPriorityStandard); |
|
52 |
|
53 protected: |
|
54 CTEFTimer(MTEFTimerCallback& aCallback, TInt aPriority); |
|
55 |
|
56 void ConstructL(); |
|
57 |
|
58 virtual void RunL(); |
|
59 |
|
60 private: |
|
61 MTEFTimerCallback& iCallback; |
|
62 }; |
|
63 |
|
64 #endif // __TEF_TIMER_H__ |