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_DirScanData
|
|
23 |
*/
|
|
24 |
|
|
25 |
#if (!defined __T_DIRSCAN_DATA_H__)
|
|
26 |
#define __T_DIRSCAN_DATA_H__
|
|
27 |
|
|
28 |
// User Includes
|
|
29 |
#include "DataWrapperBase.h"
|
|
30 |
|
|
31 |
// EPOC includes
|
|
32 |
#include <f32file.h>
|
|
33 |
|
|
34 |
class CT_DirScanData: public CDataWrapperBase
|
|
35 |
{
|
|
36 |
public:
|
|
37 |
static CT_DirScanData* NewL();
|
|
38 |
~CT_DirScanData();
|
|
39 |
|
|
40 |
virtual TBool DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
|
|
41 |
virtual TAny* GetObject();
|
|
42 |
|
|
43 |
protected:
|
|
44 |
CT_DirScanData();
|
|
45 |
void ConstructL();
|
|
46 |
|
|
47 |
private:
|
|
48 |
inline void DoCmdNewL(const TDesC& aSection);
|
|
49 |
inline void DoCmdNewLC(const TDesC& aSection);
|
|
50 |
inline void DoCleanup();
|
|
51 |
inline void DoCmdSetScanDataL(const TDesC& aSection);
|
|
52 |
inline void DoCmdNextL(const TDesC& aSection);
|
|
53 |
inline void DoCmdAbbreviatedPath(const TDesC& aSection);
|
|
54 |
inline void DoCmdFullPath(const TDesC& aSection);
|
|
55 |
|
|
56 |
//Helpers
|
|
57 |
TBool ConvertToSortKey(const TDesC& aSortKeyStr, TUint& aSortKey);
|
|
58 |
TBool ConvertToScanDirection(const TDesC& aScanDirectionStr, CDirScan::TScanDirection& aScanDirection);
|
|
59 |
|
|
60 |
private:
|
|
61 |
//** CDirScan class instance that is tested */
|
|
62 |
CDirScan* iDirScan;
|
|
63 |
|
|
64 |
};
|
|
65 |
|
|
66 |
#endif /* __T_DIRSCAN_DATA_H__ */
|