natfw/tsrc/natfwtestconsoles/natfwtestconsole/inc/natcomteststate.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:    Candidate store
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #ifndef NATCOMTESTSTATE_H
       
    22 #define NATCOMTESTSTATE_H
       
    23 
       
    24 #include <e32cmn.h>
       
    25 
       
    26 enum TNatComState
       
    27     {
       
    28     EEnd = 0,
       
    29     ECreateSession,
       
    30     ELoadPlugin,
       
    31     ECreateRtpStream,
       
    32     ECreateRtcpStream,
       
    33     EFetchRtpCandidates,
       
    34     EFetchRtcpCandidates,
       
    35     EFetchRtpCandidate,
       
    36     EFetchRtcpCandidate,
       
    37     EStoreLocalCandidates,
       
    38     ESetIdentification,  
       
    39     ESetOperationMode,
       
    40     EReadRemoteCandidates,
       
    41     EPause,
       
    42     EConnectivityChecks,
       
    43     ECreateRtpWrapper,
       
    44     ECreateRtcpWrapper,
       
    45     EPrepareMccLink,
       
    46     ESetOutgoingAddr,
       
    47     ESetWrapperIncomingAddr,
       
    48     ECreateMediaUpStream,
       
    49     ECreateMediaDownStream,
       
    50     EStartMediaUpStream,
       
    51     EStartMediaDownStream,
       
    52     ESetRtpSendingState,
       
    53     ESetRtpSendingStateIce,
       
    54     ESetRtpReceivingState,
       
    55     ESetRtcpSendingState,
       
    56     ESetRtcpSendingStateIce,
       
    57     ESetRtcpReceivingState,
       
    58     EPassiveRtpReceivingState,
       
    59     EPassiveRtpSendingState,
       
    60     EPassiveRtcpReceivingState,
       
    61     EPassiveRtcpSendingState,
       
    62     EPassiveRtpSendingStateIce,
       
    63     EPassiveRtcpSendingStateIce,
       
    64     ERunning,
       
    65     ETeardown,
       
    66     EError,
       
    67     EReady
       
    68     };
       
    69 
       
    70 class TNatComTestState
       
    71     {
       
    72 public:
       
    73     TNatComTestState();
       
    74 
       
    75     void SetSequence( const RArray<TNatComState> aStateSequence );
       
    76     
       
    77     TNatComState Next();
       
    78     
       
    79     TNatComState Current();
       
    80     
       
    81     ~TNatComTestState();
       
    82     
       
    83     void SetTestType( TInt aTestType );
       
    84     
       
    85     TInt TestType();
       
    86     
       
    87 private:
       
    88     TInt iCurrentIndex;
       
    89     RArray<TNatComState> iStateSequence;
       
    90     TInt iComTestType;
       
    91     };
       
    92     
       
    93 #endif