0
|
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 the License "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 |
@test
|
|
20 |
@internalComponent
|
|
21 |
|
|
22 |
This contains CT_RawDiskData
|
|
23 |
*/
|
|
24 |
|
|
25 |
#if (!defined __T_RAWDISK_DATA_H__)
|
|
26 |
#define __T_RAWDISK_DATA_H__
|
|
27 |
|
|
28 |
// User Includes
|
|
29 |
#include "DataWrapperBase.h"
|
|
30 |
#include "T_FsData.h"
|
|
31 |
|
|
32 |
// EPOC includes
|
|
33 |
#include <f32file.h>
|
|
34 |
|
|
35 |
class CT_RawDiskData : public CDataWrapperBase
|
|
36 |
{
|
|
37 |
public:
|
|
38 |
static CT_RawDiskData* NewL();
|
|
39 |
~CT_RawDiskData();
|
|
40 |
|
|
41 |
virtual TAny* GetObject();
|
|
42 |
virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
|
|
43 |
|
|
44 |
|
|
45 |
protected:
|
|
46 |
CT_RawDiskData();
|
|
47 |
void ConstructL();
|
|
48 |
|
|
49 |
private:
|
|
50 |
// Commands
|
|
51 |
void DoCmdNewL();
|
|
52 |
void DoCmdOpen(const TDesC& aSection);
|
|
53 |
void DoCmdClose();
|
|
54 |
void DoCmdReadL(const TDesC& aSection);
|
|
55 |
void DoCmdWriteL(const TDesC& aSection);
|
|
56 |
void DoCmdDestructor();
|
|
57 |
|
|
58 |
|
|
59 |
// Helpers
|
|
60 |
inline void DoCleanup();
|
|
61 |
TBool GetDriveNumber(const TDesC& aSection, const TDesC& aParameterName, TDriveNumber& aDriveNumber);
|
|
62 |
|
|
63 |
private:
|
|
64 |
|
|
65 |
/** Instance for handling to resource file */
|
|
66 |
RRawDisk* iRawDisk;
|
|
67 |
|
|
68 |
};
|
|
69 |
|
|
70 |
#endif /* __T_RAWDISK_DATA_H__ */
|