natplugins/natpnatfwsdpprovider/tsrc/testconsole/inc/nspresultcollector.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2008 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef NSPRESULTCOLLECTOR_H
       
    19 #define NSPRESULTCOLLECTOR_H
       
    20 
       
    21 #include <e32std.h>
       
    22 #include "nsptest.h"
       
    23 
       
    24 class CConsoleBase;
       
    25 
       
    26 /**
       
    27  * result collector implementation
       
    28  */
       
    29 class CResultCollector : public CBase, public MNSPTestVisitor
       
    30 	{
       
    31 public: // Methods
       
    32 	static CResultCollector* NewL( CConsoleBase& aConsole );
       
    33 	static CResultCollector* NewLC( CConsoleBase& aConsole );
       
    34 	virtual ~CResultCollector();
       
    35 	
       
    36 	// From MNSPTestVisitor
       
    37 	void VisitL( MNSPTest& aTest );
       
    38 	void VisitL( CNSPTest& aTest );
       
    39 	void VisitL( CNSPReleaseTest& aTest );
       
    40 
       
    41 private: // Methods
       
    42 	CResultCollector( CConsoleBase& aConsole );
       
    43 	void ConstructL();
       
    44 	void PrintResult( TResult& aResult );
       
    45 	
       
    46 private: // Data
       
    47 	CConsoleBase& iConsole;
       
    48 	};
       
    49 
       
    50 #endif // NSPRESULTCOLLECTOR_H