Class sh::actions::ActionExecutionUserFeedback

class sh::actions::ActionExecutionUserFeedback

Methods for user interaction in an action execution.

When an action executes, it may need to ask the user for some input at some time. An action implementation can do so by calling those methods. It is available as a member of the ActionExecutionInfo class. An instance of it is available in each action execution.

Subclassed by sh::ui::ActionExecutionInfoDialog

Public Types

enum MessageBoxButton

Buttons in a message box from ActionExecutionUserFeedback.

Values:

enumerator NONE = 0
enumerator OK = 1 << 0
enumerator Continue = 1 << 1
enumerator Cancel = 1 << 2
enumerator Retry = 1 << 3
enumerator Yes = 1 << 4
enumerator No = 1 << 5

Public Functions

int messageBox(QString text, QList<QString> answers, QString icon = QString(), int defaultanswer = -1, int cancelanswer = -1, QList<QString> answericons = QList<QString>()) = 0
int inputBox(QString text, QList<QString> answers, QString *value, QString icon = QString(), int defaultanswer = -1, int cancelanswer = -1, int valuePreselectFrom = -1, int valuePreselectTo = -1) = 0
int multilineInputBox(QString text, QList<QString> answers, QString *value, QString icon = QString(), int defaultanswer = -1, int cancelanswer = -1) = 0
int simpleChooserGridform(QString text, GridformEntries *entries, QStringList answers, int defaultanswer = -1, int cancelanswer = -1) = 0
bool credentialsDialog(QString text, bool showDomain, bool showUsername, bool showPassword, bool showAnonymous, bool showRemember, QString *domain, QString *username, QString *password, bool *isAnonymous, bool *isRemember) = 0
bool unixPermissionsDialog(bool *userMayRead, bool *userMayWrite, bool *userMayExecute, bool *groupMayRead, bool *groupMayWrite, bool *groupMayExecute, bool *othersMayRead, bool *othersMayWrite, bool *othersMayExecute, bool *sticky, bool *setuid, bool *setgid, QStringList users, QStringList groups, QString *ownerUser, QString *ownerGroup) = 0
QString simpleInputBox(QString text, QString deflt, int valuePreselectFrom = -1, int valuePreselectTo = -1)
int simpleMessageBox(QString text, int buttons = (int)MessageBoxButton::OK, QString icon = QString(), int defaultbutton = (MessageBoxButton)0, int cancelbutton = (MessageBoxButton)0)
~ActionExecutionUserFeedback()
class Choice

A data structure for a choice (in an GridformEntry).

Public Functions

Choice(QString label, QString text = QString())

Public Members

QString label
QString text
class Choices

A data structure for a list of Choice instances.

Public Members

QList<Choice*> list
int selected = -1
class GridformEntries

A data structure for a list of entries in a simple chooser grid form.

Public Functions

GridformEntries()

Is intended to be directly constructed from everywhere.

~GridformEntries()
GridformEntry *newEntry(QString label)

Public Members

QList<GridformEntry*> list
class GridformEntry

A data structure for an entry in a simple chooser grid form.

Public Functions

GridformEntry(QString label, Choices choices)

Constructed only indirectly.

~GridformEntry()
int addChoice(QString label, QString text = QString())

Public Members

QString label
Choices choices