natfw/natfwstunturnclient/src/cstunbindingactive.cpp
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2005-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:    
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 #include "cstunbindingactive.h"
       
    22 #include "natfwbindingimplementationbase.h"
       
    23 
       
    24 // ======== MEMBER FUNCTIONS ========
       
    25 
       
    26 // ---------------------------------------------------------------------------
       
    27 // CSTUNBindingActive::CSTUNBindingActive
       
    28 // ---------------------------------------------------------------------------
       
    29 //
       
    30 CSTUNBindingActive::CSTUNBindingActive(
       
    31     CSTUNBindingState& aGetSharedSecret ) :
       
    32     iGetSharedSecret( aGetSharedSecret )
       
    33     {
       
    34     }
       
    35 
       
    36 // ---------------------------------------------------------------------------
       
    37 // CSTUNBindingActive::CSTUNBindingActive
       
    38 // Dummy implementation. Default constructor is declared private and not used.
       
    39 // ---------------------------------------------------------------------------
       
    40 //
       
    41 CSTUNBindingActive::CSTUNBindingActive() :
       
    42     iGetSharedSecret( *( CSTUNBindingState* )0x1 )
       
    43     {
       
    44     }
       
    45 
       
    46 // ---------------------------------------------------------------------------
       
    47 // CSTUNBindingActive::CSTUNBindingActive
       
    48 // Dummy implementation, as copy constructor is declared private and not used.
       
    49 // ---------------------------------------------------------------------------
       
    50 //
       
    51 CSTUNBindingActive::CSTUNBindingActive(
       
    52     const CSTUNBindingActive& aBindingActive ) :    
       
    53     CSTUNBindingState(),
       
    54     iGetSharedSecret( aBindingActive.iGetSharedSecret )
       
    55     {    
       
    56     }
       
    57 
       
    58 // ---------------------------------------------------------------------------
       
    59 // CSTUNBindingActive::~CSTUNBindingActive
       
    60 // ---------------------------------------------------------------------------
       
    61 //
       
    62 CSTUNBindingActive::~CSTUNBindingActive()
       
    63     {    
       
    64     }
       
    65 
       
    66 // ---------------------------------------------------------------------------
       
    67 // CSTUNBindingActive::SendRequestL
       
    68 // The existing public address is not cleared, as application may ask for it
       
    69 // also during refresh.
       
    70 // ---------------------------------------------------------------------------
       
    71 //
       
    72 void
       
    73 CSTUNBindingActive::SendRequestL( CBindingImplementation& aContext ) const
       
    74     {
       
    75     aContext.ChangeState( iGetSharedSecret );
       
    76     aContext.GetSharedSecretL();
       
    77     }
       
    78