natfw/natfwconnectionmultiplexer/tsrc/muxtestconsole/inc/muxtestconsole.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    Class definition for CTestAppConsole
       
    15 **
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 #ifndef __TESTAPPCONSOLE_H
       
    21 #define __TESTAPPCONSOLE_H
       
    22 
       
    23 #include <e32cons.h>
       
    24 #include "cncmconnectionmultiplexer.h"
       
    25 
       
    26 
       
    27 class CMuxTestConsoleStubs;
       
    28 class CMuxTestConsoleTcpStubs;
       
    29 class CMultiplexerUdpTests;
       
    30 
       
    31 
       
    32 class CTestAppConsole : public CActive
       
    33     {
       
    34 public:
       
    35 	static CTestAppConsole* NewLC();
       
    36     virtual ~CTestAppConsole();
       
    37 	
       
    38 	void StartTesting();
       
    39  	void DisplayMsg( const TDesC& aMsg );
       
    40 	
       
    41 private:
       
    42 	
       
    43     CTestAppConsole( );	
       
    44     void ConstructL(); 
       
    45 	
       
    46     void RunL();	
       
    47     void DoCancel();
       
    48 	
       
    49     void ProcessMainInput();
       
    50 
       
    51 	// create console menus
       
    52 	void DisplayConsoleMenuL( const TDesC& aInstructions );
       
    53 	TKeyCode GetStringFromConsole( TDes& aAddr );
       
    54 	
       
    55 	void DoRead();
       
    56 
       
    57 
       
    58 
       
    59     
       
    60 // Test functions
       
    61 private:
       
    62     
       
    63     // Starting point functions for testing
       
    64 
       
    65     TInt RunMuxUdpTests();
       
    66 
       
    67     TInt RunMuxTcpTests();
       
    68 
       
    69     // Test preamble function for creating the Mcc IF
       
    70     void MccInterfacePreambleUdpL();
       
    71     
       
    72     // Test preamble function for creating the Mcc IF
       
    73     void MccInterfacePreambleTcpL();
       
    74     
       
    75     // Test postamble function for destroying the Mcc IF
       
    76     void MccInterfacePostamble();
       
    77     
       
    78     
       
    79 
       
    80     void RunUdpAudioStreaming();
       
    81     
       
    82     void StopUdpAudioStreaming();
       
    83     
       
    84 private:
       
    85 
       
    86     CConsoleBase* iConsole; 
       
    87 	HBufC* iInstruct;
       
    88 	CNcmConnectionMultiplexer* iMux;
       
    89 	
       
    90 	CMuxTestConsoleStubs* iMuxStub;
       
    91 	
       
    92 	TBool iAudioTest;
       
    93 	CMultiplexerUdpTests* iIntTest;
       
    94     };
       
    95 
       
    96 
       
    97     
       
    98 #endif __TESTAPPCONSOLE_H