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 |
#ifndef __T_OPEN_FILE_SCAN_DATA_H__
|
|
20 |
#define __T_OPEN_FILE_SCAN_DATA_H__
|
|
21 |
|
|
22 |
// User Includes
|
|
23 |
#include "DataWrapperBase.h"
|
|
24 |
#include "T_FsData.h"
|
|
25 |
|
|
26 |
// EPOC includes
|
|
27 |
#include <f32file.h>
|
|
28 |
#include <e32std.h>
|
|
29 |
#include <f32fsys.h>
|
|
30 |
|
|
31 |
class CT_OpenFileScanData: public CDataWrapperBase
|
|
32 |
{
|
|
33 |
public:
|
|
34 |
static CT_OpenFileScanData* NewL();
|
|
35 |
~CT_OpenFileScanData();
|
|
36 |
|
|
37 |
virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt /*aAsyncErrorIndex*/);
|
|
38 |
virtual TAny* GetObject();
|
|
39 |
|
|
40 |
protected:
|
|
41 |
CT_OpenFileScanData();
|
|
42 |
void ConstructL();
|
|
43 |
|
|
44 |
private: // command processors
|
|
45 |
inline void DoCleanup();
|
|
46 |
inline void DoCmdNew( const TDesC& aSection );
|
|
47 |
inline void DoCmdNextL( const TDesC& aSection );
|
|
48 |
inline void DoCmdThreadId( const TDesC& aSection );
|
|
49 |
|
|
50 |
private: // helper functions
|
|
51 |
TBool GetRfsParam( const TDesC& aSection, RFs*& aRfs, TPtrC& aRfsName );
|
|
52 |
|
|
53 |
private:
|
|
54 |
// TOpenFileScan class instance that is tested
|
|
55 |
TOpenFileScan* iOpenFileScan;
|
|
56 |
};
|
|
57 |
|
|
58 |
#endif // __T_OPEN_FILE_SCAN_DATA_H__
|
|
59 |
|