upnpavcontrolpoint/avcpengine/inc/upnpdevicelistcommand.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 04 Oct 2010 00:34:14 +0300
changeset 35 f37b1259bd7b
parent 0 7f85d04be362
permissions -rw-r--r--
Revision: 201037 Kit: 201039

/** @file
* Copyright (c) 2005-2006 Nokia Corporation and/or its subsidiary(-ies). 
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies  this distribution, and is available 
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Class responsbile for MS device list
*
*/


#ifndef C_CUPNPDEVICELISTCOMMAND_H
#define C_CUPNPDEVICELISTCOMMAND_H

//  INCLUDES
#include "upnpcommand.h"

// CLASS DECLARATION
/**
* Class responsible for getting list of active MSs.
*
*  @since Series 60 3.1
*/
class CUpnpDeviceListCommand : public CUpnpCommand
	{
	public:	
		/**
		* Two-phased constructor.
		*
		* @param aAVCPManager manager
		* @param aSession server-side session
		* @param aMessage message
		*/		
		static CUpnpDeviceListCommand* NewL(CUpnpAVCPManager& aAVCPManager, 
	  	CUpnpAVCPEngineSession& aSession, const RMessage2& aMessage);
		/**
		* Destructor.
		*/		       
		virtual ~CUpnpDeviceListCommand();	       
		
	public:	// Method from CUpnpCommand	
		/**
		* From CUpnpCommand perfroms operation connected with command
		* @since Series 60 3.1
		*/							
		void ExecuteL();
		/**
		* From CUpnpCommand set result from previous performed command.
		* It sets result from directory listing.
		* @since Series 60 3.1
		*/	
		void SetResultL(const RMessage2& aMessage);	

	private:
		/**
		* C++ default constructor.
		*/
		CUpnpDeviceListCommand(CUpnpAVCPManager& aAVCPManager, 
			CUpnpAVCPEngineSession& aSession, const RMessage2& aMessage);
		/**
		* Symbian 2nd phase constructor.
		*/			
		void ConstructL();
	
	private:
		// size of array with devices
		TInt iDeviceCount;	
		// array of devices
		TAVDevice* iDevices;
		
};

#endif //C_CUPNPDEVICELISTCOMMAND_H