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 explicit EventArg(
bool visible);
91 explicit EventArg(
const std::string& title);
92 EventArg(SdlConnectionDialogWrapper::MsgType type,
const std::string& msg,
bool visible);
94 [[nodiscard]]
bool hasTitle()
const;
95 [[nodiscard]]
const std::string& title()
const;
97 [[nodiscard]]
bool hasMessage()
const;
98 [[nodiscard]]
const std::string& message()
const;
100 [[nodiscard]]
bool hasType()
const;
101 [[nodiscard]] SdlConnectionDialogWrapper::MsgType type()
const;
103 [[nodiscard]]
bool hasVisibility()
const;
104 [[nodiscard]]
bool visible()
const;
106 [[nodiscard]] std::string str()
const;
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;