qTox
Version: nightly | Commit: bc751c8e1cac455f9690654fcfe0f560d2d7dfdd
|
Go to the documentation of this file.
25 #include "audio/iaudiocontrol.h"
32 class QCommandLineParser;
60 QMenuBar* globalMenuBar;
63 QAction* minimizeAction;
64 QAction* fullscreenAction;
70 void onWindowStateChanged(Qt::WindowStates state);
72 void updateWindowsClosed();
73 void updateWindowsStates();
74 void onOpenWindow(QObject*
object);
75 void toggleFullscreen();
76 void bringAllToFront();
79 void updateWindowsArg(QWindow* closedWindow);
81 QActionGroup* windowActions =
nullptr;
92 int showLogin(
const QString& profileName = QString());
96 explicit Nexus(QObject* parent =
nullptr);
int showLogin(const QString &profileName=QString())
Hides the main GUI, delete the profile, and shows the login screen.
void setSettings(Settings *settings)
void onLoadProfile(const QString &name, const QString &pass)
Handles all qTox internal paths.
void setProfile(Profile *p)
void connectLoginScreen(const LoginScreen &loginScreen)
void onCreateNewProfile(const QString &name, const QString &pass)
Creates a new profile and replaces the current one.
static Profile * getProfile()
Get current user profile.
Nexus(QObject *parent=nullptr)
void currentProfileChanged(Profile *Profile)
std::unique_ptr< IAudioControl > audioControl
void start()
Sets up invariants and calls showLogin.
void bootstrapWithProfile(Profile *p)
QCommandLineParser * parser
static Widget * getDesktopGUI()
Get desktop GUI widget.
static void destroyInstance()
static Nexus & getInstance()
Returns the singleton instance.
void setParser(QCommandLineParser *parser)
static Core * getCore()
Get core instance.