mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-08 21:05:34 +08:00
Ref T640, FSD details as UI component and dialog
This commit is contained in:
53
src/blackgui/components/networkdetailscomponent.h
Normal file
53
src/blackgui/components/networkdetailscomponent.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/* Copyright (C) 2019
|
||||
* 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. 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 BLACKGUI_COMPONENTS_NETWORKDETAILSCOMPONENT_H
|
||||
#define BLACKGUI_COMPONENTS_NETWORKDETAILSCOMPONENT_H
|
||||
|
||||
#include <QFrame>
|
||||
#include <QScopedPointer>
|
||||
|
||||
#include "blackmisc/network/fsdsetup.h"
|
||||
#include "blackmisc/audio/voicesetup.h"
|
||||
#include "blackcore/network.h"
|
||||
|
||||
namespace Ui { class CNetworkDetailsComponent; }
|
||||
namespace BlackGui
|
||||
{
|
||||
namespace Components
|
||||
{
|
||||
//! FSD details
|
||||
class CNetworkDetailsComponent : public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
//! Ctor
|
||||
explicit CNetworkDetailsComponent(QWidget *parent = nullptr);
|
||||
|
||||
//! Dtor
|
||||
virtual ~CNetworkDetailsComponent() override;
|
||||
|
||||
//! FSD setup
|
||||
BlackMisc::Network::CFsdSetup getFsdSetup() const;
|
||||
|
||||
//! Voice setup
|
||||
BlackMisc::Audio::CVoiceSetup getVoiceSetup() const;
|
||||
|
||||
//! Login mode
|
||||
BlackCore::INetwork::LoginMode getLoginMode() const;
|
||||
|
||||
private:
|
||||
QScopedPointer<Ui::CNetworkDetailsComponent> ui;
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
Reference in New Issue
Block a user