mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-22 05:05:38 +08:00
refs #497 Login component integrated with authentication service
This commit is contained in:
committed by
Mathew Sutcliffe
parent
7cb4c6a6c6
commit
5ae502af34
@@ -13,6 +13,7 @@
|
||||
#define BLACKGUI_COMPONENTS_DBLOGINCOMPONENT_H
|
||||
|
||||
#include "blackgui/blackguiexport.h"
|
||||
#include "blackcore/databaseauthentication.h"
|
||||
#include "blackcore/data/globalsetup.h"
|
||||
#include <QFrame>
|
||||
#include <QScopedPointer>
|
||||
@@ -39,17 +40,28 @@ namespace BlackGui
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CDbLoginComponent> ui;
|
||||
BlackCore::CData<BlackCore::Data::GlobalSetup> m_setup {this}; //!< data cache
|
||||
BlackCore::CData<BlackCore::Data::GlobalSetup> m_setup {this, &CDbLoginComponent::ps_setupChanged}; //!< data cache
|
||||
BlackCore::CDatabaseAuthenticationService m_loginService {this}; //!< login service
|
||||
|
||||
//! Overlay messages
|
||||
void displayOverlayMessages(const BlackMisc::CStatusMessageList &msgs);
|
||||
|
||||
//! Mode login
|
||||
void setModeLogin(bool modeLogin);
|
||||
|
||||
private slots:
|
||||
//! Login
|
||||
void ps_onLoginClicked();
|
||||
|
||||
};
|
||||
//! Logoff
|
||||
void ps_onLogoffClicked();
|
||||
|
||||
//! User authentication completed
|
||||
void ps_AuthenticationFinished(const BlackMisc::Network::CAuthenticatedUser &user, const BlackMisc::CStatusMessageList &status);
|
||||
|
||||
//! Setup changed
|
||||
void ps_setupChanged();
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
|
||||
Reference in New Issue
Block a user