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 the License "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 // e32test/usb/t_usb_device/include/activetimer.h |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef __ACTIVETIMER_H__ |
|
19 #define __ACTIVETIMER_H__ |
|
20 |
|
21 class CActiveTimer : public CActive |
|
22 { |
|
23 public: |
|
24 static CActiveTimer* NewL(CConsoleBase* aConsole, RDEVCLIENT* aPort); |
|
25 ~CActiveTimer(); |
|
26 void Activate(TTimeIntervalMicroSeconds32 aDelay); |
|
27 |
|
28 private: |
|
29 CActiveTimer(CConsoleBase* aConsole, RDEVCLIENT* aPort); |
|
30 void ConstructL(); |
|
31 virtual void DoCancel(); |
|
32 virtual void RunL(); |
|
33 |
|
34 private: |
|
35 CConsoleBase* iConsole; |
|
36 RDEVCLIENT* iPort; |
|
37 RTimer iTimer; |
|
38 }; |
|
39 |
|
40 #endif // __ACTIVETIMER_H__ |