SystemDialog

Since: BlackBerry 10.0.0

#include <bb/system/SystemDialog>

To link against this class, add the following line to your .pro file: LIBS += -lbbsystem

A dialog box that presents the user with text and buttons in its content area.

A system dialog box

The dialog box displayed is an application-modal window, though it is possible to use a system-modal window by setting the SystemDialog::modality property.

In addition, the buttonAreaLimit property controls the number of buttons that are contained in the button area of the window. By default, the button area is large enough to contain confirmButton, customButton, and cancelButton, if they are valid. The buttons are considered invalid if they do not have a label set.

Presentation properties are marked as such, and affect future requests. Any pending requests use the values of the presentation properties at the time of the request.

When the dialog box is displayed after a call to show() or exec(), there are two methods for updating the dialog box after changing its presentation properties.

The default method is to update all the necessary presentation properties and call the update() method. This guarantees that all the presentation properties are updated at the same time.

The second method is to have the dialog box update automatically after every presentation property change. To enable these automatic updates, the autoUpdateEnabled property must be set to true.

The second method does not guarantee automatic updates for all the presentation properties changes. This method can lead to noticeable delays between updates of individual properties. If more than one property needs to be updated, use the first method. If only one presentation property is being updated frequently (for example, the text on the dialog box body must be updated to notify the user of the application's current status) the second approach can be used.


Overview

Public Functions Index

SystemDialog (QObject *parent=0)
SystemDialog (const QString &confirmLabel, QObject *parent=0)
SystemDialog (const QString &confirmLabel, const QString &cancelLabel, QObject *parent=0)
SystemDialog (const QString &confirmLabel, const QString &customLabel, const QString &cancelLabel, QObject *parent=0)
virtual ~SystemDialog ()
boolactivityIndicatorVisible () const
voidappendButton (bb::system::SystemUiButton *button)
QStringbody () const
intbuttonAreaLimit () const
SystemUiButton *buttonAt (int index) const
Q_INVOKABLE intbuttonCount () const
Q_INVOKABLE bb::system::SystemUiButton *buttonSelection () const
bb::system::SystemUiButton *cancelButton ()
Q_INVOKABLE voidclearButtons ()
bb::system::SystemUiButton *confirmButton ()
bb::system::SystemUiButton *customButton ()
bb::system::SystemUiButton *defaultButton ()
booldismissAutomatically () const
boolemoticonsEnabled () const
bb::system::SystemUiError::Typeerror () const
boolincludeRememberMe () const
boolisAutoUpdateEnabled () const
bb::system::SystemUiModality::Typemodality () const
boolrememberMeChecked () const
Q_INVOKABLE boolrememberMeSelection () const
QStringrememberMeText () const
Q_INVOKABLE voidresetActivityIndicatorVisible ()
Q_INVOKABLE voidresetAutoUpdateEnabled ()
Q_INVOKABLE voidresetBody ()
Q_INVOKABLE voidresetButtonAreaLimit ()
Q_INVOKABLE voidresetCancelButton ()
Q_INVOKABLE voidresetConfirmButton ()
Q_INVOKABLE voidresetCustomButton ()
Q_INVOKABLE voidresetDefaultButton ()
Q_INVOKABLE voidresetDismissAutomatically ()
Q_INVOKABLE voidresetEmoticonsEnabled ()
Q_INVOKABLE voidresetIncludeRememberMe ()
Q_INVOKABLE voidresetModality ()
Q_INVOKABLE voidresetRememberMeChecked ()
Q_INVOKABLE voidresetRememberMeText ()
Q_INVOKABLE voidresetReturnKeyAction ()
Q_INVOKABLE voidresetTitle ()
bb::system::SystemUiResult::Typeresult () const
bb::system::SystemUiReturnKeyAction::TypereturnKeyAction () const
voidsetActivityIndicatorVisible (bool visible)
voidsetAutoUpdateEnabled (bool update)
voidsetBody (const QString &body)
voidsetButtonAreaLimit (int newButtonAreaLimit)
voidsetDefaultButton (bb::system::SystemUiButton *newDefaultButton)
voidsetDismissAutomatically (bool automaticDismissal)
voidsetEmoticonsEnabled (bool newEmoticonsEnabled)
voidsetIncludeRememberMe (bool value)
voidsetModality (bb::system::SystemUiModality::Type newModality)
voidsetRememberMeChecked (bool newRememberMeSelected)
voidsetRememberMeText (const QString &newRememberMeText)
voidsetReturnKeyAction (bb::system::SystemUiReturnKeyAction::Type newReturnKeyAction)
voidsetTitle (const QString &title)
QStringtitle () const

Public Slots Index

Signals Index

voidactivityIndicatorVisibleChanged (bool value)
voidautoUpdateEnabledChanged (bool value)
voidbodyChanged (const QString &value)
voidbuttonAreaLimitChanged (int newButtonAreaLimit)
voiddefaultButtonChanged (bb::system::SystemUiButton *newDefaultButton)
voiddismissAutomaticallyChanged (bool automaticDismissal)
voidemoticonsEnabledChanged (bool newEmoticonsEnabled)
voidfinished (bb::system::SystemUiResult::Type value)
voidincludeRememberMeChanged (bool value)
voidmodalityChanged (bb::system::SystemUiModality::Type newModality)
voidrememberMeCheckedChanged (bool newRememberMeSelected)
voidrememberMeTextChanged (const QString &newRememberMeText)
voidreturnKeyActionChanged (bb::system::SystemUiReturnKeyAction::Type newReturnKeyAction)
voidtitleChanged (const QString &value)

Properties

bool activityIndicatorVisible

Indicates whether to display an activity indicator in the title bar of the dialog box.

Since:

BlackBerry 10.2.0

bool autoUpdateEnabled

Indicates whether the dialog box is updated every time a presentation property is changed.

If autoUpdateEnabled is true, every time any of the presentation properties on the dialog box are changed, the dialog box is also updated immediately to reflect the changes on the UI. If autoUpdateEnabled is false, the dialog box is not updated automatically, instead the show() method must be called. This is the default behavior.

Note:

The behavior of the autoUpdateEnabled flag is apparent when multiple presentation properties are changed. When autoUpdateEnabled is set to true, the on-screen dialog box may be updated after each individual presentation property is changed. This may not be an ideal user experience, particularly as the number of changed presentation properties increases. When autoUpdateEnabled is set to false, it is possible to combine multiple presentation property updates and apply them to the on-screen dialog box as one request by calling show().

Since:

BlackBerry 10.2.0

QDeclarativeListProperty bb[read-only]

Represents any additional buttons to include in the window.

This is a presentation property which is initialized as an empty list.

Since:

BlackBerry 10.0.0

QString body

body represents the main text of the window.

This is a presentation property whose default value is a default-constructed QString.

Since:

BlackBerry 10.0.0

int buttonAreaLimit

The maximum number of buttons that can be shown without causing an overflow.

When overflow occurs, all buttons are stacked vertically.

This is a presentation property whose default value is -1.
Note:

-1 implies that the default system behavior will be applied. The supported range is 1-3, with any values outside the range resetting the property to its default value.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton cancelButton[read-only]

Represents the button associated with the default cancellation action of the window.

This is a presentation property whose default bb::system::SystemUiButton::label property is "Cancel".

Note:

This button is omitted if its bb::system::SystemUiButton::label property is a default-constructed QString.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton confirmButton[read-only]

Represents the button associated with the default confirming action of the window.

This is a presentation property whose default bb::system::SystemUiButton::label property is "OK".

Note:

This button is omitted if its bb::system::SystemUiButton::label property is a default-constructed QString.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton customButton[read-only]

Represents the button associated with the tertiary action of the window.

This is a presentation property whose default bb::system::SystemUiButton::label property is a default-constructed QString.

Note:

This button is omitted if its bb::system::SystemUiButton::label property is a default-constructed QString.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton defaultButton

Represents the button associated with the return key action of the window.

When the user triggers the return key action, this button is automatically selected. If the defaultButton is NULL, then triggering the return key action will not select any button.

If defaultButton is set to a button that this instance does not manage, then this property is undefined.

This is a presentation property whose default value determined dynamically based on which managed buttons are available. The precedence of the buttons
  • confirmButton

  • customButton

  • cancelButton

Since:

BlackBerry 10.0.0

bool dismissAutomatically

Indicates whether to dismiss the dialog box when a button is selected.

If false, the dialog box must be dismissed using cancel(). Otherwise, the dialog box is dismissed when a button is selected.

This is a presentation property whose default value is true.

Since:

BlackBerry 10.0.0

bool emoticonsEnabled

Retrieves whether the text can be displayed with emoticons.

This is a presentation property whose default value is false.

Since:

BlackBerry 10.0.0

bb::system::SystemUiError::Type error[read-only]

Represents the last error encountered.

This property is only valid when the SystemDialog::result property is bb::system::SystemUiResult::Error.
See also:

bb::system::SystemUiError for the list of possible errors.

Since:

BlackBerry 10.0.0

bool includeRememberMe

includeRememberMe indicates whether a check box for remembering user selection should be included in the dialog box.

If a check box is requested, then the user will have the ability to enable and disable it. The user selection is available using rememberMeSelection() when the request is finished. To customize how the check box is presented, use rememberMeChecked and rememberMeText.

This is a presentation property whose default value is false.

Since:

BlackBerry 10.0.0

bb::system::SystemUiModality::Type modality

Represents the modality of the dialog box.

This is a presentation property whose value is bb::system::SystemUiModality::Application.
See also:

bb::system::SystemUiModality for the list of valid values.

Since:

BlackBerry 10.0.0

bool rememberMeChecked

Represents the checked state of the check box for remembering user selection.

The state is only applied if includeRememberMe is true. To obtain the user selection for this property when the request is finished, use rememberMeSelection().

This is a presentation property whose default value is true.

Since:

BlackBerry 10.0.0

QString rememberMeText

Represents the text to associate with the check box associated with rememberMeChecked.

This property is only applied if includeRememberMe is true.

This is a presentation property whose default value is "Remember Me".

Since:

BlackBerry 10.0.0

bb::system::SystemUiResult::Type result[read-only]

Represents the result of the last completed request.

To obtain result values when the request is finished, use the following functions:
See also:

bb::system::SystemUiResult for the list of possible results.

Since:

BlackBerry 10.0.0

bb::system::SystemUiReturnKeyAction::Type returnKeyAction

Represents the action associated with the return key for this dialog box.

This is a presentation property whose default value is bb::system::SystemUiReturnKeyAction::Default.
See also:

bb::system::SystemUiReturnKeyAction for the list of possible values.

Since:

BlackBerry 10.0.0

QString title

title represents the title of the window.

This is a presentation property whose default value is a default-constructed QString.

Since:

BlackBerry 10.0.0

Public Functions

SystemDialog (

The default property is buttons.

Constructs a new instance of a dialog box with default confirmation and cancellation buttons.

The confirmation and cancellation buttons will have their default label values.
Parameters
parent

If not 0, the supplied parent is responsible for deleting this instance.

Since:

BlackBerry 10.0.0

SystemDialog (

Constructs a new instance of a dialog box with only a confirmation button.

To show the cancellation and custom button set the labels of SystemDialog::cancelButton and SystemDialog::customButton respectively.
Parameters
confirmLabel

The label to use for the confirmation button.

parent

If not 0, the supplied parent is responsible for deleting this instance.

Since:

BlackBerry 10.0.0

SystemDialog (

Constructs a new instance of a dialog box with defined confirmation and cancellation buttons.

To show the custom button set the label of SystemDialog::customButton.
Parameters
confirmLabel

The label to use for the confirmation button.

cancelLabel

The label to use for the cancellation button.

parent

If not 0, the supplied parent is responsible for deleting this instance.

Since:

BlackBerry 10.0.0

SystemDialog (

Constructs a new instance of a dialog box with defined confirmation, custom and cancellation buttons.

Parameters
confirmLabel

The label to use for the confirmation button.

customLabel

The label to use for the custom button.

cancelLabel

The label to use for the cancellation button.

parent

If not 0, the supplied parent is responsible for deleting this instance.

Since:

BlackBerry 10.0.0

virtual~SystemDialog ()

Destructor.

Since:

BlackBerry 10.0.0

bool activityIndicatorVisible ()

Indicates if an activity indicator is displayed on the title bar of the dialog box.

Return:

true if the activity indicator is displayed, false otherwise.

Since:

BlackBerry 10.2.0

void appendButton (

Appends a button to the list of other buttons for this dialog box.

The dialog box becomes the parent of the button and is responsible for destroying it.
Parameters
button

The button to add to this dialog box.

Since:

BlackBerry 10.0.0

QString body ()

Retrieves the main text of the dialog box.

Return:

The text of the dialog box.

Since:

BlackBerry 10.0.0

int buttonAreaLimit ()

The maximum number of buttons that can be shown without causing an overflow.

If buttonAreaLimit is larger than the number of buttons that will be displayed, all buttons are stacked vertically.
Return:

The limit for the number of buttons that can be accommodated in the button area, or -1 if system defaults should be used.

Since:

BlackBerry 10.0.0

SystemUiButton * buttonAt (
  • intindex)

Retrieves the button at the supplied index.

This instance retains ownership of the returned value.
Parameters
index

An index into the list of buttons added using the appendButton() method.

Return:

The button at the supplied index or 0 if an invalid index is provided.

Since:

BlackBerry 10.0.0

Q_INVOKABLE int buttonCount ()

Retrieves the number of other buttons added to the dialog box.

This method returns the count of buttons added using the appendButton() method. The count does not include the confirmation, custom, or cancellation buttons.
Return:

The number of other buttons.

Since:

BlackBerry 10.0.0

Q_INVOKABLE bb::system::SystemUiButton * buttonSelection ()

Returns the button that was selected when a button selection is made.

If no button was selected, 0 is returned.

This function will return the result of the button selection of show() and exec().

The return value is reset when a new request is made.

This instance retains ownership of the returned value.
Return:

The button selected by the user.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton * cancelButton ()

Retrieves the dialog box's cancellation button.

This instance retains ownership of the returned value.
Return:

The dialog box's cancellation button.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void clearButtons ()

Clears the list of other buttons for this dialog box.

This only affects buttons added to the dialog box using the appendButton() method. This method does not affect the confirmation, custom, or cancellation buttons. The button instances are deleted.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton * confirmButton ()

Retrieves the button attached to the dialog box's confirm button.

This instance retains ownership of the returned value.
Return:

The dialog box's confirmation button.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton * customButton ()

Retrieves the dialog box's custom action button.

This instance retains ownership of the returned value.
Return:

The dialog box's custom action button.

Since:

BlackBerry 10.0.0

bb::system::SystemUiButton * defaultButton ()

Retrieves the dialog box's default button.

This instance retains ownership of the returned value.

The default button is automatically selected when the user triggers the return key action. If the default button is NULL, no button is automatically selected.

The returned value is one of the buttons managed by this instance, or NULL.
Return:

The dialog box's default button.

Since:

BlackBerry 10.0.0

bool dismissAutomatically ()

Indicates if the dialog box is dismissed when a button is selected.

Return:

true if selecting a button dismisses the dialog box, false otherwise.

Since:

BlackBerry 10.0.0

bool emoticonsEnabled ()

Retrieves whether the text can be displayed as emoticons.

Return:

Whether the dialog box supports emoticons.

Since:

BlackBerry 10.0.0

bb::system::SystemUiError::Type error ()

Retrieves the error that occurred during the request.

The return value is reset when a new request is made.
Return:

The error that occurred. See bb::system::SystemUiError for the list of possible errors.

Since:

BlackBerry 10.0.0

bool includeRememberMe ()

Retrieves the flag indicating if a check box to remember user selection should be included in the dialog box.

Return:

true if a check box for remembering the user selection should be included in the dialog box, false otherwise.

Since:

BlackBerry 10.0.0

bool isAutoUpdateEnabled ()

Retrieves the flag indicating if the dialog box is updated every time the value of a presentation property is changed.

Return:

true if the dialog box automatically updates, false if the dialog box doesn't update (in which case the show() method must be called after updating the dialog box presentation properties).

Since:

BlackBerry 10.2.0

bb::system::SystemUiModality::Type modality ()

Retrieves the dialog box's modality.

Return:

The dialog box's modality. See bb::system::SystemUiModality for the list of possible values.

Since:

BlackBerry 10.0.0

bool rememberMeChecked ()

Retrieves whether the check box for includeRememberMe is selected by default.

To obtain the user selection, use rememberMeSelection() instead.
Return:

true if the check box should be selected by default, false otherwise.

Since:

BlackBerry 10.0.0

Q_INVOKABLE bool rememberMeSelection ()

Returns the state of the check box for remembering user selection when the user dismisses the dialog box.

Return:

true if the check box for remembering the user selection was checked, false otherwise.

Since:

BlackBerry 10.0.0

QString rememberMeText ()

Retrieves the text associated with the check box for includeRememberMe.

Return:

The text for the check box for includeRememberMe.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetActivityIndicatorVisible ()

Resets the dialog box's activityIndicatorVisible property to its default value.

Since:

BlackBerry 10.2.0

Q_INVOKABLE void resetAutoUpdateEnabled ()

Resets the autoUpdateEnabled flag to false.

Since:

BlackBerry 10.2.0

Q_INVOKABLE void resetBody ()

Resets the main text of the dialog box to QString::null.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetButtonAreaLimit ()

Resets the maximum number of buttons to accommodate in the dialog box button area without overflow to -1.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetCancelButton ()

Resets the cancellation button for this dialog box.

When the cancellation button is reset, its label is set to the default value of "Cancel".

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetConfirmButton ()

Resets the confirmation button for this dialog box.

When the confirmation button is reset, its label is set to the default value of "OK".

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetCustomButton ()

Resets the custom action button for this dialog box.

When the custom action button resets, its label is an empty QString, therefore, this button is omitted during show() and exec() events.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetDefaultButton ()

Resets the default button for this dialog box based on the property's precedence rules.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetDismissAutomatically ()

Resets whether the dialog box is dismissed when a button is selected to true.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetEmoticonsEnabled ()

Resets whether the text can display emoticons to false.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetIncludeRememberMe ()

Resets the flag to show the check box for remembering user selection to false.

To reset the selection state for the check box, use resetRememberMeChecked().

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetModality ()

Resets the modality of the dialog box to bb::system::SystemUiModality::Application.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetRememberMeChecked ()

Resets the selection state for the check box for includeRememberMe to true.

To reset whether to include the check box use resetIncludeRememberMe().

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetRememberMeText ()

Resets the text for the check box for includeRememberMe to "Remember Me".

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetReturnKeyAction ()

Resets the return key action of the dialog box to bb::system::SystemUiReturnKeyAction::Default.

Since:

BlackBerry 10.0.0

Q_INVOKABLE void resetTitle ()

Resets the title of the dialog box to QString::null.

Since:

BlackBerry 10.0.0

bb::system::SystemUiResult::Type result ()

Retrieves the result of the last completed request.

If no request has been made, or if a request is pending, bb::system::SystemUiResult::None is returned.
Return:

The result of the last completed request. See bb::system::SystemUiResult for the list of possible results.

Since:

BlackBerry 10.0.0

bb::system::SystemUiReturnKeyAction::Type returnKeyAction ()

Retrieves the dialog box's return key action.

Return:

The dialog box's return key action.

Since:

BlackBerry 10.0.0

void setActivityIndicatorVisible (
  • boolvisible)

Sets whether an activity indicator is displayed on the title bar of the dialog box.

Parameters
visible

true if the dialog box displays an activity indicator, false otherwise.

Since:

BlackBerry 10.2.0

void setAutoUpdateEnabled (
  • boolupdate)

Sets the autoUpdateEnabled flag of the dialog box.

Parameters
update

true if the dialog box will update automatically, false if the dialog box will not update automatically (in which case the show() method must be called after updating the dialog box presentation properties).

Since:

BlackBerry 10.2.0

void setBody (

Sets the main text of the dialog box.

Parameters
body

The new text of the dialog box.

Since:

BlackBerry 10.0.0

void setButtonAreaLimit (
  • intnewButtonAreaLimit)

Sets the maximum number of buttons to accommodate in the dialog box button area without overflow.

Values outside the range [1,3] will reset the property to its default value, -1. If newButtonAreaLimit is smaller than the number of buttons that will be displayed, all buttons are stacked vertically.
Parameters
newButtonAreaLimit

The maximum number of buttons in the button area.

Since:

BlackBerry 10.0.0

void setDefaultButton (

Sets the dialog box's default button.

newDefaultButton must be one of the buttons managed by this instance, or NULL. If NULL is specified, then no button is associated with the return key action.

If a non-managed button is specified, then this property is undefined.
Parameters
newDefaultButton

The button to associate with the return key action.

Since:

BlackBerry 10.0.0

void setDismissAutomatically (
  • boolautomaticDismissal)

Sets whether the dialog box is dismissed when a button is selected.

Parameters
automaticDismissal

true if the dialog box should be automatically dismissed on a button press, false otherwise.

Since:

BlackBerry 10.0.0

void setEmoticonsEnabled (
  • boolnewEmoticonsEnabled)

Sets whether the text can be displayed as emoticons.

Parameters
newEmoticonsEnabled

Whether the dialog box supports emoticons.

Since:

BlackBerry 10.0.0

void setIncludeRememberMe (
  • boolvalue)

Sets the flag indicating if a check box for remembering user selection should be included in the dialog box.

Parameters
value

true if a check box for remembering user selection should be included, false otherwise.

Since:

BlackBerry 10.0.0

void setModality (

Sets the modality for the dialog box.

Parameters
newModality

The new modality preference. See bb::system::SystemUiModality for the list of possible values.

Since:

BlackBerry 10.0.0

void setRememberMeChecked (
  • boolnewRememberMeSelected)

Sets whether the check box for includeRememberMe is selected by default.

Parameters
newRememberMeSelected

true if the check box should be selected by default, false otherwise.

Since:

BlackBerry 10.0.0

void setRememberMeText (

Sets the text associated with the check box for includeRememberMe.

Parameters
newRememberMeText

The new text for the check box for includeRememberMe.

Since:

BlackBerry 10.0.0

void setReturnKeyAction (

Sets the return key action for the dialog box.

Parameters
newReturnKeyAction

The new return key action.

Since:

BlackBerry 10.0.0

void setTitle (

Sets the title for the dialog box.

Parameters
title

The new title of the dialog box.

Since:

BlackBerry 10.0.0

QString title ()

Retrieves the title for the dialog box.

Return:

The title of the dialog box.

Since:

BlackBerry 10.0.0

Public Slots

void cancel ()

Cancels the dialog box if it is still displayed.

Since:

BlackBerry 10.0.0

bb::system::SystemUiResult::Type exec ()

Displays the dialog box based on current property values.

The result of the request can be retrieved with the SystemDialog::result property, or by using the finished() signal. The button selection can be retrieved with the SystemDialog::buttonSelection property.

Unlike show(), this function will block until a button selection is made. If the dialog box is already on the screen, this method will return immediately with bb::system::SystemUiResult::DialogCannotBlock.

Note:
Blocking occurs by starting a nested QEventLoop. To use this method safely, the following conditions must be met:
  • Any connections to this slot must use a Qt::QueuedConnection, or the slot must be triggered using QTimer::singleShot(), and

  • QObject::deleteLater() must be used in place of delete when deleting the dialog box object. If these conditions are not met, unexpected behavior may result.

Return:

The result of the request. See bb::system::SystemUiResult for the list of possible results.

Since:

BlackBerry 10.0.0

void show ()

Displays a dialog box based on current property values.

The result of the request can be retrieved with the SystemDialog::result property, or by using the finished() signal. The button selection can be retrieved with the SystemDialog::buttonSelection property.

Control is returned to the caller immediately. For a blocking request, use exec().

Since:

BlackBerry 10.0.0

void update ()

Updates an on-screen dialog box based on the current property values.

If the dialog box is not on the screen, this method returns immediately and no changes are made to the dialog box.

Since:

BlackBerry 10.2.0

Signals

void activityIndicatorVisibleChanged (
  • boolvalue)

Emitted when the activityIndicatorVisible property is changed programmatically.

Parameters
value

The new value of the activityIndicatorVisible property.

Since:

BlackBerry 10.2.0

void autoUpdateEnabledChanged (
  • boolvalue)

Emitted when the autoUpdateEnabled property is changed programmatically.

Parameters
value

The new value of the autoUpdateEnabled property.

Since:

BlackBerry 10.2.0

void bodyChanged (

Emitted when the body property is changed programmatically.

Parameters
value

The new value of the body property.

Since:

BlackBerry 10.0.0

void buttonAreaLimitChanged (
  • intnewButtonAreaLimit)

Emitted when the buttonAreaLimit property is changed programmatically.

Parameters
newButtonAreaLimit

The new value of the buttonAreaLimit property.

Since:

BlackBerry 10.0.0

void defaultButtonChanged (

Emitted when the defaultButton property is changed programmatically.

Parameters
newDefaultButton

The new value of the defaultButton property, or NULL if none is set.

Since:

BlackBerry 10.0.0

void dismissAutomaticallyChanged (
  • boolautomaticDismissal)

Emitted when the dismissAutomatically property is changed programmatically.

Parameters
automaticDismissal

The new value of the dismissAutomatically property.

Since:

BlackBerry 10.0.0

void emoticonsEnabledChanged (
  • boolnewEmoticonsEnabled)

Emitted when the emoticonsEnabled property is changed programmatically.

Parameters
newEmoticonsEnabled

The new value of the emoticonsEnabled property.

Since:

BlackBerry 10.0.0

void finished (

Emitted when a request is completed.

The button selection can be retrieved with buttonSelection(). The state of the check box for remembering the content of this dialog box can be retrieved using rememberMeSelection().
Parameters
value

The result of the request. See bb::system::SystemUiResult for the list of possible results.

Since:

BlackBerry 10.0.0

void includeRememberMeChanged (
  • boolvalue)

Emitted when the includeRememberMe property is changed programmatically.

Parameters
value

The new value of the includeRememberMe property.

Since:

BlackBerry 10.0.0

void modalityChanged (

Emitted when the modality property is changed programmatically.

Parameters
newModality

The new value of the modality property.

Since:

BlackBerry 10.0.0

void rememberMeCheckedChanged (
  • boolnewRememberMeSelected)

Emitted when the rememberMeChecked property is changed programmatically.

When the user dismisses the dialog box, the user selection is available using rememberMeSelection().
Parameters
newRememberMeSelected

The new value of the rememberMeChecked property.

Since:

BlackBerry 10.0.0

void rememberMeTextChanged (

Emitted when the rememberMeText property is changed programmatically.

Parameters
newRememberMeText

The new value of the rememberMeText property.

Since:

BlackBerry 10.0.0

void returnKeyActionChanged (

Emitted when the returnKeyAction property is changed programmatically.

Parameters
newReturnKeyAction

The new value of the returnKeyAction property.

Since:

BlackBerry 10.0.0

void titleChanged (

Emitted when the title property is changed programmatically.

Parameters
value

The new value of the title property.

Since:

BlackBerry 10.0.0

Last modified: 2014-09-30



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus