|
1 /* |
|
2 * Copyright (c) 2002, 2003 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: Calendar timer class. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // ============================ MEMBER FUNCTIONS =============================== |
|
21 |
|
22 |
|
23 // --------------------------------------------------------- |
|
24 // CCalenTimer::ConstructL |
|
25 // Symbian 2nd phase constructor can leave. |
|
26 // --------------------------------------------------------- |
|
27 // |
|
28 inline void CCalenTimer::ConstructL(void) |
|
29 { |
|
30 CTimer::ConstructL(); |
|
31 CActiveScheduler::Add( this ); |
|
32 } |
|
33 |
|
34 // --------------------------------------------------------- |
|
35 // CCalenTimer::NewL |
|
36 // Two-phased constructor. |
|
37 // --------------------------------------------------------- |
|
38 // |
|
39 inline CCalenTimer* CCalenTimer::NewL(TCallBack& aCallBack) |
|
40 { |
|
41 CCalenTimer* self = new( ELeave )CCalenTimer( aCallBack); |
|
42 CleanupStack::PushL( self ); |
|
43 self->ConstructL(); |
|
44 CleanupStack::Pop( self ); |
|
45 return self; |
|
46 } |
|
47 |
|
48 // --------------------------------------------------------- |
|
49 // CCalenTimer::CCalenTimer |
|
50 // ?implementation_description |
|
51 // (other items were commented in a header). |
|
52 // --------------------------------------------------------- |
|
53 // |
|
54 inline CCalenTimer::CCalenTimer(TCallBack& aCallBack) |
|
55 : CTimer( CActive::EPriorityStandard ) |
|
56 { |
|
57 iCallBack= aCallBack; |
|
58 } |
|
59 |
|
60 // --------------------------------------------------------- |
|
61 // CCalenTimer::~CCalenTimer |
|
62 // ?implementation_description |
|
63 // (other items were commented in a header). |
|
64 // --------------------------------------------------------- |
|
65 // |
|
66 inline CCalenTimer::~CCalenTimer(void) |
|
67 { |
|
68 Deque(); |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------- |
|
72 // CCalenTimer::RunL |
|
73 // ?implementation_description |
|
74 // (other items were commented in a header). |
|
75 // --------------------------------------------------------- |
|
76 // |
|
77 inline void CCalenTimer::RunL(void) |
|
78 { |
|
79 iCallBack.CallBack(); |
|
80 } |
|
81 |
|
82 |
|
83 // End of File |