Mixxx

ErrorDialogHandler Class Reference

#include <errordialoghandler.h>

Collaboration diagram for ErrorDialogHandler:

List of all members.

Signals

void showErrorDialog (ErrorDialogProperties *props)
void stdButtonClicked (QString key, QMessageBox::StandardButton whichStdButton)

Public Member Functions

 ~ErrorDialogHandler ()
ErrorDialogPropertiesnewDialogProperties ()
bool requestErrorDialog (DialogType type, QString message)
bool requestErrorDialog (ErrorDialogProperties *props)
bool checkError ()

Static Public Member Functions

static ErrorDialogHandlerinstance ()

Detailed Description

Singleton class because we only need one Handler to manage all error dialogs

Definition at line 97 of file errordialoghandler.h.


Constructor & Destructor Documentation

ErrorDialogHandler::~ErrorDialogHandler ( )

Definition at line 74 of file errordialoghandler.cpp.


Member Function Documentation

bool ErrorDialogHandler::checkError ( )

Allows a means for main() to skip exec() if there was a critical or fatal error dialog displayed on app initialization

Definition at line 208 of file errordialoghandler.cpp.

static ErrorDialogHandler* ErrorDialogHandler::instance ( ) [inline, static]

Definition at line 100 of file errordialoghandler.h.

Here is the caller graph for this function:

ErrorDialogProperties * ErrorDialogHandler::newDialogProperties ( )

Call this to get a new instance of ErrorDialogProperties to populate with data

Definition at line 80 of file errordialoghandler.cpp.

Here is the caller graph for this function:

bool ErrorDialogHandler::requestErrorDialog ( ErrorDialogProperties props)

Definition at line 103 of file errordialoghandler.cpp.

Here is the call graph for this function:

bool ErrorDialogHandler::requestErrorDialog ( DialogType  type,
QString  message 
)

A qMessageHandler or any thread calls either of these to emit a signal to display the requested message box They return false if a dialog with the same key (or title if no key) is already displayed

Definition at line 85 of file errordialoghandler.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ErrorDialogHandler::showErrorDialog ( ErrorDialogProperties props) [signal]

Here is the caller graph for this function:

void ErrorDialogHandler::stdButtonClicked ( QString  key,
QMessageBox::StandardButton  whichStdButton 
) [signal]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines