equal
deleted
inserted
replaced
|
1 #ifndef __REMOTE_WAKEUP_TIMER_H |
|
2 #define __REMOTE_WAKEUP_TIMER_H |
|
3 |
|
4 /* |
|
5 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
6 * All rights reserved. |
|
7 * This component and the accompanying materials are made available |
|
8 * under the terms of the License "Eclipse Public License v1.0" |
|
9 * which accompanies this distribution, and is available |
|
10 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
11 * |
|
12 * Initial Contributors: |
|
13 * Nokia Corporation - initial contribution. |
|
14 * |
|
15 * Contributors: |
|
16 * |
|
17 * Description: |
|
18 * @file wakeuptimer.h |
|
19 * @internalComponent |
|
20 * |
|
21 * |
|
22 */ |
|
23 |
|
24 |
|
25 |
|
26 #include <e32base.h> |
|
27 #include "testdevicebase.h" |
|
28 |
|
29 namespace NUnitTesting_USBDI |
|
30 { |
|
31 |
|
32 /** |
|
33 */ |
|
34 class CRemoteWakeupTimer : public CTimer |
|
35 { |
|
36 public: |
|
37 |
|
38 /** |
|
39 2 phase construction |
|
40 @param aTestDevice the test device object that will perform the remote wakeup event |
|
41 */ |
|
42 |
|
43 static CRemoteWakeupTimer* NewL(RUsbTestDevice& aTestDevice); |
|
44 |
|
45 /** |
|
46 Destructor |
|
47 */ |
|
48 |
|
49 ~CRemoteWakeupTimer(); |
|
50 |
|
51 /** |
|
52 Wake-up the test device after the specified interval |
|
53 @param aInterval the interval |
|
54 */ |
|
55 |
|
56 void WakeUp(TUint16 aInterval); |
|
57 |
|
58 private: |
|
59 /** |
|
60 */ |
|
61 |
|
62 CRemoteWakeupTimer(RUsbTestDevice& aTestDevice); |
|
63 |
|
64 /** |
|
65 */ |
|
66 |
|
67 void ConstructL(); |
|
68 |
|
69 private: // From CTimer |
|
70 /** |
|
71 */ |
|
72 void RunL(); |
|
73 |
|
74 private: |
|
75 /** |
|
76 The test device object to instruct to connect of disonnect |
|
77 */ |
|
78 RUsbTestDevice& iTestDevice; |
|
79 }; |
|
80 |
|
81 |
|
82 } |
|
83 |
|
84 #endif |
|
85 |