natfw/natfwturnplugin/inc/cnatfwturnserversettings.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 21 Jun 2010 16:05:57 +0300
branchRCL_3
changeset 33 f40c1a748eb9
parent 0 1bce908db942
permissions -rw-r--r--
Revision: 201023 Kit: 2010125

/*
* 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:    Stores server related data for plug-in's internal use
*
*/




#ifndef CNATFWTURNSERVERSETTINGS_H
#define CNATFWTURNSERVERSETTINGS_H

#include <e32base.h>

/**
 *  Encapsulates server related data.
 *
 *  @lib  turnplugin.dll
 *  @since S60 v3.2
 */
class CTurnServerSettings : public CBase
    {
    
public:

    /**
     * Two-phased constructor.
     */
    static CTurnServerSettings* NewL();

    /**
     * Two-phased constructor.
     */
    static CTurnServerSettings* NewLC();
    
    virtual ~CTurnServerSettings();

public:

    /**
     * Set address
     *
     * @since S60 v3.2
     * @param aAddress Address to set
     */
     void SetAddressL( const TDesC8& aAddress );
     
    /**
     * Return address
     *
     * @since S60 v3.2
     * @return Address
     */
     const TDesC8& Address() const;

    /**
     * Set port
     *
     * @since S60 v3.2
     * @param aPort Port to set
     */
     void SetPort( TUint aPort );
     
    /**
     * Return port
     *
     * @since S60 v3.2
     * @return Port
     */
     TUint Port() const;
          
    /**
     * Set the username
     *
     * @since S60 v3.2
     * @param aUsername Username to set
     */
     void SetUsernameL( const TDesC8& aUsername );
     
    /**
     * Return username
     *
     * @since S60 v3.2
     * @return Username
     */
     const HBufC8* Username() const;
     
    /**
     * Set the password
     *
     * @since S60 v3.2
     * @param aPassword Password to set
     */
     void SetPasswordL( const TDesC8& aPassword );
     
    /**
     * Return password
     *
     * @since S60 v3.2
     * @return Password
     */
     const HBufC8* Password() const;

private:

    CTurnServerSettings();


private:

    /*
     * Address.
     * Own.
     */
    HBufC8* iAddress;

    /*
     * Port
     */
    TUint iPort;
        
    /*
     * Username.
     * Own.
     */
    HBufC8* iUsername;
    
    /*
     * Password.
     * Own.
     */
    HBufC8* iPassword;
    };

#endif // CNATFWSTUNSERVERSETTINGS_H