servicediscoveryandcontrol/pnp/test/upnp/Server/ServicePoint/inc/upnpspsubscribeinfo.h
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_H_
       
    17 #define __UPNPSPSUBSCRIBEINFO_H_
       
    18 
       
    19 #include <appprotintf/app_protintf_msgs.h>
       
    20 
       
    21 using namespace Messages;
       
    22 
       
    23 class CUPnPSubscribeInfoElement : public CBase
       
    24 	{
       
    25 	private:
       
    26 	RBuf8 			iSubscriptionIdentifier;
       
    27 	RBuf8			iCallBackUrl;
       
    28 	TAppProtAddr	iRemoteAddr;
       
    29 	TInt			iEventKey;
       
    30 	TInt			iSubscriptionDuration;
       
    31 	TNodeId	iFlowId;
       
    32 
       
    33 	public:
       
    34 
       
    35 	// Internal APIs
       
    36 	inline static CUPnPSubscribeInfoElement* NewL ( );
       
    37 	// D'tor
       
    38 	inline ~CUPnPSubscribeInfoElement ( );
       
    39 	
       
    40 	// Get and set methods
       
    41 	inline void SetSubscriptionIdentifierL ( const TDesC8& aSubscriptionIdentifier );
       
    42 	inline void SetCallBackUrlL ( const TDesC8& aCallBackUrl );
       
    43 	inline void SetRemoteAddr ( TAppProtAddr aRemoteAddr );
       
    44 	inline void SetEventKey ( TInt aEventKey );
       
    45 	inline void SetSubscriptionDuration ( TInt aSubscriptionDuration );
       
    46 	inline void SetFlowId ( TNodeId aFlowId );
       
    47 	
       
    48 	inline const TDesC8& SubscriptionIdentifier ( ) const;	
       
    49 	inline const TDesC8& CallBackUrl ( );	
       
    50 	inline TAppProtAddr RemoteAddr ( ) const;
       
    51 	inline TInt EventKey ( ) const;
       
    52 	inline TInt SubscriptionDuration ( ) const;
       
    53 	inline TNodeId FlowId ( );	
       
    54 	};
       
    55 
       
    56 #include "upnpspsubscribeinfo.inl"
       
    57 
       
    58 #endif /*UPNPSPSUBSCRIBEINFO_H_*/