persistentstorage/centralrepository/convtool/src/consoleprint.h
changeset 0 08ec8eefde2f
equal deleted inserted replaced
-1:000000000000 0:08ec8eefde2f
       
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __CONSOLEPRINT_H__
       
    17 #define __CONSOLEPRINT_H__
       
    18 
       
    19 #include <e32base.h>
       
    20 #include <e32cons.h>
       
    21 
       
    22 const TUint32 KTimeToWait = 30000000;
       
    23 
       
    24 // class CConsolePrint - provide functions to do screen output.
       
    25 class CConsolePrint : public CBase
       
    26 	{
       
    27 public:
       
    28 	static CConsolePrint* NewL(TBool aWaitForAck);
       
    29 	virtual ~CConsolePrint();
       
    30     void Printf(TRefByValue<const TDesC> aFmt, ...);
       
    31 	void SetWaitMode(TBool aWaitForAck);
       
    32 
       
    33 private:	
       
    34 	CConsolePrint(TBool aWaitForAck);
       
    35 	void ConstructL();
       
    36 	void WaitForUserAck();
       
    37 
       
    38 private:
       
    39 	CConsoleBase* iConsole;
       
    40 	TBool iWaitForAck;
       
    41 	TBuf<256> iBuf;
       
    42 	};
       
    43 
       
    44 #endif // __CONSOLEPRINT_H__