diff -r 8ee96d21d9bf -r 7e0eff37aedb profilesservices/FileList/Src/MFLDEntryFormatter.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/profilesservices/FileList/Src/MFLDEntryFormatter.h Wed Sep 01 12:20:44 2010 +0100 @@ -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