mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 16:55:36 +08:00
47 lines
1.1 KiB
C++
47 lines
1.1 KiB
C++
// SPDX-FileCopyrightText: Copyright (C) 2016 swift Project Community / Contributors
|
|
// SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-swift-pilot-client-1
|
|
|
|
//! \file
|
|
|
|
#ifndef SWIFTGUISTDAPPLICATION_H
|
|
#define SWIFTGUISTDAPPLICATION_H
|
|
|
|
#include "blackgui/guiapplication.h"
|
|
|
|
#include <QCommandLineOption>
|
|
#include <QCoreApplication>
|
|
#include <QObject>
|
|
#include <QString>
|
|
|
|
/*!
|
|
* Specialized GUI application for swift pilot client.
|
|
* Handles parsing of some specialized CMD line argumenets and startup of core
|
|
*/
|
|
class CSwiftGuiStdApplication : public BlackGui::CGuiApplication
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
//! Constructor
|
|
CSwiftGuiStdApplication();
|
|
|
|
//! Single instance
|
|
CSwiftGuiStdApplication *instance();
|
|
|
|
protected:
|
|
//! Parsing of special CMD args
|
|
virtual bool parsingHookIn() override;
|
|
|
|
//! Start facade by cmd arguments
|
|
virtual BlackMisc::CStatusMessageList startHookIn() override;
|
|
|
|
private:
|
|
QCommandLineOption m_cmdFacadeMode {
|
|
{ "c", "core" },
|
|
QCoreApplication::translate("main", "Core mode: (d)istributed, (s)tandalone."),
|
|
"coremode"
|
|
}; //!< Facade startup mode
|
|
};
|
|
|
|
#endif // guard
|