56 void create(rdpContext* context);
59 bool isRunning()
const;
60 bool isVisible()
const;
62 bool handleEvent(
const SDL_Event& event);
64 WINPR_ATTR_FORMAT_ARG(2, 3)
65 void setTitle(WINPR_FORMAT_ARG const
char* fmt, ...);
66 void setTitle(const std::
string& title);
68 WINPR_ATTR_FORMAT_ARG(2, 3)
69 void showInfo(WINPR_FORMAT_ARG const
char* fmt, ...);
70 void showInfo(const std::
string& info);
72 WINPR_ATTR_FORMAT_ARG(2, 3)
73 void showWarn(WINPR_FORMAT_ARG const
char* fmt, ...);
74 void showWarn(const std::
string& info);
76 WINPR_ATTR_FORMAT_ARG(2, 3)
77 void showError(WINPR_FORMAT_ARG const
char* fmt, ...);
78 void showError(const std::
string& error);
82 void show(
bool visible = true);
90 EventArg(
bool visible);
91 EventArg(
const std::string& title);
92 EventArg(SdlConnectionDialogWrapper::MsgType type,
const std::string& msg,
bool visible);
94 bool hasTitle()
const;
95 const std::string& title()
const;
97 bool hasMessage()
const;
98 const std::string& message()
const;
100 bool hasType()
const;
101 SdlConnectionDialogWrapper::MsgType type()
const;
103 bool hasVisibility()
const;
104 bool visible()
const;
106 std::string str()
const;
109 std::string _title{};
110 std::string _message{};
111 SdlConnectionDialogWrapper::MsgType _type = MSG_NONE;
112 bool _visible =
false;
115 void push(EventArg&& arg);
117 mutable std::mutex _mux;
118 std::unique_ptr<SDLConnectionDialog> _connection_dialog;
119 std::queue<EventArg> _queue;