phoneuis/easydialing/inc/easydialinglistboxdata.h
branchRCL_3
changeset 81 c26cc2a7c548
parent 62 5266b1f337bd
equal deleted inserted replaced
73:e30d4a1b8bad 81:c26cc2a7c548
   153         const TRect& aItemRect,
   153         const TRect& aItemRect,
   154         TBool aHighlight,
   154         TBool aHighlight,
   155         const TExtendedColors& aColors ) const;
   155         const TExtendedColors& aColors ) const;
   156     
   156     
   157     /**
   157     /**
   158      * Draws the Contact Thumbnail Icon if any, else draws the dummy contact thumbnail.
   158      * Draws the Contact Thumbnail Icon if any else draws the dummy contact thumbnail.
   159      * @param   aGc Graphics context.
   159      * @param   aGc Graphics context.
   160      * @param   aBoundingBox    Rectangle containing bounds for contact thumbnail.
   160      * @param   aBoundingBox    Rectangle containing bounds for contact thumbnail.
   161      * @param   aContactIndex   Contact index for the contact data manager
   161      * @param   aDescId Descriptor containing contact id.
   162      */
   162      */
   163     void DrawContactThumbnail(
   163     TBool DrawContactThumbnail(
   164             CWindowGc& aGc,
   164             CWindowGc& aGc,
   165             TRect aBoundingBox,
   165             TRect aBoundingBox,
   166             TInt aContactIndex ) const;
   166             TPtrC aDescId) const;
   167     
   167     
   168     /**
   168     /**
   169      * Draws the Action Menu.
   169      * Draws the Action Menu.
   170      * @param   aGc Graphics context.
   170      * @param   aGc Graphics context.
   171      * @param   aActionMenuArrowRect    Rectangle where arrow is to be drawn.
   171      * @param   aActionMenuArrowRect    Rectangle where arrow is to be drawn.
   183     void DrawFavouriteIcon(
   183     void DrawFavouriteIcon(
   184             CWindowGc& aGc, 
   184             CWindowGc& aGc, 
   185             TRect aNameRectUnMirrored,
   185             TRect aNameRectUnMirrored,
   186             TRect aEffectiveRect) const;
   186             TRect aEffectiveRect) const;
   187     
   187     
   188     /**
       
   189      * Draws the SIM or Service Number icon. Takes the name rect as a parameter. Name rect
       
   190      * must be unmirrored, because the mirroring is done as the last thing
       
   191      * before drawing.
       
   192      * @param   aIcon The icon to be drawn
       
   193      * @param   aGc Graphics context.
       
   194      * @param   aNameRectUnMirrored Name rect, after which the icon is drawn
       
   195      * @param   aEffectiveRect The whole listbox item rect. Used for mirroring.
       
   196      */
       
   197     void DrawSimIcon(
       
   198             CGulIcon& aIcon,
       
   199             CWindowGc& aGc, 
       
   200             TRect aNameRectUnMirrored,
       
   201             TRect aEffectiveRect) const;
       
   202     
       
   203 private:
   188 private:
   204     
   189     
   205     /** Control environment */
   190     /** Control environment */
   206     CCoeEnv& iCoeEnv;
   191     CCoeEnv& iCoeEnv;
   207     
   192     
   227     CGulIcon* iDummyThumbnail;
   212     CGulIcon* iDummyThumbnail;
   228     
   213     
   229     /** Favourite icon. Owned. */
   214     /** Favourite icon. Owned. */
   230     CGulIcon* iFavouriteIcon;
   215     CGulIcon* iFavouriteIcon;
   231     
   216     
   232     /** SIM contact icon. Owned. */
       
   233     CGulIcon* iSimContactIcon;
       
   234     
       
   235     /** Service contact icon. Owned. */
       
   236     CGulIcon* iSdnContactIcon;
       
   237     
       
   238     /** Pointer to listbox. Not owned. */
   217     /** Pointer to listbox. Not owned. */
   239     CEasyDialingListBox* iControl;
   218     CEasyDialingListBox* iControl;
   240     };
   219     };
   241 
   220 
   242 
   221