ui/uiengine/medialistwrapper/inc/glxmlwrapper_p.h
changeset 33 1ee2af37811f
parent 29 2c833fc9e98f
child 36 6481344a6d67
--- a/ui/uiengine/medialistwrapper/inc/glxmlwrapper_p.h	Fri May 14 15:52:22 2010 +0300
+++ b/ui/uiengine/medialistwrapper/inc/glxmlwrapper_p.h	Thu May 27 12:51:42 2010 +0300
@@ -26,6 +26,9 @@
 #include <qdatetime.h>
 #include "glxmedialistiterator.h"
 #include "glxmlwrapper.h"
+#include <qimage>
+#include "mglxtitlefetcherobserver.h"
+
 //Forward Declarations
 class MGlxMediaList;
 class CGlxMLGenericObserver;
@@ -35,10 +38,10 @@
 class CGlxDefaultAttributeContext;
 class CGlxDefaultThumbnailContext;
 class CGlxDefaultListAttributeContext;
-
+class CGlxTitleFetcher;
 //to use first call GlxMLWrapperPrivate::Instance then set the mode by calling GlxMLWrapperPrivate::SetContextMode()
 //CLASS Declaration
-class GlxMLWrapperPrivate : public QObject
+class GlxMLWrapperPrivate : public QObject,public MGlxTitleFetcherObserver
 {
     
 public:
@@ -83,6 +86,10 @@
 	 */
 	 void SetVisibleWindowIndex(int aItemIndex);
 
+public:
+	 // From MGlxTitleFetcherObserver
+    IMPORT_C void HandleTitleAvailableL(const TDesC& aTitle);
+
 public: 
     void HandleItemAddedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList* aList );
     void HandleItemRemovedL( TInt aStartIndex, TInt aEndIndex, MGlxMediaList*/* aList */);
@@ -95,6 +102,7 @@
   //todo remove comment  void HandleCommandCompleteL( CMPXCommand* aCommandResult, TInt aError,MGlxMediaList* aList );
     void HandleMediaL( TInt aListIndex, MGlxMediaList* aList );
     void HandleItemModifiedL( const RArray<TInt>& aItemIndexes, MGlxMediaList* aList );
+    void HandlePopulatedL(MGlxMediaList* aList);
 
 public:
 	/**
@@ -111,6 +119,8 @@
 	CFbsBitmap* RetrieveBitmap(int aItemIndex);
 	int     RetrieveListItemCount( int aItemIndex );
 	bool    isSystemItem( int aItemIndex );
+	QString RetrieveViewTitle();
+	bool IsPopulated();
 		
 private:
 
@@ -203,6 +213,9 @@
 	TBool iLsListContextActivated; //currently not used as we have not implemented the logic for 3 thumbnails
 	TBool iPtListContextActivated; 
 	TBool iSelectionListContextActivated;
+	CGlxTitleFetcher* iTitleFetcher;
+	QImage iCorruptImage;
+	QString iViewTitle;
 
 };
 #endif //GLXMLWRAPPER_P_H