os/boardsupport/haitest/bspsvs/suite/bsp/mmc/inc/T_MmcSDSessionData.h
author sl@SLION-WIN7.fritz.box
Fri, 15 Jun 2012 03:10:57 +0200
changeset 0 bde4ae8d615e
permissions -rw-r--r--
First public contribution.
     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_MMCSD_SESSION_DATA_H__)
    20 #define __T_MMCSD_SESSION_DATA_H__
    21 
    22 
    23 //	User Includes
    24 #include "T_RBusLogicalChannelData.h"
    25 #include "d_mmcsdif.h"
    26 
    27 /**
    28  * Test Active Notification class
    29  *
    30  */
    31 
    32 
    33 class CT_MmcSDSessionData : public CT_RBusLogicalChannelData
    34 	{
    35 public:
    36 	/**
    37 	* Public destructor
    38 	*/
    39 	~CT_MmcSDSessionData();
    40 	
    41 	/**
    42 	* Two phase constructor
    43 	*
    44 	* @leave	system wide error
    45 	*/
    46 	static	CT_MmcSDSessionData*	NewL();
    47 
    48 	virtual TAny*	GetObject();
    49 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
    50 
    51 protected:
    52 	/**
    53 	* Protected constructor. First phase construction
    54 	*/
    55 	CT_MmcSDSessionData();
    56 	void	ConstructL();
    57 
    58 	//	CT_RHandleBaseData implementation
    59 	virtual RHandleBase*		GetHandleBase();
    60 
    61 	//	CT_RBusLogicalChannelData implementation
    62 	virtual RBusLogicalChannel*	GetBusLogicalChannel();
    63 
    64 	void	DoCmdConstructor();
    65 	void	DoCmdLoadDriver(const TDesC& aSection);
    66 	void	DoCmdDriverOpen(const TDesC& aSection);
    67 	void	DoCmdUnLoadDriver(const TDesC& aSection);
    68 	void	DoCmdDestructor();
    69 
    70 private:
    71 	void	DestroyData();
    72 
    73 protected:
    74 	RMMCSDTestControllerInterface*	iMmcSDController;
    75 
    76 private:
    77 	};
    78 
    79 #endif /* __T_MMCSD_SESSION_DATA_H__ */