|
ORE Studio 0.0.4
|
Login dialog with dark theme. More...
#include <LoginDialog.hpp>
Inherits QWidget.

Classes | |
| struct | QuickConnectItem |
| An item for the unified quick-connect combo. More... | |
Signals | |
| void | loginSucceeded (const QString &username) |
| Emitted when login succeeds. | |
| void | httpBaseUrlDiscovered (const QString &baseUrl) |
| Emitted when the HTTP base URL is discovered via NATS service discovery during login. May not be emitted if the HTTP server does not have NATS enabled. | |
| void | loginFailed (const QString &errorMessage) |
| Emitted when login fails. | |
| void | signUpRequested () |
| void | closeRequested () |
| void | environmentSelected (const QString &environmentName) |
| Emitted when an environment is selected from the quick-connect combo. MainWindow handles this by filling host+port. Credentials remain editable. | |
| void | connectionSelected (const QString &connectionName) |
| Emitted when a full connection is selected from the quick-connect combo. MainWindow handles this by filling all fields including credentials. | |
| void | bootstrapModeDetected () |
| Emitted when the server is in bootstrap mode. | |
| void | tenantBootstrapDetected () |
| Emitted when the tenant is in bootstrap mode. | |
Public Member Functions | |
| LoginDialog (QWidget *parent=nullptr) | |
| QSize | sizeHint () const override |
| void | setQuickConnectItems (const QList< QuickConnectItem > &items) |
| Populate the quick-connect combo with environments and connections. | |
| void | setServer (const QString &server) |
| Set the server/host field value. | |
| void | setPort (int port) |
| Set the port field value. | |
| void | setUsername (const QString &username) |
| Set the username field value. | |
| void | setPassword (const QString &password) |
| Set the password field value. | |
| void | setSubjectPrefix (const QString &prefix) |
| Set the NATS subject prefix field value. | |
| void | setClientManager (ClientManager *clientManager) |
| Set the client manager for performing login. | |
| QString | getUsername () const |
| Get the username that was used for login. | |
| QString | getPassword () const |
| Get the password that was entered for login. | |
| QString | getServer () const |
| Get the current server/host field value. | |
| int | getPort () const |
| Get the current port field value. | |
| QString | getSubjectPrefix () const |
| Get the current subject prefix field value. | |
Protected Member Functions | |
| void | keyPressEvent (QKeyEvent *event) override |
Login dialog with dark theme.
Provides a clean login form with username, password, and server fields. Supports a unified quick-connect combo showing both environments (fills host+port only) and full connections (fills all fields including credentials).
| void setQuickConnectItems | ( | const QList< QuickConnectItem > & | items | ) |
Populate the quick-connect combo with environments and connections.
Environments are shown under an "Environments" header and fill host+port when selected. Connections are shown under a "Connections" header and fill all fields including credentials. The combo is hidden when items is empty.