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 |
|
18 |
|
19 #ifndef __TRKTCBSERVER_H__ |
|
20 #define __TRKTCBSERVER_H__ |
|
21 |
|
22 #include <e32base.h> |
|
23 #include <f32file.h> |
|
24 #include <e32cons.h> |
|
25 #include <hal.h> |
|
26 |
|
27 |
|
28 // |
|
29 // class CKeyboardInput |
|
30 // |
|
31 // Handles input from the keyboard |
|
32 // |
|
33 class CKeyboardInput : public CActive |
|
34 { |
|
35 public: |
|
36 |
|
37 CKeyboardInput(CConsoleBase* aConsole); |
|
38 ~CKeyboardInput(); |
|
39 |
|
40 void ListenToKeyboard(); |
|
41 |
|
42 protected: |
|
43 |
|
44 void RunL(); |
|
45 void DoCancel(); |
|
46 |
|
47 private: |
|
48 |
|
49 CConsoleBase* iConsole; |
|
50 }; |
|
51 |
|
52 |
|
53 // |
|
54 // class CMetroTrkIO |
|
55 // |
|
56 // Handles input and output from/to the console |
|
57 // |
|
58 class CMetroTrkIO : public CBase |
|
59 { |
|
60 public: |
|
61 |
|
62 CMetroTrkIO(); |
|
63 ~CMetroTrkIO(); |
|
64 |
|
65 void PrintToScreen(TRefByValue<const TDesC> aFmt, ...); |
|
66 void Terminating(); |
|
67 |
|
68 private: |
|
69 |
|
70 CConsoleBase* iConsole; |
|
71 CKeyboardInput* iKeyboardInput; |
|
72 TBuf<50> iBuffer; |
|
73 }; |
|
74 |
|
75 #endif // __TRKTCBSERVER_H__ |