OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
MessageBoxManager.h
Go to the documentation of this file.
1
4// ###########################################################################################################################################################################################################################################################################################################################
5
6#pragma once
7
8// OpenTwin header
12
13namespace ot {
14
15 class MessageBoxHandler;
16
19 public:
20 static MessageBoxManager& instance(void);
21
22 static MessageDialogCfg::BasicButton showPrompt(const MessageDialogCfg& _config);
23
24 static MessageDialogCfg::BasicButton showPrompt(const std::string& _message, const std::string& _title, MessageDialogCfg::BasicIcon _icon, const MessageDialogCfg::BasicButtons& _buttons);
25
26 static MessageDialogCfg::BasicButton showInfoPrompt(const std::string& _message, const std::string& _title, const MessageDialogCfg::BasicButtons& _buttons = MessageDialogCfg::Ok);
27
28 static MessageDialogCfg::BasicButton showWarningPrompt(const std::string& _message, const std::string& _title, const MessageDialogCfg::BasicButtons& _buttons = MessageDialogCfg::Ok);
29
30 static MessageDialogCfg::BasicButton showErrorPrompt(const std::string& _message, const std::string& _title, const MessageDialogCfg::BasicButtons& _buttons = MessageDialogCfg::Ok);
31
32 void setHandler(MessageBoxHandler* _handler) { m_handler = _handler; };
33
34 private:
35 MessageDialogCfg::BasicButton forwardPromt(const MessageDialogCfg& _config);
36
37 MessageBoxHandler* m_handler;
38
41
42 };
43
44}
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY(___class)
Removes the default copy constructor and assignment operator.
Definition OTClassHelper.h:14
#define OT_WIDGETS_API_EXPORT
Definition OTWidgetsAPIExport.h:12
Definition MessageBoxHandler.h:14
Definition MessageBoxManager.h:17
void setHandler(MessageBoxHandler *_handler)
Definition MessageBoxManager.h:32
Definition MessageDialogCfg.h:17
BasicButton
Definition MessageDialogCfg.h:19
BasicIcon
Definition MessageDialogCfg.h:42
Definition Connector.h:8