applayerprotocols/httpexamples/httpexampleclient/httpexampleutils.h
changeset 0 b16258d2340f
equal deleted inserted replaced
-1:000000000000 0:b16258d2340f
       
     1 // Copyright (c) 2001-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 #include <e32test.h>
       
    17 
       
    18 const TInt KMaxUserEntrySize = 128;
       
    19 
       
    20 
       
    21 /** CHttpExampleUtils is a class that provides some user input utilities and holds a RTest used throughout
       
    22 */
       
    23 class CHttpExampleUtils : public CBase
       
    24 	{
       
    25 public:
       
    26 	static void InitCommsL();
       
    27 	static CHttpExampleUtils* NewL(const TDesC& aTestName);
       
    28 	~CHttpExampleUtils();
       
    29 	void GetAnEntry(const TDesC& ourPrompt, TDes& currentstring);
       
    30 	TInt GetSelection(const TDesC& ourPrompt, const TDesC& validChoices);
       
    31 	void PressAnyKey();
       
    32 	void LogIt(TRefByValue<const TDesC> aFmt, ...);	
       
    33 	RTest& Test();
       
    34 private:
       
    35 	CHttpExampleUtils(const TDesC& aTestName);
       
    36 
       
    37 private:
       
    38 	RTest iTest;
       
    39 	};