upnp/upnpstack/upnpconnectionmanagersession/src/upnpconnectionmanagernetworkevent.cpp
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 11 Jun 2010 14:30:51 +0300
changeset 12 78fbd574edf4
parent 0 f5a58ecadc66
permissions -rw-r--r--
Revision: 201022 Kit: 2010123

/** @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:  upnpconnectionmanager / client side
 *
*/

#include "upnpconnectionmanagernetworkevent.h"
#include "upnpconnmanagercommon.h"

// -----------------------------------------------------------------------------
// TUpnpConnectionManagerNetworkEvent::TUpnpConnectionManagerNetworkEvent
// C++ default constructor
// -----------------------------------------------------------------------------
//
EXPORT_C TUpnpConnectionManagerNetworkEvent::TUpnpConnectionManagerNetworkEvent() 
    : iType( EUnknownEvent )
    {
    }

// -----------------------------------------------------------------------------
// TUpnpConnectionManagerNetworkEvent::TUpnpConnectionManagerNetworkEvent
// C++ constructor
// -----------------------------------------------------------------------------
//    
EXPORT_C TUpnpConnectionManagerNetworkEvent::TUpnpConnectionManagerNetworkEvent( 
    TUpnpCmSubRsp aType )
    : iType( aType )
    {
    }

// -----------------------------------------------------------------------------
// TUpnpConnectionManagerNetworkEvent::TUpnpConnectionManagerNetworkEvent
// C++ constructor
// -----------------------------------------------------------------------------
//    
EXPORT_C TUpnpConnectionManagerNetworkEvent::TUpnpConnectionManagerNetworkEvent( 
    TUpnpCmSubRsp aType, TInetAddr aInetAddr )
    : iType( aType ), iInetAddr( aInetAddr )
    {
    }

// -----------------------------------------------------------------------------
// TUpnpConnectionManagerNetworkEvent::SetType
// -----------------------------------------------------------------------------
//    
EXPORT_C void TUpnpConnectionManagerNetworkEvent::SetType( TUpnpCmSubRsp aType )
    {
    iType = aType;
    }

// -----------------------------------------------------------------------------
// TUpnpConnectionManagerNetworkEvent::SetAddress
// -----------------------------------------------------------------------------
//    
EXPORT_C void TUpnpConnectionManagerNetworkEvent::SetAddress( TInetAddr aAddress )
    {
    iInetAddr = aAddress;	
    }

// -----------------------------------------------------------------------------
// TUpnpConnectionManagerNetworkEvent::Type
// -----------------------------------------------------------------------------
//    
EXPORT_C TUpnpCmSubRsp& TUpnpConnectionManagerNetworkEvent::Type()
    {
    return iType;
    }

// -----------------------------------------------------------------------------
// TUpnpConnectionManagerNetworkEvent::InetAddr
// -----------------------------------------------------------------------------
//   
EXPORT_C TInetAddr TUpnpConnectionManagerNetworkEvent::InetAddr()
    {
    return iInetAddr;
    }

// End of file