plugins/consoles/common/consoleextensions.h
changeset 100 706c7a69e448
parent 30 35cb3fe43f60
equal deleted inserted replaced
99:a6fec624de6c 100:706c7a69e448
   118 	Write to StdErr of the underlying console if the console supports this.
   118 	Write to StdErr of the underlying console if the console supports this.
   119 	*/
   119 	*/
   120 	static inline TInt Write(CBase* aConsole, const TDesC& aDes);
   120 	static inline TInt Write(CBase* aConsole, const TDesC& aDes);
   121 	};
   121 	};
   122 
   122 
       
   123 class ConsoleSize
       
   124 	{
       
   125 public:
       
   126 	static const TInt KConsoleSizeReportedCorrectlyExtension = 0x10286F75;
       
   127 	static const TInt KConsoleSizeNotifyChangedExtension = 0x10286F78;
       
   128 public:
       
   129 	/**
       
   130 	Returns true if the console is known to correctly report its size (and thus that the console size detect routines
       
   131 	in iosrv do not need to be run). Only needed because econs.dll (the text windowserver one, which we can't change)
       
   132 	doesn't.
       
   133 	*/
       
   134 	static inline TBool ReportedCorrectly(CBase* aConsole);
       
   135 
       
   136 	/**
       
   137 	If not supported, aStatus is completed with KErrExtensionNotSupported
       
   138 	Only one notification can be outstanding on a given console at a given time.
       
   139 	*/
       
   140 	static inline void NotifySizeChanged(CBase* aConsole, TRequestStatus& aStatus);
       
   141 	static inline void CancelNotifySizeChanged(CBase* aConsole);
       
   142 	};
       
   143 
   123 // BC on this interface is not guaranteed - only for use by things inside /fshell/plugins/consoles
   144 // BC on this interface is not guaranteed - only for use by things inside /fshell/plugins/consoles
   124 class MIosrvConsoleHelper
   145 class MIosrvConsoleHelper
   125 	{
   146 	{
   126 protected:
   147 protected:
   127 	enum TVerbosity
   148 	enum TVerbosity