servicediscoveryandcontrol/pnp/test/upnp/Server/ServicePoint/inc/upnpspsubscribeinfo.inl
changeset 0 f5a58ecadc66
equal deleted inserted replaced
-1:000000000000 0:f5a58ecadc66
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifndef __UPNPSPSUBSCRIBEINFO_INL_
       
    17 #define __UPNPSPSUBSCRIBEINFO_INL_
       
    18 
       
    19 
       
    20 CUPnPSubscribeInfoElement* CUPnPSubscribeInfoElement::NewL ( )
       
    21 	{
       
    22 	return new ( ELeave ) CUPnPSubscribeInfoElement ( );
       
    23 	}
       
    24 
       
    25 CUPnPSubscribeInfoElement::~CUPnPSubscribeInfoElement ( )
       
    26 	{
       
    27 	iSubscriptionIdentifier.Close ( );
       
    28 	iCallBackUrl.Close ( );		
       
    29 	}
       
    30 
       
    31 void CUPnPSubscribeInfoElement::SetSubscriptionIdentifierL ( const TDesC8& aSubscriptionIdentifier )
       
    32 	{
       
    33 	iSubscriptionIdentifier.Close ( );
       
    34 	iSubscriptionIdentifier.CreateL ( aSubscriptionIdentifier );
       
    35 	}
       
    36 	
       
    37 void CUPnPSubscribeInfoElement::SetCallBackUrlL ( const TDesC8& aCallBackUrl )
       
    38 	{
       
    39 	iCallBackUrl.Close ( );
       
    40 	iCallBackUrl.CreateL ( aCallBackUrl );
       
    41 	}
       
    42 	
       
    43 const TDesC8& CUPnPSubscribeInfoElement::CallBackUrl ( )
       
    44 	{
       
    45 	return iCallBackUrl;
       
    46 	}
       
    47 	
       
    48 void CUPnPSubscribeInfoElement::SetRemoteAddr ( TAppProtAddr aRemoteAddr )
       
    49 	{
       
    50 	iRemoteAddr = aRemoteAddr;
       
    51 	}
       
    52 	
       
    53 void CUPnPSubscribeInfoElement::SetEventKey ( TInt aEventKey )
       
    54 	{
       
    55 	iEventKey = aEventKey;
       
    56 	}
       
    57 	
       
    58 void CUPnPSubscribeInfoElement::SetSubscriptionDuration ( TInt aSubscriptionDuration )
       
    59 	{
       
    60 	iSubscriptionDuration = aSubscriptionDuration;
       
    61 	}
       
    62 
       
    63 void CUPnPSubscribeInfoElement::SetFlowId ( TNodeId aFlowId )
       
    64 	{
       
    65 	iFlowId = aFlowId;
       
    66 	}
       
    67 
       
    68 const TDesC8& CUPnPSubscribeInfoElement::SubscriptionIdentifier ( ) const 
       
    69 	{
       
    70 	return iSubscriptionIdentifier;
       
    71 	}
       
    72 	
       
    73 TAppProtAddr CUPnPSubscribeInfoElement::RemoteAddr ( ) const 
       
    74 	{
       
    75 	return iRemoteAddr;
       
    76 	}
       
    77 	
       
    78 TInt CUPnPSubscribeInfoElement::EventKey ( ) const 
       
    79 	{
       
    80 	return iEventKey;
       
    81 	}
       
    82 	
       
    83 TInt CUPnPSubscribeInfoElement::SubscriptionDuration ( ) const 
       
    84 	{
       
    85 	return iSubscriptionDuration;
       
    86 	}
       
    87 	
       
    88 TNodeId CUPnPSubscribeInfoElement::FlowId ( )
       
    89 	{
       
    90 	return iFlowId;
       
    91 	}
       
    92 
       
    93 
       
    94 #endif /*UPNPSPSUBSCRIBEINFO_INL_*/