mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-11 14:45:33 +08:00
refs #544 doxygen
This commit is contained in:
committed by
Mathew Sutcliffe
parent
72019961eb
commit
1b46e0400c
@@ -24,10 +24,10 @@ namespace BlackCore
|
||||
//! User configured hotkeys
|
||||
struct ActionHotkeys : public CSettingTrait<BlackMisc::Input::CActionHotkeyList>
|
||||
{
|
||||
//! \copydoc BlackCore::CSetting::key
|
||||
//! \copydoc BlackCore::CSettingTrait::key
|
||||
static const char *key() { return "application/actionhotkeys"; }
|
||||
|
||||
//! \copydoc BlackCore::CSetting::isValid
|
||||
//! \copydoc BlackCore::CSettingTrait::isValid
|
||||
static bool isValid(const BlackMisc::Input::CActionHotkeyList &value)
|
||||
{
|
||||
for (const auto &actionHotkey : value)
|
||||
|
||||
@@ -24,13 +24,13 @@ namespace BlackCore
|
||||
//! Name of text codec to use with text in FSD protocol
|
||||
struct AudioSettings : public CSettingTrait<BlackMisc::Audio::Settings::CSettingsAudio>
|
||||
{
|
||||
//! \copydoc BlackCore::CSetting::key
|
||||
//! \copydoc BlackCore::CSettingTrait::key
|
||||
static const char *key() { return "audio/setup"; }
|
||||
|
||||
//! \copydoc BlackCore::CSetting::defaultValue
|
||||
//! \copydoc BlackCore::CSettingTrait::defaultValue
|
||||
static const BlackMisc::Audio::Settings::CSettingsAudio &defaultValue() { static const BlackMisc::Audio::Settings::CSettingsAudio a; return a; }
|
||||
|
||||
//! \copydoc BlackCore::CSetting::isValid
|
||||
//! \copydoc BlackCore::CSettingTrait::isValid
|
||||
static bool isValid(const BlackMisc::Audio::Settings::CSettingsAudio &value) { Q_UNUSED(value); return true; }
|
||||
};
|
||||
|
||||
|
||||
@@ -25,30 +25,30 @@ namespace BlackCore
|
||||
//! Name of text codec to use with text in FSD protocol
|
||||
struct WireTextCodec : public CSettingTrait<QString>
|
||||
{
|
||||
//! \copydoc BlackCore::CSetting::key
|
||||
//! \copydoc BlackCore::CSettingTrait::key
|
||||
static const char *key() { return "network/wiretextcodec"; }
|
||||
|
||||
//! \copydoc BlackCore::CSetting::defaultValue
|
||||
//! \copydoc BlackCore::CSettingTrait::defaultValue
|
||||
static const QString &defaultValue() { static const QString dv("latin1"); return dv; }
|
||||
|
||||
//! \copydoc BlackCore::CSetting::isValid
|
||||
//! \copydoc BlackCore::CSettingTrait::isValid
|
||||
static bool isValid(const QString &value) { return QTextCodec::codecForName(qPrintable(value)); }
|
||||
};
|
||||
|
||||
//! Virtual air traffic servers
|
||||
struct TrafficServers : public CSettingTrait<BlackMisc::Network::CServerList>
|
||||
{
|
||||
//! \copydoc BlackCore::CSetting::key
|
||||
//! \copydoc BlackCore::CSettingTrait::key
|
||||
static const char *key() { return "network/trafficservers"; }
|
||||
};
|
||||
|
||||
//! Currently selected virtual air traffic server
|
||||
struct CurrentTrafficServer : public CSettingTrait<BlackMisc::Network::CServer>
|
||||
{
|
||||
//! \copydoc BlackCore::CSetting::key
|
||||
//! \copydoc BlackCore::CSettingTrait::key
|
||||
static const char *key() { return "network/currenttrafficserver"; }
|
||||
|
||||
//! \copydoc BlackCore::CSetting::defaultValue
|
||||
//! \copydoc BlackCore::CSettingTrait::defaultValue
|
||||
static const BlackMisc::Network::CServer &defaultValue()
|
||||
{
|
||||
using namespace BlackMisc::Network;
|
||||
@@ -60,10 +60,10 @@ namespace BlackCore
|
||||
//! DBus server address
|
||||
struct DBusServerAddress : public CSettingTrait<QString>
|
||||
{
|
||||
//! \copydoc BlackCore::CSetting::key
|
||||
//! \copydoc BlackCore::CSettingTrait::key
|
||||
static const char *key() { return "network/dbusserver"; }
|
||||
|
||||
//! \copydoc BlackCore::CSetting::defaultValue
|
||||
//! \copydoc BlackCore::CSettingTrait::defaultValue
|
||||
static const QString &defaultValue() { static const QString dv("session"); return dv; }
|
||||
};
|
||||
} // ns
|
||||
|
||||
Reference in New Issue
Block a user