equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2010 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: This application is to monitor Harvester and Search Server |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #ifndef CWDTIMER_H |
|
20 #define CWDTIMER_H |
|
21 |
|
22 #include <e32base.h> |
|
23 |
|
24 class MWDTimerHandler; |
|
25 |
|
26 class CWDTimer : public CActive |
|
27 { |
|
28 public: |
|
29 /* |
|
30 * Construction |
|
31 * @return instance of CWDTimer |
|
32 */ |
|
33 static CWDTimer* NewL( MWDTimerHandler* aWDTimerHandler ); //For callback |
|
34 /* |
|
35 * Construction |
|
36 * @return instance of CWDTimer |
|
37 */ |
|
38 static CWDTimer* NewLC( MWDTimerHandler* aWDTimerHandler ); |
|
39 /* |
|
40 * Destructor |
|
41 */ |
|
42 virtual ~CWDTimer(); |
|
43 public: |
|
44 /* |
|
45 * Srats the watch dog timer to monitor the CPix servers |
|
46 */ |
|
47 void StartWDTimer(); |
|
48 |
|
49 //From CActive |
|
50 void RunL(); |
|
51 void DoCancel(); |
|
52 TInt RunError( TInt aError ); |
|
53 private: |
|
54 /* |
|
55 * Constructor |
|
56 */ |
|
57 CWDTimer(); |
|
58 /* |
|
59 * Second phase constructor |
|
60 */ |
|
61 void ConstructL( MWDTimerHandler* aWDTimerHandler ); |
|
62 |
|
63 private: |
|
64 |
|
65 // Timer which is used to delay indexing messages |
|
66 RTimer iTimer; //Timer for self activation of AO |
|
67 //Watch dog timer handler.Not owned |
|
68 MWDTimerHandler* iWDTimerHandler; |
|
69 }; |
|
70 |
|
71 #endif /* CWDTIMER_H */ |