TBrCtlSelectOptionData Class Reference

#include <mw/brctldialogsprovider.h>

class TBrCtlSelectOptionData

Detailed Description

The TBrCtlSelectOptionData class represents a list of elements to display in the list box. This class is used for the List Selection Dialog.
  #include <brctldialogsprovider.h>
 @lib BrowserEngine.lib
 @since 2.8
 @file brctldialogsprovider.h
*

Constructor & Destructor Documentation

TBrCtlSelectOptionData ( )

TBrCtlSelectOptionData()[inline]
Default Constructor
Since
2.8

Returns: TbrCtlSelectOptionData object

TBrCtlSelectOptionData ( const TDesC &, TBool, TBool, TBool )

TBrCtlSelectOptionData(const TDesC &aText,
TBoolaIsSelected,
TBoolaIsOptGroup,
TBoolaHasOnPick
)[inline]
Constructor
Since
2.8
ParameterDescription
aTextThe text to display with this element
aIsSelectedIf the element is selected
aIsOptGroupIf a title of option group or an element
aHasOnPickIf has onPick, The dialog should close when the element is selected

Returns: TbrCtlSelectOptionData object

Member Function Documentation

HasOnPick ( )

TBool HasOnPick()const [inline]
Indicates whether or not the dialog closes when an option is selected.
Since
2.8

Returns: ETrue if the dialog closes when the element is selected. This is known as having OnPick capability. EFalse if the dialog does not close when the element is selected

IsOptGroup ( )

TBool IsOptGroup()const [inline]
Indicates whether an option group member variable is a group title or a selectable option.
Since
2.8

Returns: ETrue if the listed item is the title of an option group EFalse if the listed item is one of the options from which to select

IsSelected ( )

TBool IsSelected()const [inline]
Indicates whether or not an option is selected.
Since
2.8

Returns: ETrue if the option is selected EFalse if the option is not selected

SetHasOnPick ( TBool )

voidSetHasOnPick(TBoolaHasOnPick)[inline]
Sets the state of the hasOnPick member variable. Indicates whether or not the dialog closes when an option is selected.
Since
2.8
ParameterDescription
aHasOnPickETrue if the dialog closes when the element is selected. This is known as having OnPick capability. EFalse if the dialog does not close when the element is selected

Returns: None

SetIsOptGroup ( TBool )

voidSetIsOptGroup(TBoolaIsOptGroup)[inline]
Sets the state of the option group member variable. Indicates whether an option group member variable is a group title or a selectable option.
Since
2.8
ParameterDescription
aIsOptGroupThe state of the option group. Value: ETrue if the listed item is the title of an option group. EFalse if the listed item is one of the options from which to select.

Returns: None

SetIsSelected ( TBool )

voidSetIsSelected(TBoolaIsSelected)[inline]
Sets the selection state of an option.
Since
2.8
ParameterDescription
aIsSelectedThe state of the IsSelected member variable. Value: ETrue if the option is selected EFalse if the option is not selected

Returns: None

SetText ( TDesC & )

voidSetText(TDesC &aText)[inline]
Sets the text of the option object.
Since
2.8
ParameterDescription
aTextA reference to a TDesC object that contains the text to associate with a particular option.

Returns: None

Text ( )

const TDesC &Text()const [inline]
Gets the display text associated with a specified option.
Since
2.8

Returns: A reference to a Symbian TDesC object that contains the text associated with this option.