20#ifndef ORES_QT_LOGINDIALOG_HPP
21#define ORES_QT_LOGINDIALOG_HPP
28#include "ores.qt/ClientManager.hpp"
42 inline static std::string_view logger_name =
"ores.qt.login_dialog";
46 static auto instance = make_logger(logger_name);
63 std::string
getUsername()
const {
return username_edit_->text().toStdString(); }
66 void onLoginClicked();
74 void enableForm(
bool enabled);
78 QLineEdit* username_edit_;
79 QLineEdit* password_edit_;
80 QLineEdit* host_edit_;
81 QSpinBox* port_spinbox_;
82 QPushButton* login_button_;
83 QPushButton* cancel_button_;
84 QLabel* status_label_;
Qt-based graphical user interface for ORE Studio.
Definition AboutDialog.hpp:35
Implements logging for ORE Studio.
Definition lifecycle_manager.hpp:30
Result of a login attempt.
Definition ClientManager.hpp:43
Manages the lifecycle of the network client and IO context.
Definition ClientManager.hpp:56
Dialog for user authentication and server connection.
Definition LoginDialog.hpp:38
std::string getUsername() const
Get the logged-in username.
Definition LoginDialog.hpp:63