equal
deleted
inserted
replaced
1 /* |
|
2 * Copyright (c) 2005 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 #ifndef MUSUIACTIVETIMER_H |
|
21 #define MUSUIACTIVETIMER_H |
|
22 |
|
23 #include <e32base.h> |
|
24 |
|
25 class MMusUiActiveTimerObserver; |
|
26 |
|
27 class CMusUiActiveTimer : public CActive |
|
28 { |
|
29 |
|
30 public: // constructors and destructor |
|
31 |
|
32 /** |
|
33 * Destructor. |
|
34 */ |
|
35 ~CMusUiActiveTimer(); |
|
36 |
|
37 /** |
|
38 * Two-phased constructor. Leaves on failure. |
|
39 * @return The constructed CMusUiActiveTimer object. |
|
40 */ |
|
41 static CMusUiActiveTimer* NewL( MMusUiActiveTimerObserver* aObserver ); |
|
42 |
|
43 private: |
|
44 |
|
45 /** |
|
46 * C++ constructor. |
|
47 */ |
|
48 CMusUiActiveTimer( MMusUiActiveTimerObserver* aObserver ); |
|
49 |
|
50 /** |
|
51 * Symbian 2nd-phase constructor. |
|
52 */ |
|
53 void ConstructL(); |
|
54 |
|
55 public: // new funtions: |
|
56 |
|
57 void After( TTimeIntervalMicroSeconds32 anInterval ); |
|
58 |
|
59 private: // functions from base class CActive |
|
60 |
|
61 void DoCancel(); |
|
62 |
|
63 void RunL(); |
|
64 |
|
65 private: // Data |
|
66 |
|
67 RTimer iTimer; |
|
68 MMusUiActiveTimerObserver* iObserver; |
|
69 |
|
70 }; |
|
71 |
|
72 #endif // MUSUIACTIVETIMER_H |
|
73 |
|
74 // end of file |
|