CDC Badge OS
Firmware for the CDC Badge v1.0 hardware security key
Loading...
Searching...
No Matches
MessageBox.h File Reference
#include "cdc_ui/IView.h"
#include <cstdint>

Go to the source code of this file.

Classes

class  cdc::ui::MessageBox

Namespaces

namespace  cdc
namespace  cdc::ui
 Centralized key-code constants for cdc_views.

Enumerations

enum class  cdc::ui::MessageIcon : uint8_t {
  cdc::ui::NONE = 0 , cdc::ui::SUCCESS , cdc::ui::ERROR , cdc::ui::INFO ,
  cdc::ui::WARNING
}

Functions

void cdc::ui::showMessage (const char *message, MessageIcon icon, uint32_t timeoutMs, MessageBox::CloseCallback onClose)
 Shows the shared modal message box.
void cdc::ui::showSuccess (const char *message, uint32_t timeoutMs=2000)
void cdc::ui::showError (const char *message, uint32_t timeoutMs=2000)
void cdc::ui::hideMessage ()
 Hides the currently shown modal message box.