Ref T301, login component can re-init and hence reconnect to core

This commit is contained in:
Klaus Basan
2018-08-12 03:13:33 +02:00
parent 60b3ed65ab
commit 64dc16168c
2 changed files with 53 additions and 17 deletions

View File

@@ -30,6 +30,7 @@
#include <QFrame>
#include <QIcon>
#include <QTimer>
#include <QObject>
#include <QScopedPointer>
#include <QString>
@@ -115,12 +116,6 @@ namespace BlackGui
//! Callsign from GUI
BlackMisc::Aviation::CCallsign getCallsignFromGui() const;
//! Set ICAO values
//! \return changed values?
bool setGuiIcaoValues(const BlackMisc::Simulation::CAircraftModel &model, bool onlyIfEmpty);
// -------------- values to GUI -----------------
//! Update own callsign (own aircraft from what is set in the GUI)
//! \return changed?
bool updateOwnAircraftCallsignAndPilotFromGuiValues();
@@ -129,6 +124,18 @@ namespace BlackGui
//! \return changed?
bool updateOwnAircaftIcaoValuesFromGuiValues();
// -------------- values to GUI -----------------
//! Update GUI values
void updateGui();
//! Set ICAO values
//! \return changed values?
bool setGuiIcaoValues(const BlackMisc::Simulation::CAircraftModel &model, bool onlyIfEmpty);
//! Set the "login as" values
void setGuiLoginAsValues(const BlackMisc::Simulation::CSimulatedAircraft &ownAircraft);
// -------------- others -----------------
//! Selected server (VATSIM)
@@ -206,8 +213,8 @@ namespace BlackGui
//! Tab widget (server) changed
void onServerTabWidgetChanged(int index);
//! Has contexts
bool hasContexts();
//! Has contexts?
bool hasValidContexts();
static const int OverlayMessageMs = 5000;
QScopedPointer<Ui::CLoginComponent> ui;