AbstractErrorManager

// The core and its managers are located in this header
#include "CoreInterface.h"

// Use this global function to access the errors manager
mv::errors()->...

Qualified name: mv::AbstractErrorManager

class AbstractErrorManager : public mv::AbstractManager

Abstract error manager class.

Base abstract error manager class

Author

Thomas Kroes

Public Functions

inline AbstractErrorManager(QObject *parent)

Construct manager with pointer to parent object.

Parameters:

parent – Pointer to parent object

virtual void showErrorLoggingConsentDialog() = 0

Show the error logging consent dialog.

inline virtual const gui::ToggleAction &getLoggingUserHasOptedAction() const

Get action for asking the user for consent to log errors.

inline virtual const gui::ToggleAction &getLoggingEnabledAction() const

Get action for user has opted.

inline virtual const gui::StringAction &getLoggingDsnAction() const

Get action for logging enabled.

inline virtual const gui::ToggleAction &getLoggingShowCrashReportDialogAction() const

Get action for logging data source name (DSN)

Protected Functions

inline AbstractErrorLogger *getErrorLogger() const

Get the error logger.

Returns:

Pointer to the error logger (maybe nullptr)

inline void setErrorLogger(AbstractErrorLogger *errorLogger)

Set the error logger to errorLogger.

Parameters:

errorLogger – Pointer to the error logger (maybe nullptr)

virtual gui::TriggerAction &getLoggingAskConsentDialogAction() = 0

Get action for showing a crash report dialog when the application fails.

virtual gui::ToggleAction &getLoggingUserHasOptedAction() = 0

Get action for asking the user for consent to log errors.

virtual gui::ToggleAction &getLoggingEnabledAction() = 0

Get action for user has opted.

virtual gui::StringAction &getLoggingDsnAction() = 0

Get action for logging enabled.

virtual gui::ToggleAction &getLoggingShowCrashReportDialogAction() = 0

Get action for logging data source name (DSN)