mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
refs #485, first version of a Gui/Core application class
Also specialized GUI application class for standard GUI
This commit is contained in:
committed by
Mathew Sutcliffe
parent
d9aac6427b
commit
158efe819a
@@ -31,41 +31,34 @@ class CSwiftCore :
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
|
||||
//! SwiftCore setup information
|
||||
struct SetupInfo
|
||||
{
|
||||
SetupInfo() {}
|
||||
|
||||
bool m_minimzed = false; //!< Start minimized to tray
|
||||
bool m_start = false; //!< Start server when core is started
|
||||
bool m_coreAudio = false; //!< Audio in core
|
||||
QString m_dbusAddress; //!< DBus address (session, system, p2p)
|
||||
};
|
||||
|
||||
//! Constructor
|
||||
CSwiftCore(const SetupInfo &info, QWidget *parent = nullptr);
|
||||
CSwiftCore(QWidget *parent = nullptr);
|
||||
|
||||
//! Destructor
|
||||
~CSwiftCore();
|
||||
|
||||
private slots:
|
||||
// PushButton slots
|
||||
//! \name PushButton slots
|
||||
//! @[
|
||||
void ps_startCorePressed();
|
||||
void ps_stopCorePressed();
|
||||
void ps_appendLogMessage(const BlackMisc::CStatusMessage &message);
|
||||
void ps_p2pModeToggled(bool checked);
|
||||
//! }@
|
||||
|
||||
//! Style sheet has changed
|
||||
virtual void ps_onStyleSheetsChanged();
|
||||
|
||||
private:
|
||||
//! \name Init
|
||||
//! @[
|
||||
void initSlots();
|
||||
void initLogDisplay();
|
||||
void initStyleSheet();
|
||||
void initDBusMode(const SetupInfo &setup);
|
||||
void initDBusMode();
|
||||
//! }@
|
||||
|
||||
void startCore(const SetupInfo &setup);
|
||||
void startCore(const QString &dBusAdress);
|
||||
void stopCore();
|
||||
QString getDBusAddress() const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user