|
1 // Copyright (c) 2002-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 "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // $Header$ |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __CTIMEOUTTIMER_H__ |
|
19 #define __CTIMEOUTTIMER_H__ |
|
20 |
|
21 //----------------------------------------------------------------------------- |
|
22 // Include Files |
|
23 |
|
24 #include <e32base.h> |
|
25 #include <e32std.h> |
|
26 #include <s32file.h> |
|
27 #include <f32file.h> |
|
28 #include <e32hal.h> |
|
29 #include <fbs.h> |
|
30 |
|
31 //----------------------------------------------------------------------------- |
|
32 |
|
33 #include "MTimeoutCallback.h" |
|
34 |
|
35 //----------------------------------------------------------------------------- |
|
36 //class MTimeoutCallback; |
|
37 |
|
38 //----------------------------------------------------------------------------- |
|
39 |
|
40 class CTimeoutTimer : public CTimer |
|
41 { |
|
42 public: // Methods |
|
43 |
|
44 static CTimeoutTimer* NewL(MTimeoutCallback& aCallback); |
|
45 |
|
46 ~CTimeoutTimer(); |
|
47 |
|
48 private: // Methods from CTimer |
|
49 |
|
50 virtual void RunL(); |
|
51 |
|
52 private: // Methods |
|
53 |
|
54 CTimeoutTimer(MTimeoutCallback& aCallback); |
|
55 |
|
56 void ConstructL(); |
|
57 |
|
58 private: // Attributes |
|
59 |
|
60 MTimeoutCallback& iCallback; |
|
61 |
|
62 }; |
|
63 |
|
64 //----------------------------------------------------------------------------- |
|
65 |
|
66 #endif // __CTIMEOUTTIMER_H__ |
|
67 |
|
68 //----------------------------------------------------------------------------- |
|
69 // End of File |
|
70 //----------------------------------------------------------------------------- |
|
71 |
|
72 |