mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-01 22:55:41 +08:00
Ref T420, style
This commit is contained in:
@@ -12,11 +12,11 @@
|
|||||||
#ifndef BLACKMISC_NETWORK_SETTINGS_NETWORKSETTINGS_H
|
#ifndef BLACKMISC_NETWORK_SETTINGS_NETWORKSETTINGS_H
|
||||||
#define BLACKMISC_NETWORK_SETTINGS_NETWORKSETTINGS_H
|
#define BLACKMISC_NETWORK_SETTINGS_NETWORKSETTINGS_H
|
||||||
|
|
||||||
#include "blackmisc/blackmiscexport.h"
|
|
||||||
#include "blackmisc/metaclass.h"
|
|
||||||
#include "blackmisc/propertyindex.h"
|
#include "blackmisc/propertyindex.h"
|
||||||
|
#include "blackmisc/metaclass.h"
|
||||||
#include "blackmisc/valueobject.h"
|
#include "blackmisc/valueobject.h"
|
||||||
#include "blackmisc/variant.h"
|
#include "blackmisc/variant.h"
|
||||||
|
#include "blackmisc/blackmiscexport.h"
|
||||||
|
|
||||||
#include <QJsonObject>
|
#include <QJsonObject>
|
||||||
#include <QMetaType>
|
#include <QMetaType>
|
||||||
|
|||||||
@@ -16,7 +16,6 @@
|
|||||||
#include "blackmisc/settingscache.h"
|
#include "blackmisc/settingscache.h"
|
||||||
#include "blackmisc/valueobject.h"
|
#include "blackmisc/valueobject.h"
|
||||||
|
|
||||||
|
|
||||||
namespace BlackMisc
|
namespace BlackMisc
|
||||||
{
|
{
|
||||||
namespace Network
|
namespace Network
|
||||||
@@ -43,7 +42,7 @@ namespace BlackMisc
|
|||||||
//! \copydoc BlackMisc::TSettingTrait::key
|
//! \copydoc BlackMisc::TSettingTrait::key
|
||||||
static const char *key() { return "network/currenttrafficserver"; }
|
static const char *key() { return "network/currenttrafficserver"; }
|
||||||
|
|
||||||
//! \copydoc BlackCore::TSettingTrait::humanReadable
|
//! \copydoc BlackMisc::TSettingTrait::humanReadable
|
||||||
static const QString &humanReadable() { static const QString name("Current traffic servers"); return name; }
|
static const QString &humanReadable() { static const QString name("Current traffic servers"); return name; }
|
||||||
|
|
||||||
//! \copydoc BlackMisc::TSettingTrait::defaultValue
|
//! \copydoc BlackMisc::TSettingTrait::defaultValue
|
||||||
@@ -53,6 +52,18 @@ namespace BlackMisc
|
|||||||
return dv;
|
return dv;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* Auto logoff
|
||||||
|
*/
|
||||||
|
struct TAutoLogoff : public TSettingTrait<bool>
|
||||||
|
{
|
||||||
|
//! \copydoc BlackMisc::TSettingTrait::key
|
||||||
|
static const char *key() { return "network/autologoff"; }
|
||||||
|
|
||||||
|
//! \copydoc BlackMisc::TSettingTrait::humanReadable
|
||||||
|
static const QString &humanReadable() { static const QString name("Auto logoff"); return name; }
|
||||||
|
};
|
||||||
} // ns
|
} // ns
|
||||||
} // ns
|
} // ns
|
||||||
} // ns
|
} // ns
|
||||||
|
|||||||
Reference in New Issue
Block a user