Files
pilotclient/src/swiftguistandard/swiftguistdapplication.h
Klaus Basan 0fc34be74f refs #846, use CStatusMessageList instead bool
More detailed error messages
2017-01-10 23:46:02 +00:00

54 lines
1.5 KiB
C++

/* Copyright (C) 2016
* swift project Community / Contributors
*
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
* including this file, may be copied, modified, propagated, or distributed except according to the terms
* contained in the LICENSE file.
*/
//! \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: (e)xternal, (g)ui (in GUI process), (l)ocalaudio (external, but local audio)."),
"coremode"
}; //!< Facade startup mode
};
#endif // guard