Update contrib.
2 * Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
19 #if (!defined __T_MMCSD_DRIVER_DATA_H__)
20 #define __T_MMCSD_DRIVER_DATA_H__
24 #include "T_RBusLogicalChannelData.h"
25 #include "d_mmcsdif.h"
26 #include "ActiveCallbackWrap.h"
29 * Test Active Notification class
34 class CT_MmcSDDriverData : public CDataWrapperBase
40 ~CT_MmcSDDriverData();
42 virtual TAny* GetObject();
43 virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
47 * Protected constructor. First phase construction
52 void DoCmdConstructorL(const TDesC& aSection);
53 void DoCmdDestructor();
55 TInt GetExpectedAsyncError(const TDesC& aSection);
56 void DoCmdReadSectorL(const TDesC& aSection, TInt aAsyncErrorIndex);
57 void DoCmdWriteSectorL(const TDesC& aSection, TInt aAsyncErrorIndex);
59 void DoCmdReadExtCSD();
60 void DoCmdReadCSDL(const TDesC& aSection, TInt aAsyncErrorIndex);
61 void DoCmdReadExtCSDL(const TDesC& aSection, TInt aAsyncErrorIndex);
62 void DoCmdCardInfo(const TDesC& aSection);
63 void DoCmdCardIsPresent(const TDesC& aSection);
64 void DoCmdCardIsReady(const TDesC& aSection);
65 void DoCmdCardIsLocked(const TDesC& aSection);
66 void PrintCSD(const TCSDInfo& aCSDInfo);
67 void PrintExtendedCSD(const TExtendedCSDInfo& aExtendedCSDInfo);
71 void RunL(CActive* aActive, TInt aIndex);
72 void DoCancel(CActive* aActive);
73 CActiveCallbackWrap* CreateActiveCallbackL(TInt aFunctionId, TInt aExpectedAsyncError);
74 void DeleteActiveCallback(CActiveCallback* activeCallbackWrap);
77 RMMCSDTestControllerInterface* iMmcSDController;
78 RPointerArray<CActiveCallbackWrap> iActiveCallbacks;
82 TInt iAsyncErrorIndex;
86 #endif /* __T_MMCSD_DRIVER_DATA_H__ */