natfw/natfwstunturnclient/src/cstunclientgetsharedsecret.cpp
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 #include "cstunclientimplementation.h"
       
    22 #include "cstunclientgetsharedsecret.h"
       
    23 
       
    24 
       
    25 // ======== MEMBER FUNCTIONS ========
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // CSTUNClientGetSharedSecret::CSTUNClientGetSharedSecret
       
    29 // ---------------------------------------------------------------------------
       
    30 //
       
    31 CSTUNClientGetSharedSecret::CSTUNClientGetSharedSecret(
       
    32     const CSTUNClientState& aReady ) :
       
    33     iReady( aReady )
       
    34     {
       
    35     }
       
    36 
       
    37 // ---------------------------------------------------------------------------
       
    38 // CSTUNClientGetSharedSecret::CSTUNClientGetSharedSecret
       
    39 // Dummy implementation. Default constructor is declared private and not used.
       
    40 // ---------------------------------------------------------------------------
       
    41 //
       
    42 CSTUNClientGetSharedSecret::CSTUNClientGetSharedSecret() :
       
    43     iReady( *( CSTUNClientState* )0x1 )
       
    44     {    
       
    45     }
       
    46 
       
    47 // ---------------------------------------------------------------------------
       
    48 // CSTUNClientGetSharedSecret::CSTUNClientGetSharedSecret
       
    49 // Dummy implementation, as copy constructor is declared private and not used.
       
    50 // ---------------------------------------------------------------------------
       
    51 //
       
    52 CSTUNClientGetSharedSecret::CSTUNClientGetSharedSecret(
       
    53     const CSTUNClientGetSharedSecret& aGetSharedSecret ) :    
       
    54     CSTUNClientState(),  
       
    55     iReady( aGetSharedSecret.iReady )
       
    56     {    
       
    57     }
       
    58 
       
    59 // ---------------------------------------------------------------------------
       
    60 // CSTUNClientGetSharedSecret::~CSTUNClientGetSharedSecret
       
    61 // ---------------------------------------------------------------------------
       
    62 //
       
    63 CSTUNClientGetSharedSecret::~CSTUNClientGetSharedSecret()
       
    64     {    
       
    65     }
       
    66 
       
    67 // ---------------------------------------------------------------------------
       
    68 // CSTUNClientGetSharedSecret::SharedSecretReceivedL
       
    69 // ---------------------------------------------------------------------------
       
    70 //
       
    71 void CSTUNClientGetSharedSecret::SharedSecretReceivedL(
       
    72     CSTUNClientImplementation& aContext ) const
       
    73     {    
       
    74     aContext.StartSharedSecretTimer();
       
    75     aContext.PassInitCompletedL( KErrNone );
       
    76     aContext.ChangeState( &iReady );
       
    77     }
       
    78 
       
    79 // ---------------------------------------------------------------------------
       
    80 // CSTUNClientGetSharedSecret::SharedSecretErrorL
       
    81 // ---------------------------------------------------------------------------
       
    82 //
       
    83 void CSTUNClientGetSharedSecret::SharedSecretErrorL(
       
    84     CSTUNClientImplementation& aContext,
       
    85     TInt aError ) const
       
    86      {
       
    87      aContext.HandleSharedSecretErrorL( aError );
       
    88      }
       
    89