upnp/upnpstack_plat/upnp_common_api/inc/upnpconnectionmanagernetworkevent.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 02 Feb 2010 01:12:20 +0200
changeset 0 f5a58ecadc66
permissions -rw-r--r--
Revision: 201003

/** @file
* Copyright (c) 2008 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: TUpnpConnectionManagerNetworkEvent
*
*/

#ifndef T_UPNPCONNECTIONMANAGERNETWORKEVENT_H
#define T_UPNPCONNECTIONMANAGERNETWORKEVENT_H

// INCLUDE FILES
#include <e32cmn.h>
#include <in_sock.h>
#include "upnpconnmanagereventtypes.h"

/**
 * This class describes network event sent by ipc
 * @since S60 5.0
 */
class TUpnpConnectionManagerNetworkEvent
    {
public:
    
    /**
     * C++ constructor
     */
    IMPORT_C TUpnpConnectionManagerNetworkEvent();

    /**
     * C++ constructor
     */
    IMPORT_C TUpnpConnectionManagerNetworkEvent( TUpnpCmSubRsp aType );

    /**
     * C++ constructor
     */
    IMPORT_C TUpnpConnectionManagerNetworkEvent( TUpnpCmSubRsp aType, 
                                                 TInetAddr aInetAddr );

    /**
     * Sets event type
     */
    IMPORT_C void SetType( TUpnpCmSubRsp aType );

    /**
     * Sets address after address change event
     */  
    IMPORT_C void SetAddress( TInetAddr aAddress );
    
    /**
     * Get event type
     */  
    IMPORT_C TUpnpCmSubRsp& Type();

    /**
     * Get address
     */  
    IMPORT_C TInetAddr InetAddr();

private:
    
    // event type    
    TUpnpCmSubRsp iType;

    // address
    TInetAddr iInetAddr;
    };

#endif // T_UPNPCONNECTIONMANAGERNETWORKEVENT_H

// End of File