Update contrib.
2 * Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
4 * This component and the accompanying materials are made available
5 * under the terms of the License "Eclipse Public License v1.0"
6 * which accompanies this distribution, and is available
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #ifndef __T_DUMMYCONSOLE_H__
20 #define __T_DUMMYCONSOLE_H__
26 * A console that discards all output.
28 class CDummyConsole : public CConsoleBase
34 virtual TInt Create(const TDesC& /*aTitle*/, TSize /*aSize*/) { return KErrNone; }
35 virtual void Read(TRequestStatus &aStatus) { TRequestStatus* status = &aStatus; User::RequestComplete(status, KErrNone); }
36 virtual void ReadCancel() {}
37 virtual void Write(const TDesC& /*aDes*/) {}
38 virtual TPoint CursorPos() const { return TPoint(); }
39 virtual void SetCursorPosAbs(const TPoint& /*aPoint*/) {}
40 virtual void SetCursorPosRel(const TPoint& /*aPoint*/) {}
41 virtual void SetCursorHeight(TInt /*aPercentage*/) {}
42 virtual void SetTitle(const TDesC& /*aTitle*/) {}
43 virtual void ClearScreen() {}
44 virtual void ClearToEndOfLine() {}
45 virtual TSize ScreenSize() const { return TSize(); }
46 virtual TKeyCode KeyCode() const { return TKeyCode(); }
47 virtual TUint KeyModifiers() const { return 0; }