swift
Static Public Member Functions | List of all members
swift::misc::network::data::TLastServer Struct Reference

Trait for last (most recently) used server and user. More...

Inheritance diagram for swift::misc::network::data::TLastServer:
[legend]

Static Public Member Functions

static const char * key ()
 Key string of the value. Reimplemented in derived class. More...
 
static constexpr bool isPinned ()
 If true, then value will be synchronously loaded when CDataCache is constructed. Good for small, important values; bad for large ones. More...
 
static const QString & humanReadable ()
 Optional human readable name. More...
 
- Static Public Member Functions inherited from swift::misc::TDataTrait< CServer >
static const char * key ()
 Key string of the value. Reimplemented in derived class.
 
static const QString & humanReadable ()
 Optional human readable name.
 
static bool isValid (const CServer &value, QString &reason)
 Validator function. Return true if the argument is valid, false otherwise. Default implementation just returns true. Reimplemented in derived class to support validation of the value.
 
static const CServer & defaultValue ()
 Return the value to use in case the supplied value does not satisfy the validator. Default implementation returns a default-constructed value.
 
static int timeToLive ()
 Number of milliseconds after which cached value becomes stale. Default is -1 which means value never becomes stale.
 
static constexpr bool isPinned ()
 If true, then value will be synchronously loaded when CDataCache is constructed. Good for small, important values; bad for large ones.
 
static constexpr bool isDeferred ()
 If true, then value will not be loaded until it is explicitly admitted. Good for large values the loading of which might depend on some other condition.
 
static constexpr bool isSession ()
 If true, then upon starting an application, value will be overwritten with the default if there are no other applications currently using the cache. In effect, the value is retained only while there are applications using the cache.
 

Additional Inherited Members

- Public Types inherited from swift::misc::TDataTrait< CServer >
using type = CServer
 Data type of the value.
 
- Public Member Functions inherited from swift::misc::TDataTrait< CServer >
 TDataTrait ()=delete
 Deleted default constructor.
 
 TDataTrait (const TDataTrait &)=delete
 Deleted copy constructor.
 
TDataTraitoperator= (const TDataTrait &)=delete
 Deleted copy assignment operator.
 

Detailed Description

Trait for last (most recently) used server and user.

Definition at line 16 of file lastserver.h.

Member Function Documentation

◆ humanReadable()

static const QString& swift::misc::network::data::TLastServer::humanReadable ( )
inlinestatic

Optional human readable name.

Definition at line 25 of file lastserver.h.

◆ isPinned()

static constexpr bool swift::misc::network::data::TLastServer::isPinned ( )
inlinestaticconstexpr

If true, then value will be synchronously loaded when CDataCache is constructed. Good for small, important values; bad for large ones.

Definition at line 22 of file lastserver.h.

◆ key()

static const char* swift::misc::network::data::TLastServer::key ( )
inlinestatic

Key string of the value. Reimplemented in derived class.

Definition at line 19 of file lastserver.h.


The documentation for this struct was generated from the following file: