equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-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 // cptpiptransport.cpp |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @internalComponent |
|
20 */ |
|
21 |
|
22 #include "cptpiptimer.h" |
|
23 #include "cptpipcontroller.h" |
|
24 |
|
25 CPTPIPTimer::CPTPIPTimer(CPTPIPController& aController) : CTimer(CActive::EPriorityStandard) |
|
26 { |
|
27 iController=&aController; |
|
28 } |
|
29 |
|
30 CPTPIPTimer* CPTPIPTimer::NewLC(CPTPIPController& aController) |
|
31 { |
|
32 CPTPIPTimer* self=new (ELeave) CPTPIPTimer(aController); |
|
33 CleanupStack::PushL(self); |
|
34 self->ConstructL(); |
|
35 return self; |
|
36 } |
|
37 |
|
38 CPTPIPTimer* CPTPIPTimer::NewL(CPTPIPController& aController) |
|
39 { |
|
40 CPTPIPTimer* self = NewLC(aController); |
|
41 CleanupStack::Pop(self); |
|
42 return self; |
|
43 } |
|
44 |
|
45 void CPTPIPTimer::ConstructL() |
|
46 { |
|
47 CTimer::ConstructL(); |
|
48 CActiveScheduler::Add(this); |
|
49 } |
|
50 |
|
51 void CPTPIPTimer::IssueRequest(TInt aTimerValue) |
|
52 { |
|
53 CTimer::After(aTimerValue * KTimerMultiplier); |
|
54 } |
|
55 |
|
56 void CPTPIPTimer::RunL() |
|
57 { |
|
58 iController->OnTimeOut(); |
|
59 } |