os/kernelhwsrv/baseapitest/basesvs/validation/f32/sfsrv/inc/T_DirData.h
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     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 /**
    20 @test
    21 @internalComponent
    22 
    23 This contains CT_DirData
    24 */
    25 
    26 #if (!defined __T_DIR_DATA_H__)
    27 #define __T_DIR_DATA_H__
    28 
    29 //	User Includes
    30 #include "DataWrapperBase.h"
    31 #include "T_FsData.h"
    32 
    33 //	EPOC includes
    34 #include <f32file.h>
    35 
    36 class CT_DirData: public CDataWrapperBase
    37 	{
    38 public:
    39 	static CT_DirData*	NewL();
    40 	~CT_DirData();
    41 
    42 	virtual TBool	DoCommandL(const TTEFFunction& aCommand, const TTEFSectionName& aSection, const TInt aAsyncErrorIndex);
    43 	virtual TAny*	GetObject();
    44 	virtual void	SetObjectL(TAny* aAny);
    45 	virtual void	DisownObjectL();	
    46 	inline virtual 	TCleanupOperation CleanupOperation();
    47 	
    48 protected:
    49 	CT_DirData();
    50 	void ConstructL();
    51 	
    52 private:
    53 	void	DoCleanup();
    54 	void	DoCmdCount(const TDesC& aSection);
    55 	void	DoCmdOperatorBracketsL(const TDesC& aSection);
    56 	void	DoCmdSort(const TDesC& aSection);
    57 	
    58 //Helper function
    59 	static void CleanupOperation(TAny* aAny);
    60 	TBool ConvertSortKeys(TDesC &aConstantName, TUint& aSortKey);
    61 private:
    62 	//** Directory entry list */
    63 	CDir*				iDir;
    64 	};
    65 		
    66 #endif /* __T_DIR_DATA_H__ */