00001 /* 00002 * ============================================================================== 00003 * Name : MCLFItem.h 00004 * Part of : Media Gallery 2 / Content Listing Framework 00005 * Interface : SDK, Content Listing Framework API 00006 * Description : 00007 * Version : 00008 * 00009 * Copyright © 2002-2004 Nokia. All rights reserved. 00010 * This material, including documentation and any related 00011 * computer programs, is protected by copyright controlled by 00012 * Nokia. All rights are reserved. Copying, including 00013 * reproducing, storing, adapting or translating, any 00014 * or all of this material requires the prior written consent of 00015 * Nokia. This material also contains confidential 00016 * information which may not be disclosed to others without the 00017 * prior written consent of Nokia. 00018 * ============================================================================== 00019 */ 00020 00021 00022 #ifndef MCLFITEM_H 00023 #define MCLFITEM_H 00024 00025 // INCLUDES 00026 #include <CLFContentListing.hrh> 00027 #include <CLFContentListing.h> 00028 #include <e32std.h> 00029 00030 // FORWARD DECLARATIONS 00031 class MCLFItemExt; 00032 00033 // CLASS DECLARATION 00034 00071 class MCLFItem 00072 { 00073 public: // Destructor 00074 00078 virtual ~MCLFItem() {} 00079 00080 public: // New functions 00081 00087 virtual TCLFItemId ItemId() const = 0; 00088 00096 virtual TCLFItemDataType DataType( TCLFFieldId aFieldId ) const = 0; 00097 00108 virtual TInt GetField( TCLFFieldId aFieldId, TPtrC& aData ) const = 0; 00109 00120 virtual TInt GetField( TCLFFieldId aFieldId, TInt32& aData ) const = 0; 00121 00132 virtual TInt GetField( TCLFFieldId aFieldId, TTime& aData ) const = 0; 00133 00134 private: // Extension interface 00135 00139 virtual MCLFItemExt* Extension() { return NULL; } 00140 00141 }; 00142 00143 // MCLFITEM_H 00144 #endif 00145 00146 // End of File