namespace CCL::Alert

Overview

Alert functions. More…

namespace Alert {

// enums

enum AlertType;
enum CustomResult;
enum QuestionType;
enum StandardResult;

// structs

struct Event;
struct IReporter;

// classes

class ErrorContextDialog;

// global functions

static int runWithTypeModal (StringRef text, AlertType type);
static IAsyncOperation* runWithTypeAsync (StringRef text, AlertType type);
void warn (StringRef text);
IAsyncOperation* warnAsync (StringRef text);
void info (StringRef text);
IAsyncOperation* infoAsync (StringRef text);
void error (StringRef text);
IAsyncOperation* errorAsync (StringRef text);
int ask (StringRef text, int type = kYesNo);
IAsyncOperation* askAsync (StringRef text, int type = kYesNo);

int ask (
    StringRef text,
    StringRef firstButton,
    StringRef secondButton,
    StringRef thirdButton = nullptr
);

IAsyncOperation* askAsync (
    StringRef text,
    StringRef firstButton,
    StringRef secondButton,
    StringRef thirdButton = nullptr
);

bool notify (StringRef text, int type = kInformation);
IReporter& getReporter (bool silent = false);
void errorWithContext (StringRef text, bool forceDialog = false);

IAsyncOperation* errorWithContextAsync (
    StringRef text,
    bool forceDialog = false
);

int askWithContext (StringRef text, int type = kYesNo);
IAsyncOperation* askWithContextAsync (StringRef text, int type = kYesNo);
StringRef button (StandardResult result);
Severity toSeverity (AlertType type);
AlertType toAlertType (Severity severity);

bool showErrorContextList (
    IErrorContext* context,
    StringRef text = nullptr,
    StringRef question = nullptr,
    bool deep = false
);

} // namespace Alert

Detailed Documentation

Alert functions.

Global Functions

Severity toSeverity (AlertType type)

Alert type to severity conversion.

AlertType toAlertType (Severity severity)

Severity to alert type conversion.