servicediscoveryandcontrol/pnp/test/upnp/Client/pnp/inc/pnpparameterbundle.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 __PNPPARAMETERBUNDLE_H__
       
    17 #define __PNPPARAMETERBUNDLE_H__
       
    18 
       
    19 #include <es_sock.h>
       
    20 #include <upnpparamset.h>
       
    21 #include <comms-infras/es_parameterfamily.h>
       
    22 class MPnPObserver;
       
    23 
       
    24 
       
    25 /**
       
    26 Parameter bundle class contains a bundle of RParameterFamiles and a pointer to callback.
       
    27 Callback pointer should be set if calling client is expecting to recieve any response.
       
    28 @publishedPartner
       
    29 @prototype
       
    30 */ 
       
    31  class RPnPParameterBundleBase : public RParameterFamilyBundle
       
    32 	 {
       
    33  public:
       
    34 	 
       
    35 	 IMPORT_C TInt Open();	 
       
    36 	 IMPORT_C void Close();
       
    37 	 };
       
    38  /*
       
    39  @publishedPartner
       
    40 @prototype
       
    41  */ 
       
    42 
       
    43 class RPnPParameterBundle : public RPnPParameterBundleBase
       
    44 	{
       
    45 public:
       
    46  	
       
    47  	/* Set function for MPnPObserver callback */	
       
    48  	IMPORT_C void SetPnPObserver( MPnPObserver* aPnPObserver );
       
    49  	/* Get function for MPnPObserver callback */
       
    50  	IMPORT_C MPnPObserver * PnPObserver( ) const; 	
       
    51  	
       
    52 private :
       
    53  	
       
    54  	/* Pointer to callback */
       
    55  	MPnPObserver * iPnPObserver;
       
    56  
       
    57  	};
       
    58 #endif //__PNPPARAMETERBUNDLE_H__