15 |
15 |
16 #include <e32std.h> |
16 #include <e32std.h> |
17 #include <e32cons.h> |
17 #include <e32cons.h> |
18 #include <fshell/settings.h> |
18 #include <fshell/settings.h> |
19 #include <fshell/vtc_controller.h> |
19 #include <fshell/vtc_controller.h> |
|
20 #include <fshell/consoleextensions.h> |
20 |
21 |
21 class CVtcConsoleBase : public CConsoleBase, public MConsoleOutput, public MConsoleInput |
22 class CVtcConsoleBase : public CConsoleBase, public MConsoleOutput, public MConsoleInput, public MIosrvConsoleHelper |
22 { |
23 { |
23 public: |
24 public: |
24 IMPORT_C virtual ~CVtcConsoleBase(); |
25 IMPORT_C virtual ~CVtcConsoleBase(); |
25 IMPORT_C virtual TInt Create(const TDesC& aTitle, TSize aSize); |
26 IMPORT_C virtual TInt Create(const TDesC& aTitle, TSize aSize); |
26 IMPORT_C virtual void Read(TRequestStatus& aStatus); |
27 IMPORT_C virtual void Read(TRequestStatus& aStatus); |
36 IMPORT_C virtual TSize ScreenSize() const; |
37 IMPORT_C virtual TSize ScreenSize() const; |
37 IMPORT_C virtual TKeyCode KeyCode() const; |
38 IMPORT_C virtual TKeyCode KeyCode() const; |
38 IMPORT_C virtual TUint KeyModifiers() const; |
39 IMPORT_C virtual TUint KeyModifiers() const; |
39 IMPORT_C virtual TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1); |
40 IMPORT_C virtual TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1); |
40 protected: |
41 protected: |
41 enum TVerbosity |
|
42 { |
|
43 EInformation, |
|
44 EError, |
|
45 EDebug, |
|
46 }; |
|
47 protected: |
|
48 IMPORT_C void Message(TVerbosity aVerbosity, TRefByValue<const TDesC> aFmt, ...); |
|
49 IMPORT_C TBool Debug(); |
|
50 IMPORT_C void SetDebug(TBool aDebug); |
|
51 protected: |
|
52 IMPORT_C CVtcConsoleBase(); |
42 IMPORT_C CVtcConsoleBase(); |
53 IMPORT_C virtual void ConstructL(const TDesC& aTitle); |
43 IMPORT_C virtual void ConstructL(const TDesC& aTitle); |
54 IMPORT_C void ConstructL(const TDesC& aTitle, TBool aConsoleSupportsSizeDetect); // Note this is NOT virtual, only used for baseclasses to call up to from their overload of ConstructL(const TDesC&) if they explicitly don't support console size detect |
44 IMPORT_C void ConstructL(const TDesC& aTitle, TBool aConsoleSupportsSizeDetect); // Note this is NOT virtual, only used for baseclasses to call up to from their overload of ConstructL(const TDesC&) if they explicitly don't support console size detect |
55 IMPORT_C static TInt ReadKeywordValuePair(TLex& aLex, TPtrC& aKeyword, TPtrC& aValue); |
45 IMPORT_C static TInt ReadKeywordValuePair(TLex& aLex, TPtrC& aKeyword, TPtrC& aValue); |
56 |
46 |