equal
deleted
inserted
replaced
|
1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "cimapcanceltimer.h" |
|
17 |
|
18 #include "imapsess.h" |
|
19 |
|
20 CImapCancelTimer* CImapCancelTimer::NewL(CImImap4Session& aSession) |
|
21 { |
|
22 CImapCancelTimer* self = new (ELeave) CImapCancelTimer(aSession); |
|
23 CleanupStack::PushL(self); |
|
24 self->ConstructL(); |
|
25 CleanupStack::Pop(self); |
|
26 return self; |
|
27 } |
|
28 |
|
29 CImapCancelTimer::~CImapCancelTimer() |
|
30 { |
|
31 Cancel(); |
|
32 } |
|
33 |
|
34 CImapCancelTimer::CImapCancelTimer(CImImap4Session& aSession) |
|
35 : CTimer(CActive::EPriorityHigh), iSession(aSession) |
|
36 { |
|
37 CActiveScheduler::Add(this); |
|
38 } |
|
39 |
|
40 /* |
|
41 * methods from CActive |
|
42 */ |
|
43 |
|
44 void CImapCancelTimer::RunL() |
|
45 { |
|
46 iSession.CancelTimerExpired(); |
|
47 } |