TBrCtlSelectOptionData Class Reference

class TBrCtlSelectOptionData
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

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

TBrCtlSelectOptionData(const TDesC &aText,
TBoolaIsSelected,
TBoolaIsOptGroup,
TBoolaHasOnPick
)[inline]
Constructor
Since
2.8

Parameters

const TDesC & aTextThe text to display with this element
TBool aIsSelectedIf the element is selected
TBool aIsOptGroupIf a title of option group or an element
TBool aHasOnPickIf has onPick, The dialog should close when the element is selected

Member Functions Documentation

HasOnPick()

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

IsOptGroup()

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

IsSelected()

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

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

Parameters

TBool 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

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

Parameters

TBool 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.

SetIsSelected(TBool)

voidSetIsSelected(TBoolaIsSelected)[inline]
Sets the selection state of an option.
Since
2.8

Parameters

TBool aIsSelectedThe state of the IsSelected member variable. Value: ETrue if the option is selected EFalse if the option is not selected

SetText(TDesC &)

voidSetText(TDesC &aText)[inline]
Sets the text of the option object.
Since
2.8

Parameters

TDesC & aTextA reference to a TDesC object that contains the text to associate with a particular option.

Text()

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

Member Data Documentation

TBool iHasOnPick

TBool iHasOnPick[private]

TBool iIsOptGroup

TBool iIsOptGroup[private]

TBool iIsSelected

TBool iIsSelected[private]

TPtrC iText

TPtrC iText[private]