API published in: S60 1st Ed
Link against: avkon.lib eikctl.lib eikcdlg.lib
Required Capabilities
None
#include <eikprogi.h>
Inherits CEikBorderedControl.
Progress consists of a rectangular block that grows during an increment and shrinks during a decrement. The control can have progress text within the bar that provides updated information on how far the operation has progressed. The text can be displayed as either a percentage or a fraction. The bar can also have a series of invisible splits, or lines. These splits are displayed by the rectangular blocks as it fills the bar. When the control is in this mode progress text cannot be used.
This class has an associated PROGRESSINFO
resource and EEikCtProgInfo
control factory identifier.
Public Member Functions |
|
IMPORT_C | ~CEikProgressInfo () |
Destructor. |
|
IMPORT_C | CEikProgressInfo () |
C++ default constructor. |
|
IMPORT_C | CEikProgressInfo (const SInfo &aProgInfo) |
Constructs a progress information control using the information held in the specified SInfo struct. |
|
IMPORT_C void | IncrementAndDraw (TInt aInc) |
Adds the specified increment to the current progress value and, if the progress value has increased, redraws the control.
|
|
IMPORT_C void | SetAndDraw (TInt aValue) |
Sets the specified value as the new progress value and redraws the control if the new value differs from the old value. |
|
IMPORT_C void | ConstructFromResourceL (TResourceReader &aReader) |
From CCoeControl . |
|
IMPORT_C void | SetLayout (const SLayout &aLayout) |
Sets the layout for the control. |
|
IMPORT_C void | SetBorder (const TGulBorder &aBorder) |
Sets the control's border. |
|
IMPORT_C void | SetFinalValue (TInt aFinalValue) |
Sets the final value for the progress information control. |
|
IMPORT_C void | ConstructL () |
By default Symbian 2nd phase constructor is private. |
|
const SInfo & | Info () const |
Gets a pointer to the information used to define the progress information control's type. |
|
const SLayout & | Layout () const |
Gets a pointer to the colours and layout of the progress information control. |
|
TInt | CurrentValue () const |
Gets the current value, indicating how far the operation has progressed. |
|
IMPORT_C void | ActivateL () |
From CCoeControl . |
|
IMPORT_C TSize | MinimumSize () |
From CCoeControl . |
|
IMPORT_C void | SizeChanged () |
From CCoeControl . |
|
virtual IMPORT_C void | GetColorUseListL (CArrayFix< TCoeColorUse > &aColorUseList) const |
From CCoeControl . |
|
virtual IMPORT_C void | HandleResourceChange (TInt aType) |
From CCoeControl . |
|
IMPORT_C void | HandlePointerEventL (const TPointerEvent &aPointerEvent) |
From CCoeControl . |
|
Protected Member Functions |
|
virtual IMPORT_C const TDesC * | EvaluateText (TDes &aTextBuf) const |
Evaluates the progress text. |
|
IMPORT_C void | WriteInternalStateL (RWriteStream &aWriteStream) const |
From CCoeControl . |
|
Data Structures |
|
struct | SInfo |
Defines the progress control's type. More... |
|
struct | SLayout |
Defines the layout and colours for a progress information control. More... |
|
Destructor. |
|
C++ default constructor. |
|
Constructs a progress information control using the information held in the specified Uses default layout values.
|
|
From Activates the progress information control. |
|
From
Constructs a progress information control from a
|
|
By default Symbian 2nd phase constructor is private. |
|
Gets the current value, indicating how far the operation has progressed.
|
|
Evaluates the progress text.
|
|
From
Gets a list of the logical colours used to draw the control, appended to
Reimplemented from CEikBorderedControl. |
|
From Handles pointer events. This function gets called whenever a pointer event occurs in the control, i.e. when the pointer is within the control's extent, or when the control has grabbed the pointer. The control should implement this function to handle pointer events.
Note: events of type
Reimplemented from CEikBorderedControl. |
|
From Handles a change to the control's resources.
Reimplemented from CEikBorderedControl. |
|
Adds the specified increment to the current progress value and, if the progress value has increased, redraws the control.
|
|
Gets a pointer to the information used to define the progress information control's type.
|
|
Gets a pointer to the colours and layout of the progress information control.
|
|
From Gets the minimum size required to draw the control.
|
|
Sets the specified value as the new progress value and redraws the control if the new value differs from the old value.
|
|
Sets the control's border.
|
|
Sets the final value for the progress information control. This value indicates the operation being monitored is complete.
|
|
Sets the layout for the control.
|
|
From Recalculates the control's size in response to a size change. |
|
From Writes the internal state of the control and its components to a stream. This function is empty in release builds. It is intended to be overridden and base called by subclasses.
Reimplemented from CEikBorderedControl. |