plugins/consoles/vt100cons/inc/vtc_base.h
changeset 30 35cb3fe43f60
parent 28 169dfbeff8ee
equal deleted inserted replaced
29:9a2198517f48 30:35cb3fe43f60
    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 
    61 private:
    51 private:
    62 	TKeyPress iKeyPress;
    52 	TKeyPress iKeyPress;
    63 	CVtConsoleOutputController* iOutputController;
    53 	CVtConsoleOutputController* iOutputController;
    64 	CVtConsoleInputController* iInputController;
    54 	CVtConsoleInputController* iInputController;
    65 	LtkUtils::CIniFile* iIniFile;
    55 	LtkUtils::CIniFile* iIniFile;
    66 	TInt iDebug;
       
    67 protected:
       
    68 	CConsoleBase* iUnderlyingConsole;
       
    69 	};
    56 	};
    70 
    57 
    71 
    58 
    72 #endif // __VT100CONS_BASE_H__
    59 #endif // __VT100CONS_BASE_H__