equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2009 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: |
|
15 * |
|
16 */ |
|
17 #ifndef __DBGTRCTESTTIMER_H__ |
|
18 #define __DBGTRCTESTTIMER_H__ |
|
19 |
|
20 #include <e32base.h> |
|
21 #include "dbgtrctest.h" |
|
22 #include "dbgtrccomm.h" |
|
23 // |
|
24 // class CDummyTraceServer |
|
25 // |
|
26 // Active object used to avoid auto-switch off |
|
27 // |
|
28 class CDummyTraceServer: public CActive |
|
29 { |
|
30 public: |
|
31 static CDummyTraceServer* NewLC(CConsoleIO* aConsoleIO); |
|
32 void ConstructL(); |
|
33 ~CDummyTraceServer(); |
|
34 void Start(); |
|
35 |
|
36 protected: |
|
37 void RunL(); |
|
38 void DoCancel(); |
|
39 |
|
40 private: |
|
41 CDummyTraceServer(CConsoleIO* aConsoleIO); |
|
42 void Activate(); |
|
43 void SendMessage(); |
|
44 |
|
45 private: |
|
46 |
|
47 enum { KPeriod = 5 * 10 }; |
|
48 |
|
49 CConsoleIO* iConsoleIO; |
|
50 |
|
51 RTimer iTimer; |
|
52 RDbgTrcComm iAcmPort; |
|
53 |
|
54 TUint iMessageId; |
|
55 }; |
|
56 |
|
57 #endif //__DBGTRCTESTTIMER_H__ |