equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2006 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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 #ifndef MCCPERIODICRUNNER_H |
|
24 #define MCCPERIODICRUNNER_H |
|
25 #include <e32base.h> |
|
26 |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * CMccPeriodicRunner class declaration |
|
32 */ |
|
33 class CMccPeriodicRunner : public CActive |
|
34 { |
|
35 public: |
|
36 |
|
37 static CMccPeriodicRunner* NewL(); |
|
38 |
|
39 ~CMccPeriodicRunner(); |
|
40 |
|
41 public: |
|
42 |
|
43 void Start( TTimeIntervalMicroSeconds32 aInterval, |
|
44 TCallBack aCallBack ); |
|
45 void Stop(); |
|
46 |
|
47 TUint32 Interval(); |
|
48 |
|
49 public: // From CActive |
|
50 |
|
51 void DoCancel(); |
|
52 void RunL(); |
|
53 TInt RunError(TInt aError); |
|
54 |
|
55 private: |
|
56 CMccPeriodicRunner(); |
|
57 void ConstructL(); // second construction phase |
|
58 |
|
59 private: |
|
60 |
|
61 //Timer service provider |
|
62 RTimer iTimer; |
|
63 |
|
64 TTimeIntervalMicroSeconds32 iInterval; |
|
65 |
|
66 TCallBack iCallBack; |
|
67 }; |
|
68 |
|
69 |
|
70 #endif |