natfw/natfwstunturnclient/inc/cstunclientgetsharedsecret.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005 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 C_CSTUNCLIENTGETSHAREDSECRET_H
       
    22 #define C_CSTUNCLIENTGETSHAREDSECRET_H
       
    23 
       
    24 // INCLUDES
       
    25 #include <e32base.h>
       
    26 #include "cstunclientstate.h"
       
    27 
       
    28 // FORWARD DECLARATIONS
       
    29 
       
    30 // CLASS DECLARATION
       
    31 
       
    32 /**
       
    33  *  In this state, STUN client is obtaining a shared secret from the STUN
       
    34  *  server.
       
    35  */
       
    36 class CSTUNClientGetSharedSecret : public CSTUNClientState
       
    37     {
       
    38     public: // Constructors and destructor
       
    39 
       
    40         CSTUNClientGetSharedSecret( const CSTUNClientState& aReady );
       
    41 
       
    42         ~CSTUNClientGetSharedSecret();
       
    43 
       
    44     public: // From CSTUNClientState     
       
    45 
       
    46         void SharedSecretReceivedL( CSTUNClientImplementation& aContext ) const;
       
    47 
       
    48         void SharedSecretErrorL( CSTUNClientImplementation& aContext,
       
    49                                  TInt aError ) const;
       
    50 
       
    51         //ObtainSharedSecretL event should never be received in this state,
       
    52         //since bindings cannot be created before STUN client has initialized
       
    53         //itself, and reached Ready state.
       
    54 
       
    55     private:
       
    56 
       
    57         CSTUNClientGetSharedSecret();
       
    58 
       
    59         CSTUNClientGetSharedSecret(
       
    60             const CSTUNClientGetSharedSecret& aGetSharedSecret );
       
    61 
       
    62     private: // Data
       
    63 
       
    64         //Next possible states
       
    65         const CSTUNClientState& iReady;
       
    66     };
       
    67 
       
    68 #endif // C_CSTUNCLIENTGETSHAREDSECRET_H