os/boardsupport/haitest/bspsvs/suite/bsp/mmc/inc/T_MmcSDMediaChangeDriverData.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 /*
     2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies). 
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     9 * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    11 *
    12 * Contributors:
    13 *
    14 * Description:
    15 *
    16 */
    17 
    18 
    19 #if (!defined __T_MMCSDMEDIACHANGE_DRIVER_DATA_H__)
    20 #define __T_MMCSDMEDIACHANGE_DRIVER_DATA_H__
    21 
    22 
    23 //	User Includes
    24 #include "T_MmcSDDriverData.h"
    25 
    26 /**
    27  * Test Active Notification class
    28  *
    29  */
    30 class CT_MMCSDMediaChangeDriverData : public CT_MmcSDDriverData
    31 	{
    32 public:
    33 	/**
    34 	* Public destructor
    35 	*/
    36 	~CT_MMCSDMediaChangeDriverData();
    37 
    38 	/**
    39 	* Two phase constructor
    40 	*
    41 	* @leave	system wide error
    42 	*/
    43 	static	CT_MMCSDMediaChangeDriverData*	NewL();
    44 
    45 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
    46 
    47 protected:
    48 	/**
    49 	* Protected constructor. First phase construction
    50 	*/
    51 	CT_MMCSDMediaChangeDriverData();
    52 	void	ConstructL();
    53 
    54 	void	DoCmdMediaState(const TDesC& aSection);
    55 	void	DoCmdForceMediaChange();
    56 	void	DoCmdReplayCount(const TDesC& aSection);
    57 
    58 private:
    59 	static const TEnumEntryTable	iEnumMediaState[];
    60 	TInt							iAsyncErrorIndex;
    61 	CConsoleBase* 					iCons;
    62 	};
    63 
    64 #endif /* __T_MMCSDMEDIACHANGE_DRIVER_DATA_H__ */
    65