equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2002 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: ?Description |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // INCLUDE FILES |
|
21 #include "ConnectionTimer.h" |
|
22 |
|
23 CConnectionTimer* CConnectionTimer::NewL(){ |
|
24 CConnectionTimer* self = new(ELeave) CConnectionTimer; |
|
25 CleanupStack::PushL(self); |
|
26 self->ConstructL(); |
|
27 return self; |
|
28 } |
|
29 CConnectionTimer::CConnectionTimer():CActive(0){ |
|
30 } |
|
31 CConnectionTimer::~CConnectionTimer(){ |
|
32 Cancel(); |
|
33 iTimer.Close(); |
|
34 } |
|
35 void CConnectionTimer::ConstructL(){ |
|
36 User::LeaveIfError(iTimer.CreateLocal()); |
|
37 CActiveScheduler::Add(this); |
|
38 } |
|
39 void CConnectionTimer::SetConnectionTimer(TTimeIntervalMicroSeconds32 aTimeOut){ |
|
40 iTimer.After(iStatus, aTimeOut); |
|
41 SetActive(); |
|
42 } |
|
43 |
|
44 void CConnectionTimer::RunL(){ |
|
45 CActiveScheduler::Stop(); |
|
46 } |
|
47 void CConnectionTimer::DoCancel(){ |
|
48 iTimer.Cancel(); |
|
49 } |
|
50 // End of File |