sl@0: // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: // All rights reserved. sl@0: // This component and the accompanying materials are made available sl@0: // under the terms of "Eclipse Public License v1.0" sl@0: // which accompanies this distribution, and is available sl@0: // at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: // sl@0: // Initial Contributors: sl@0: // Nokia Corporation - initial contribution. sl@0: // sl@0: // Contributors: sl@0: // sl@0: // Description: sl@0: // sl@0: sl@0: #ifndef __CONSOLEPRINT_H__ sl@0: #define __CONSOLEPRINT_H__ sl@0: sl@0: #include sl@0: #include sl@0: sl@0: const TUint32 KTimeToWait = 30000000; sl@0: sl@0: // class CConsolePrint - provide functions to do screen output. sl@0: class CConsolePrint : public CBase sl@0: { sl@0: public: sl@0: static CConsolePrint* NewL(TBool aWaitForAck); sl@0: virtual ~CConsolePrint(); sl@0: void Printf(TRefByValue aFmt, ...); sl@0: void SetWaitMode(TBool aWaitForAck); sl@0: sl@0: private: sl@0: CConsolePrint(TBool aWaitForAck); sl@0: void ConstructL(); sl@0: void WaitForUserAck(); sl@0: sl@0: private: sl@0: CConsoleBase* iConsole; sl@0: TBool iWaitForAck; sl@0: TBuf<256> iBuf; sl@0: }; sl@0: sl@0: #endif // __CONSOLEPRINT_H__