Update contrib.
     1 // Copyright (c) 2002-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".
 
     8 // Initial Contributors:
 
     9 // Nokia Corporation - initial contribution.
 
    16 #include "ServerConsole.h"
 
    21  * Static constructor for CServerConsole.
 
    23  * @param	"const TDesC& aName"
 
    24  *			Display name for console
 
    26  * @return	"CServerConsole*"
 
    27  *			The constructed CServerConsole
 
    32 CServerConsole* CServerConsole::NewL(const TDesC& aName)
 
    34 	CServerConsole* s = new(ELeave) CServerConsole;
 
    35 	CleanupStack::PushL(s);
 
    43  * Destructor for CServerConsole.
 
    44  * Destroys display console and its reader
 
    49 CServerConsole::~CServerConsole()
 
    58  * First-phase constructor for CServerConsole.
 
    59  * Adds itself to the Active Scheduler.
 
    64 CServerConsole::CServerConsole()
 
    70  * Second-phase constructor for CServerConsole.
 
    71  * Creates the display console and its reader.
 
    73  * @param	"const TDesC& aName"
 
    74  *			Display name of console.
 
    79 void CServerConsole::ConstructL(const TDesC& aName)
 
    81 	iWindowName = aName.AllocL();
 
    82 	iConsole =  Console::NewL(*iWindowName, TSize(KConsFullScreen,KConsFullScreen));
 
    87  * Accessor for base console.
 
    89  * @return	"CConsoleBase*"
 
    95 CConsoleBase* CServerConsole::Console() const
 
   102  * Sets and shows displayable instructions.
 
   104  * @param	"const TDesC& aInstructions"
 
   105  *			Displayable instruction string.
 
   110 void CServerConsole::SetInstructionsL(const TDesC& aInstructions)
 
   114 		delete iInstructions;
 
   115 		iInstructions = NULL;
 
   117 	iInstructions = aInstructions.AllocL();
 
   118 	iConsole->ClearScreen();
 
   119 	iConsole->Write(*iInstructions);