diff -r 6465d5bb863a -r 13e71d907dc3 profilesservices/FileList/Src/MFLDEntryFormatter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/profilesservices/FileList/Src/MFLDEntryFormatter.h Thu Nov 04 13:38:47 2010 +0800 @@ -0,0 +1,73 @@ +/* +* Copyright (c) 2002 Nokia Corporation and/or its subsidiary(-ies). +* All rights reserved. +* This component and the accompanying materials are made available +* under the terms of "Eclipse Public License v1.0" +* which accompanies this distribution, and is available +* at the URL "http://www.eclipse.org/legal/epl-v10.html". +* +* Initial Contributors: +* Nokia Corporation - initial contribution. +* +* Contributors: +* +* Description: +* MFLDEntryFormatter defines an abstract interface to create +* formatted presentations of directory entries +* +* +*/ + + + +#ifndef __MFLDENTRYFORMATTER_H__ +#define __MFLDENTRYFORMATTER_H__ + +// INTERNAL INCLUDES + +// EXTERNAL INCLUDES +#include + +// FORWARD DECLARATIONS +class CFLDEntryReference; + +// CLASS DEFINITION + +/** +* MFLDEntryFormatter defines an abstract interface to create +* formatted presentations of directory entries +*/ +class MFLDEntryFormatter + { + public: // Constructors and destructor + + /** + * Destructor. + */ + virtual ~MFLDEntryFormatter() {} + + public: // New functions + + /** + * Formats a single entry + * @param aEntry The entry to be formatted + */ + virtual void FormatL( CFLDEntryReference& aEntry ) = 0; + + /** + * Formats a null item text (see CFLDFileListModel::InsertNullItemL). + * Default implementation does no modifications to the given text + * (to maintain BC). + * @param aText The text to be formatted. + * @return Returns an allocated formatted HBufC. + * Ownership is returned to the caller. + * @since Series 60 2.6 + */ + virtual HBufC* FormatTextLC( const TDesC& aText ) + { return aText.AllocLC(); } + + }; + +#endif // __MFLDENTRYFORMATTER_H__ + +// End of File