ui/views/detailsview/inc/glxdetailsview.h
changeset 44 aa2fa096cbfb
parent 40 112f0ac2d1f0
child 50 a0f57508af73
child 55 fb37077c270f
--- a/ui/views/detailsview/inc/glxdetailsview.h	Fri May 28 21:11:54 2010 +0530
+++ b/ui/views/detailsview/inc/glxdetailsview.h	Fri Jun 11 17:53:15 2010 +0530
@@ -20,16 +20,18 @@
 
 #include <glxview.h>
 
-class HbDataForm;
-class HbDataFormModelItem;
-class HbDataFormModel;
+
 class GlxMediaModel;
 class QAbstractItemModel;
 class HbIconItem;
-class GlxDetailsCustomWidgets;
-class GlxDetailsCustomIcon;
+
 class GlxFavMediaModel;
-
+class HbDocumentLoader;
+class HbLabel;
+class HbPushButton;
+class GlxDetailsNameLabel;
+class GlxDetailsDescriptionEdit;
+class GlxDetailsViewDocLoader;
 
 class GlxDetailsView : public GlxView  
 {
@@ -70,9 +72,9 @@
      * Sets the model corresponding to this view.
      */
     void setModel (QAbstractItemModel *model);
-/*
- * return the view item for animation
- */    
+    /*
+     * return the view item for animation
+     */    
     QGraphicsItem * getAnimationItem(GlxEffect transtionEffect);
 
 
@@ -81,15 +83,11 @@
     void rowsRemoved(const QModelIndex &parent, int start, int end);
     void dataChanged(QModelIndex startIndex, QModelIndex endIndex);
     void updateFavourites();
+    void UpdateDescription();
+    void FillDetails();
     
 private:
 
-   //Adds the Widget required to show the details
-    void addWidgets();
-
-    //Fills the data in the form
-    void setFormData();
-
     /*
      * Retrieves the image from the model and shows the image
      */
@@ -99,6 +97,8 @@
      * Sets the Date to the label recieved from MDS
      */
     void setImageName();
+    
+    void setDesc();
 
     /*
      * Sets the Date to the label received from MDS
@@ -106,6 +106,21 @@
     void setDate();
     
     /*
+     * Sets the time to the label received from MDS
+     */
+    void setTime();
+    
+    /*
+     * Sets the size to the label received from MDS
+     */
+    void setSize();    
+    
+    /*
+     * create the favourite model
+     */
+    void setFavModel();
+    
+    /*
      * Add all the model releted connection and data
      */
     void initializeNewModel();
@@ -119,47 +134,53 @@
      */
     void cleanUp();
     
+    QString sizeinStrings(int size);
+
     /*
-     * create the favourite model
+     * connects the items to slot to respective signals
      */
-    void setFavModel();
+    void setConnections();
 
-
+    /*
+     * clear the connections
+     */
+    void clearConnections();
+    
 private:
     
     //Contains the thumbnail shown in teh details view.
-    HbIconItem *mDetailsIcon;
+    HbLabel *mDetailsIcon;
     
     //Contains the favourite icon which adds or removes the image to favourite folder
-    GlxDetailsCustomIcon *mFavIcon;
-    
+    HbPushButton *mFavIcon;
+   
     //The media Model to acess the attributes; not owned,dont delete.
     QAbstractItemModel *mModel; 
     
     //The media Model to acess the attributes whether image is in favourite folder or not;owned by this view
-    GlxFavMediaModel *mFavModel;
-    
-    //The Model for the Form
-    HbDataFormModel *mDetailModel;
-
+    GlxFavMediaModel *mFavModel;    
+ 
     //The reference to the Main Window
     HbMainWindow *mWindow;
-
-    //The data form for the detail 
-    HbDataForm * mDataForm;
-
-    //Custom widgets which will contain the widgets not created/supported by data form 
-    GlxDetailsCustomWidgets *mCustomPrototype;
-    
+     
     int mSelIndex;
     
-    //Contains the Datelabel item
-    HbDataFormModelItem *mDateLabelItem;
-    
-    //Contains the ImageLabel item
-    HbDataFormModelItem *mImageLabelitem;
-    
-    //Contains the Comments item
-    HbDataFormModelItem *mCommentsLabelitem;
+   //Document Loader  
+    GlxDetailsViewDocLoader *mDocLoader;
+  
+    //Shows the Images
+    GlxDetailsNameLabel *mImageName;
+	
+	//Shows the descriptions
+     GlxDetailsDescriptionEdit *mDescriptions;
+	
+	//Shows the Date 
+    HbLabel *mDateLabel;
+	
+	//Shows the size of the image
+    HbLabel *mSizeLabel;
+	
+	//Shows the time 
+    HbLabel *mTimeLabel;    
 };
 #endif //GLXDETAILSVIEW_H