natfw/tsrc/natfwtestconsoles/natfwtestconsole/inc/icetests.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2006 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 
       
    19 
       
    20 
       
    21 #ifndef _ICETESTS_H_
       
    22 #define _ICETESTS_H_
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 #include <e32cons.h>
       
    27 
       
    28 #include "iceteststubsobserver.h"
       
    29 
       
    30 // FORWARD DECLARATIONS
       
    31 class CNATFWConnectivityApi;
       
    32 class CICETestStubs;
       
    33 class CNATFWCandidate;
       
    34 class CNATFWCandidatePair;
       
    35 
       
    36 
       
    37 // CLASS
       
    38 class CICETests : public CBase, public MICETestStubsObserver
       
    39     {
       
    40 public:
       
    41     static CICETests* NewL(
       
    42         CConsoleBase& aConsole,      
       
    43         CNATFWConnectivityApi& aNat,
       
    44         CICETestStubs& aIFStub,
       
    45         const TDesC8& aDomain,
       
    46         TUint aIapId,
       
    47         TUint32 aDestAddress,
       
    48         TUint aDestPort,
       
    49         TUint aProtocol  );
       
    50     
       
    51     virtual ~CICETests();
       
    52 
       
    53 // From MTestConsoleStubsObserver
       
    54     void LocalCandidateFound( CNATFWCandidate& aLocalCandidate );
       
    55 
       
    56 // From MICETestStubsObserver
       
    57     void NewCandidatePairFound( 
       
    58         CNATFWCandidatePair* aCandidatePair );
       
    59         
       
    60     void DoRunIceTestsL();
       
    61 
       
    62 private:
       
    63 
       
    64     void TestFetchCandidatesL();
       
    65 
       
    66     void TestSetOperationModeL();
       
    67     
       
    68     //void TestSetIdentificationL();
       
    69     
       
    70     //void TestPerformConnectivityChecksL();
       
    71     
       
    72     void PrintContents( CNATFWCandidate* aCandidate );
       
    73     
       
    74 private:
       
    75 
       
    76     CICETests(   CConsoleBase& aConsole,
       
    77                     CNATFWConnectivityApi& aNat,
       
    78                     CICETestStubs& aIFStub,
       
    79                     TUint aIapId,
       
    80                     TUint32 aDestAddress,
       
    81                     TUint aDestPort,
       
    82                     TUint aProtocol );
       
    83 
       
    84     void ConstructL( const TDesC8& aDomain );
       
    85 
       
    86     void PrintTestResult( TInt aError );
       
    87     
       
    88 private:
       
    89 
       
    90     CConsoleBase& iConsole;
       
    91     CNATFWConnectivityApi& iNat;
       
    92     CICETestStubs& iIfStub;
       
    93     TUint iTestIapId;
       
    94     HBufC8* iTestDomain;
       
    95     TUint32 iDestAddress;
       
    96     RPointerArray<CNATFWCandidate> iCandidateArray;
       
    97     CNATFWCandidatePair* iCandidatePair;
       
    98     TUint iDestPort;
       
    99     TUint iProtocol;
       
   100     };
       
   101     
       
   102 #endif //_ICETESTS_H_
       
   103 
       
   104 // End of File