plugins/consoles/common/consoleextensions.h
changeset 100 706c7a69e448
parent 30 35cb3fe43f60
--- a/plugins/consoles/common/consoleextensions.h	Thu Nov 04 20:51:05 2010 +0000
+++ b/plugins/consoles/common/consoleextensions.h	Thu Nov 04 23:22:39 2010 +0000
@@ -120,6 +120,27 @@
 	static inline TInt Write(CBase* aConsole, const TDesC& aDes);
 	};
 
+class ConsoleSize
+	{
+public:
+	static const TInt KConsoleSizeReportedCorrectlyExtension = 0x10286F75;
+	static const TInt KConsoleSizeNotifyChangedExtension = 0x10286F78;
+public:
+	/**
+	Returns true if the console is known to correctly report its size (and thus that the console size detect routines
+	in iosrv do not need to be run). Only needed because econs.dll (the text windowserver one, which we can't change)
+	doesn't.
+	*/
+	static inline TBool ReportedCorrectly(CBase* aConsole);
+
+	/**
+	If not supported, aStatus is completed with KErrExtensionNotSupported
+	Only one notification can be outstanding on a given console at a given time.
+	*/
+	static inline void NotifySizeChanged(CBase* aConsole, TRequestStatus& aStatus);
+	static inline void CancelNotifySizeChanged(CBase* aConsole);
+	};
+
 // BC on this interface is not guaranteed - only for use by things inside /fshell/plugins/consoles
 class MIosrvConsoleHelper
 	{