ui/uiengine/medialistwrapper/inc/glxmlwrapper.h
changeset 29 2c833fc9e98f
parent 26 c499df2dbb33
child 33 1ee2af37811f
equal deleted inserted replaced
26:c499df2dbb33 29:2c833fc9e98f
    31 #include <qdatetime.h>
    31 #include <qdatetime.h>
    32 //forward declarations
    32 //forward declarations
    33 class GlxMLWrapperPrivate;
    33 class GlxMLWrapperPrivate;
    34 class HbIcon;
    34 class HbIcon;
    35 class CFbsBitmap;
    35 class CFbsBitmap;
       
    36 class QImage;
    36 //constant declarations
    37 //constant declarations
    37 
    38 
    38 
    39 
    39 #ifdef BUILD_MLWRAPPER
    40 #ifdef BUILD_MLWRAPPER
    40 #define GLX_MLWRAPPER_EXPORT Q_DECL_EXPORT
    41 #define GLX_MLWRAPPER_EXPORT Q_DECL_EXPORT
    41 #else
    42 #else
    42 #define GLX_MLWRAPPER_EXPORT Q_DECL_IMPORT
    43 #define GLX_MLWRAPPER_EXPORT Q_DECL_IMPORT
    43 #endif
    44 #endif
    44 
    45 
    45 Q_DECLARE_METATYPE(CFbsBitmap*);
    46 Q_DECLARE_METATYPE(CFbsBitmap*)
    46 
    47 
    47 class GLX_MLWRAPPER_EXPORT GlxMLWrapper : public QObject
    48 class GLX_MLWRAPPER_EXPORT GlxMLWrapper : public QObject
    48 {
    49 {
    49     Q_OBJECT
    50     Q_OBJECT
    50 public:
    51 public:
    51 	/**
    52 	/**
    52 	*constructor
    53 	*constructor
    53 	*/
    54 	*/
    54     GlxMLWrapper(int aCollectionId, int aHierarchyId, TGlxFilterItemType aFilterType);
    55     GlxMLWrapper(int aCollectionId, int aHierarchyId, TGlxFilterItemType aFilterType,QString uri = NULL);
    55 	/**
    56 	/**
    56 	*destructor
    57 	*destructor
    57 	**/
    58 	**/
    58 	~GlxMLWrapper();
    59 	~GlxMLWrapper();
    59     /**
    60     /**
    66     int getItemCount();
    67     int getItemCount();
    67 	/**
    68 	/**
    68 	* retrieveItemIcon()
    69 	* retrieveItemIcon()
    69 	*/
    70 	*/
    70 	HbIcon* retrieveItemIcon(int index, GlxTBContextType aTBContextType);
    71 	HbIcon* retrieveItemIcon(int index, GlxTBContextType aTBContextType);
       
    72 	QImage retrieveItemImage(int index, GlxTBContextType aTBContextType);
    71     void itemsAdded(int startIndex,int endIndex);
    73     void itemsAdded(int startIndex,int endIndex);
    72     void itemsRemoved(int startIndex,int endIndex);
    74     void itemsRemoved(int startIndex,int endIndex);
    73     void handleReceivedIcon(int itemIndex, GlxTBContextType tbContextType);
    75     void handleReceivedIcon(int itemIndex, GlxTBContextType tbContextType);
    74     void handleIconCorrupt(int itemIndex);
    76     void handleIconCorrupt(int itemIndex);
    75     void handleGeneralError(int error);
    77     void handleGeneralError(int error);
    91 	/*
    93 	/*
    92 	 * retriveBitmap helps to retrive the bitmap
    94 	 * retriveBitmap helps to retrive the bitmap
    93 	 * @param1 index 
    95 	 * @param1 index 
    94 	 */
    96 	 */
    95 	QVariant RetrieveBitmap(int index);
    97 	QVariant RetrieveBitmap(int index);
       
    98     /*
       
    99      * retrieveListItemCount helps to retrive the number of images in the album
       
   100      * @param1 index 
       
   101      */
       
   102 	int  retrieveListItemCount(int index);
       
   103     /*
       
   104      * isSystemItem helps to get the system item information
       
   105      * @param1 index 
       
   106      */
       
   107 	bool isSystemItem( int aItemIndex );
    96 	
   108 	
    97 signals:
   109 signals:
    98      void updateItem(int index, GlxTBContextType tbContextType);
   110      void updateItem(int index, GlxTBContextType tbContextType);
    99 	 void insertItems(int startIndex,int endIndex);
   111 	 void insertItems(int startIndex,int endIndex);
   100 	 void removeItems(int startIndex,int endIndex);
   112 	 void removeItems(int startIndex,int endIndex);