swift
Public Types | Static Public Member Functions | List of all members
swift::misc::db::CDbFlags Class Reference

What and how to read web services. More...

Public Types

enum  DataRetrievalModeFlag {
  Unspecified = 0 , DbReading = 1 << 0 , DbWriting = 1 << 1 , Shared = 1 << 2 ,
  SharedInfoOnly = 1 << 3 , Cached = 1 << 4 , Canceled = 1 << 5 , Ignore = 1 << 6 ,
  CacheThenDb = DbReading | Cached , CacheThenShared = Shared | Cached , CacheAndSharedInfo = SharedInfoOnly | Cached , DbReadingOrShared = DbReading | Shared
}
 Which data to read, requires corresponding readers. More...
 

Static Public Member Functions

static bool readsFromWeb (CDbFlags::DataRetrievalMode mode)
 Reads from web (or just cached)
 
static QString flagToString (DataRetrievalModeFlag flag)
 Convert to string.
 
static QString flagToString (CDbFlags::DataRetrievalMode mode)
 Convert to string.
 
static DataRetrievalModeFlag modeToModeFlag (DataRetrievalMode mode)
 Mode to flag. More...
 
static DataRetrievalMode adjustWhenDbIsDown (DataRetrievalMode mode)
 Adjust flag as we already know DB is down.
 
static void registerMetadata ()
 Register metadata.
 

Detailed Description

What and how to read web services.

Definition at line 20 of file dbflags.h.

Member Enumeration Documentation

◆ DataRetrievalModeFlag

Which data to read, requires corresponding readers.

Enumerator
Unspecified 

Unspecified.

DbReading 

directly from DB

DbWriting 

DB writing.

Shared 

shared directory

SharedInfoOnly 

shared info file only

Cached 

from cache

Canceled 

canceled DB reading

Ignore 

ignore this entity

CacheThenDb 

Cache where possible, otherwise DB.

CacheThenShared 

Cache where possible, otherwise shared.

CacheAndSharedInfo 

Cached data plus shared info file.

DbReadingOrShared 

read from DB or shared

Definition at line 24 of file dbflags.h.

Member Function Documentation

◆ modeToModeFlag()

CDbFlags::DataRetrievalModeFlag swift::misc::db::CDbFlags::modeToModeFlag ( DataRetrievalMode  mode)
static

Mode to flag.

Remarks
any combination results in Unspecified, only single flags are returned

Definition at line 49 of file dbflags.cpp.


The documentation for this class was generated from the following files: