servicediscoveryandcontrol/pnp/test/testplugin/inc/ctestpnpservicepublisherimpl.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 __CTESTPNPPSERVICEPUBLISHERIMPL_H__
       
    17 #define __CTESTPNPPSERVICEPUBLISHERIMPL_H__
       
    18 
       
    19 
       
    20 #include <pnp/cpnpservicepublisherbase.h>
       
    21 #include <pnp/mpnpobserver.h>
       
    22 
       
    23 //User includes
       
    24 #include "testpnpconstants.h"
       
    25 #include "testpnpparamset.h"
       
    26 
       
    27 
       
    28 /* Body of RPnPServicePublisher class and calls the SubmitRequest and NotifyResults
       
    29    of respective classes
       
    30  */
       
    31 class CTestPnPServicePublisherImpl :public CPnPServicePublisherBase 
       
    32 	{
       
    33 public:
       
    34 	static CTestPnPServicePublisherImpl* NewL();
       
    35 	~CTestPnPServicePublisherImpl ( );
       
    36 		
       
    37 private:
       
    38 	TInt Construct ( TUint aTierId );
       
    39 	void Publish ( const RPnPParameterBundle& aServiceInfo );
       
    40 	void SendNotify ( const RPnPParameterBundle& aServiceInfo );
       
    41 	CControlChannelBase* InitiateControlL ();
       
    42 
       
    43 
       
    44 private:
       
    45 	CTestPnPServicePublisherImpl ( );
       
    46 	void PublishL ( const RPnPParameterBundle& aServiceInfo );
       
    47 	void SendNotifyL ( const RPnPParameterBundle& aServiceInfo );
       
    48 
       
    49 	};
       
    50 
       
    51 #endif // __CTESTPNPPSERVICEPUBLISHERIMPL_H__