javauis/lcdui_akn/lcdui/inc/CMIDControlItem.h
branchRCL_3
changeset 23 e5618cc85d74
parent 14 04becd199f91
--- a/javauis/lcdui_akn/lcdui/inc/CMIDControlItem.h	Mon Jun 21 15:32:50 2010 +0300
+++ b/javauis/lcdui_akn/lcdui/inc/CMIDControlItem.h	Thu Jul 15 18:31:06 2010 +0300
@@ -120,14 +120,29 @@
     inline TBool GetVisibilityInForm();
     inline void SetVisibilityInForm(const TBool aVisibility);
 
+    /**
+     * Sets the iHighlighted flag. Used by CMIDForm.
+     */
+    inline void SetHighlight(const TBool aHighlight);
+
+    /**
+     * Returns ETrue, if item is highlighted on Form.
+     */
+    inline TBool IsHighlighted();
+
 protected:
     CCoeEnv* iCoeEnv;
     CMIDItemLabel* iLabelControl; // The label for the control
 
-    //The background control context for when the item is highlighted
+    // The background control context for when the item is highlighted
     CAknsFrameBackgroundControlContext* iHighlightedBackgroundCc;
 
     TBool iVisibilityInForm;
+
+    // This flag is true, if item on Form is currently highlighted.
+    // Flag is used for returning correct background content
+    // (see MopSupplyObject).
+    TBool iHighlighted;
 };
 
 inline void CMIDControlItem::SetSizeQuiet(const TSize& aSize)
@@ -155,4 +170,14 @@
     iVisibilityInForm = aVisibility;
 }
 
+inline void CMIDControlItem::SetHighlight(const TBool aHighlight)
+{
+    iHighlighted = aHighlight;
+}
+
+inline TBool CMIDControlItem::IsHighlighted()
+{
+    return iHighlighted;
+}
+
 #endif // CMIDCONTROLITEM_H