diff -r ae07d189b490 -r 5e1df1b52eb3 ui/uiengine/medialistwrapper/inc/glxmlwrapper_p.h --- a/ui/uiengine/medialistwrapper/inc/glxmlwrapper_p.h Mon May 03 16:56:16 2010 +0530 +++ b/ui/uiengine/medialistwrapper/inc/glxmlwrapper_p.h Mon May 17 13:35:26 2010 +0530 @@ -26,6 +26,9 @@ #include #include "glxmedialistiterator.h" #include "glxmlwrapper.h" +#include +#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& 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