equal
deleted
inserted
replaced
11 // |
11 // |
12 |
12 |
13 #include <e32std.h> |
13 #include <e32std.h> |
14 #include <e32cons.h> |
14 #include <e32cons.h> |
15 #include <e32keys.h> |
15 #include <e32keys.h> |
|
16 #include <fshell/consoleextensions.h> |
16 |
17 |
17 NONSHARABLE_CLASS(CNullConsole) : public CConsoleBase |
18 NONSHARABLE_CLASS(CNullConsole) : public CConsoleBase |
18 { |
19 { |
19 public: |
20 public: |
20 CNullConsole(); |
21 CNullConsole(); |
31 virtual void ClearScreen(); |
32 virtual void ClearScreen(); |
32 virtual void ClearToEndOfLine(); |
33 virtual void ClearToEndOfLine(); |
33 virtual TSize ScreenSize() const; |
34 virtual TSize ScreenSize() const; |
34 virtual TKeyCode KeyCode() const; |
35 virtual TKeyCode KeyCode() const; |
35 virtual TUint KeyModifiers() const; |
36 virtual TUint KeyModifiers() const; |
|
37 virtual TInt Extension_(TUint aExtensionId, TAny*& a0, TAny* a1); |
36 }; |
38 }; |
37 |
39 |
38 CNullConsole::CNullConsole() |
40 CNullConsole::CNullConsole() |
39 { |
41 { |
40 } |
42 } |
104 TUint CNullConsole::KeyModifiers() const |
106 TUint CNullConsole::KeyModifiers() const |
105 { |
107 { |
106 return 0; |
108 return 0; |
107 } |
109 } |
108 |
110 |
|
111 TInt CNullConsole::Extension_(TUint aExtensionId, TAny*& a0, TAny* a1) |
|
112 { |
|
113 if (aExtensionId == ConsoleSize::KConsoleSizeReportedCorrectlyExtension) |
|
114 { |
|
115 // No point attempting size detection on nullcons |
|
116 return KErrNone; |
|
117 } |
|
118 |
|
119 return CConsoleBase::Extension_(aExtensionId, a0, a1); |
|
120 } |
|
121 |
109 extern "C" EXPORT_C TAny *NewConsole() |
122 extern "C" EXPORT_C TAny *NewConsole() |
110 { |
123 { |
111 return(new CNullConsole); |
124 return(new CNullConsole); |
112 } |
125 } |