equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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 "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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef _CWATCHTIMER_H_ |
|
21 #define _CWATCHTIMER_H_ |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 class MTimeOutCallBack |
|
26 { |
|
27 public: |
|
28 virtual void HandleTimeOut() = 0; |
|
29 }; |
|
30 |
|
31 class CWatchTimer:public CTimer |
|
32 { |
|
33 public: |
|
34 static CWatchTimer* NewL(TInt aPriority,MTimeOutCallBack* aCallback); |
|
35 |
|
36 protected: |
|
37 |
|
38 void RunL(); |
|
39 private: |
|
40 CWatchTimer(TInt aPriority,MTimeOutCallBack* aCallback); |
|
41 void ConstructL(); |
|
42 private: |
|
43 MTimeOutCallBack* iCallback; |
|
44 }; |
|
45 |
|
46 #endif _CWATCHTIMER_H_ |