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