equal
deleted
inserted
replaced
|
1 // Copyright (c) 2003-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 /** |
|
17 @file |
|
18 */ |
|
19 |
|
20 |
|
21 #include "CMtfTestActionUtilsTimer.h" |
|
22 |
|
23 |
|
24 CMtfTestActionUtilsTimer* CMtfTestActionUtilsTimer::NewL() |
|
25 { |
|
26 CMtfTestActionUtilsTimer* self = new (ELeave) CMtfTestActionUtilsTimer(); |
|
27 CleanupStack::PushL(self); |
|
28 self->ConstructL(); |
|
29 CActiveScheduler::Add(self); |
|
30 CleanupStack::Pop(); |
|
31 return self; |
|
32 } |
|
33 |
|
34 |
|
35 CMtfTestActionUtilsTimer::CMtfTestActionUtilsTimer() : CTimer(EPriorityHigh) |
|
36 { |
|
37 } |
|
38 |
|
39 |
|
40 CMtfTestActionUtilsTimer::~CMtfTestActionUtilsTimer() |
|
41 { |
|
42 } |
|
43 |
|
44 |
|
45 void CMtfTestActionUtilsTimer::After(TInt aSec,TRequestStatus& aStatus) |
|
46 { |
|
47 iRequestStatus = &aStatus; |
|
48 aStatus = KRequestPending; |
|
49 TTimeIntervalMicroSeconds32 interval = aSec*1000000; |
|
50 CTimer::After(interval); |
|
51 } |
|
52 |
|
53 |
|
54 void CMtfTestActionUtilsTimer::RunL() |
|
55 { |
|
56 User::RequestComplete(iRequestStatus,iStatus.Int()); |
|
57 } |
|
58 |