ipappsrv_plat/nat_settings_api/inc/mnatfwturnsettings.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Wed, 13 Oct 2010 14:59:15 +0300
branchRCL_3
changeset 59 b0e4b01681c5
parent 0 1bce908db942
permissions -rw-r--r--
Revision: 201039 Kit: 201041

/*
* Copyright (c) 2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:    Interface for querying TURN related software settings.
*
*/





#ifndef M_MNATFWTURNSETTINGS_H
#define M_MNATFWTURNSETTINGS_H


#include <e32base.h>


class MNATFWServerSettings;


/**
 *  Interface for querying TURN related software settings.
 *  
 *  Interface is not intended for derivation outside NATFW.
 *  
 *  @lib natfwnatsettings.dll
 *  @since S60 v3.2
 */
class MNATFWTurnSettings
    {

public:

    /**
     * Returns array of TURN server related settings.
     * Ownership is not transferred.
     *
     * @since S60 3.2
     * @param aServers Array of server pointers
     */
    virtual void GetTurnServerArrayL(
        RPointerArray<MNATFWServerSettings>& aServers ) const = 0;
    
    /**
     * Returns initial retransmission timeout (RTO).
     *
     * @since   S60 v3.2
     * @return  Retransmission timeout
     */  
    virtual TUint RetransmissionTimeout() const = 0;
       
    /**
     * Returns latest successfully connected TURN server address.
     *
     * @since S60 3.2
     * @return Address
     */
    virtual const TDesC8& LatestConnectedServerAddr() const = 0;
    
    /**
     * Returns latest successfully connected TURN server port.
     *
     * @since S60 3.2
     * @return Port number
     */
    virtual TInt LatestConnectedServerPort() const = 0;

    };


#endif // M_MNATFWSTUNSETTINGS_H