natfw/natfwstunturnclient/inc/cstunclientresolvingtls.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:    state class to resolve tls address
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef C_CSTUNCLIENTRESOLVINGTLS_H
       
    23 #define C_CSTUNCLIENTRESOLVINGTLS_H
       
    24 
       
    25 #include "cstunclientstate.h"
       
    26 
       
    27 /**
       
    28  *  State class for dns resolver
       
    29  *  In this state, STUN client waits to receive the resolved TLS addresses of
       
    30  *  the STUN server. Addresses are stored to iTcpAddresses -array.
       
    31  *
       
    32  *  @lib   natfwstunclient.lib
       
    33  *  @since S60 v3.2
       
    34  */
       
    35 
       
    36 class CSTUNClientResolvingTLS : public CSTUNClientState
       
    37     {
       
    38     
       
    39 public:
       
    40 
       
    41     CSTUNClientResolvingTLS( const CSTUNClientState& aResolvingUDP );
       
    42 
       
    43     /**
       
    44      * Destructor.
       
    45      */
       
    46     ~CSTUNClientResolvingTLS();
       
    47 
       
    48 public: // From CSTUNClientState     
       
    49     
       
    50     /**
       
    51      * From CSTUNClientState
       
    52      * Resolving server address has succeeded.
       
    53      *
       
    54      * @since   S60 v3.2
       
    55      * @param   aContext reference to calling implementation
       
    56      * @param   aObtainSharedSecret indicates whether shared secret is used
       
    57      * @return  void
       
    58      */
       
    59     void ResolvingCompletedL( CSTUNClientImplementation& aContext,
       
    60                               TBool aObtainSharedSecret ) const;
       
    61     
       
    62     /**
       
    63      * From CSTUNClientState
       
    64      * Resolving server address has failed.
       
    65      *
       
    66      * @since   S60 v3.2
       
    67      * @param   aContext reference to calling implementation
       
    68      * @param   aError The reason for the failure
       
    69      * @return  void
       
    70      */
       
    71     void ResolvingFailed( CSTUNClientImplementation& aContext,
       
    72                           TInt aError ) const;
       
    73 
       
    74 private:
       
    75 
       
    76     CSTUNClientResolvingTLS();
       
    77 
       
    78 private: // data
       
    79 
       
    80     /**
       
    81      * Next possible state
       
    82      * not own.
       
    83      */
       
    84     const CSTUNClientState& iResolvingUDP;
       
    85     };
       
    86 
       
    87 #endif // C_CSTUNCLIENTRESOLVINGTLS_H