servicediscoveryandcontrol/pnp/test/testplugin/inc/ctestpnpservicediscoveryimpl.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 __CTESTPNPPSERVICEDISCOVERYIMPL_H__
       
    17 #define __CTESTPNPPSERVICEDISCOVERYIMPL_H__
       
    18 
       
    19 
       
    20 #include <pnp/cpnpservicediscoverybase.h>
       
    21 #include <pnp/mpnpobserver.h>
       
    22 
       
    23 //User includes
       
    24 #include "testpnpconstants.h"
       
    25 #include "testpnpparamset.h"
       
    26 
       
    27 
       
    28 /* Body of RPnPServiceDiscovery class and calls the SubmitRequest and NotifyResults
       
    29    of respective classes
       
    30  */
       
    31 class CTestPnPServiceDiscoveryImpl : public CPnPServiceDiscoveryBase
       
    32 	{
       
    33 public:
       
    34 	static CTestPnPServiceDiscoveryImpl* NewL();
       
    35 	~CTestPnPServiceDiscoveryImpl ();
       
    36 		
       
    37 private:
       
    38 	// From CPnPServiceDiscoveryBase
       
    39 	TInt Construct( TUint aTierId);
       
    40 	void Discover ( const RPnPParameterBundle& aServiceInfo );
       
    41 	void Describe ( const RPnPParameterBundle& aServiceInfo );
       
    42 	void Subscribe ( const RPnPParameterBundle& aServiceInfo );
       
    43 	void RegisterNotify ( const RPnPParameterBundle& aServiceInfo );
       
    44 	void Cancel ( const RPnPParameterBundle& aServiceInfo );
       
    45 	CControlChannelBase* InitiateControlL ( const TDesC8& aUri );
       
    46 
       
    47 private:
       
    48 	CTestPnPServiceDiscoveryImpl();
       
    49 	void DiscoverL ( const RPnPParameterBundle& aServiceInfo );
       
    50 	void RegisterNotifyL ( const RPnPParameterBundle& aServiceInfo );
       
    51 	void SubscribeL ( const RPnPParameterBundle& aServiceInfo );
       
    52 	void DescribeL ( const RPnPParameterBundle& aServiceInfo );		
       
    53 	
       
    54 	};
       
    55 
       
    56 #endif // __CTESTPNPPSERVICEDISCOVERYIMPL_H__