|
1 /* |
|
2 * Copyright (c) 1997-1999 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 #if !defined(__EIKCONCL_H__) |
|
20 #define __EIKCONCL_H__ |
|
21 |
|
22 #if !defined(__E32CONS_H__) |
|
23 #include <e32cons.h> |
|
24 #endif |
|
25 |
|
26 #if !defined(__W32STD_H__) |
|
27 #include <w32std.h> |
|
28 #endif |
|
29 |
|
30 class CEikConsoleScreen; |
|
31 |
|
32 typedef const TAny* CATP; |
|
33 |
|
34 class CEikConsoleClient : public CConsoleBase |
|
35 { |
|
36 public: |
|
37 ~CEikConsoleClient(); |
|
38 public: // from CConsoleBase |
|
39 void Read(TRequestStatus& aStatus); |
|
40 void ReadCancel(); |
|
41 void Write(const TDesC& aDes); |
|
42 TPoint CursorPos() const; |
|
43 void SetCursorPosAbs(const TPoint& aPoint); |
|
44 void SetCursorPosRel(const TPoint& aPoint); |
|
45 void SetCursorHeight(TInt aPercentage); |
|
46 void SetTitle(const TDesC& aTitle); |
|
47 void ClearScreen(); |
|
48 void ClearToEndOfLine(); |
|
49 TSize ScreenSize() const; |
|
50 TKeyCode KeyCode() const; |
|
51 TUint KeyModifiers() const; |
|
52 private: |
|
53 friend TAny* NewConsole(); |
|
54 CEikConsoleClient(); |
|
55 private: // from CConsoleBase |
|
56 TInt Create(const TDesC& aTitle,TSize aSize); |
|
57 private: // internal use only |
|
58 void SendReceive(TInt aMessage,const TAny* aParam); |
|
59 inline void SendReceive(TInt aMessage,TInt aParam) { SendReceive(aMessage,(const TAny*)aParam); } |
|
60 private: |
|
61 friend class CEikConsMessager; |
|
62 RThread iThread; |
|
63 TRequestStatus iLogonStatus; |
|
64 TRequestStatus* iThreadStatus; |
|
65 TInt* iMessage; |
|
66 CATP* iParam; |
|
67 TRequestStatus** iReplyStatus; |
|
68 TKeyEvent iKeyEvent; |
|
69 CEikConsoleScreen* iScreen; |
|
70 }; |
|
71 |
|
72 #endif |