6 #ifndef SWIFT_MISC_NETWORK_DATA_LASTSERVER_H
7 #define SWIFT_MISC_NETWORK_DATA_LASTSERVER_H
13 namespace swift::misc::network::data
19 static const char *
key() {
return "lastserver"; }
22 static constexpr
bool isPinned() {
return true; }
27 static const QString name(
"Last used server");
Base class for traits to be used as template argument to swift::misc::CData.
Trait for last (most recently) used server and user.
static const char * key()
Key string of the value. Reimplemented in derived class.
static constexpr bool isPinned()
If true, then value will be synchronously loaded when CDataCache is constructed. Good for small,...
static const QString & humanReadable()
Optional human readable name.