6#ifndef SWIFT_MISC_DB_DBFLAGS_H
7#define SWIFT_MISC_DB_DBFLAGS_H
15namespace swift::misc::db
39 Q_DECLARE_FLAGS(DataRetrievalMode, DataRetrievalModeFlag)
42 static bool readsFromWeb(CDbFlags::DataRetrievalMode mode);
45 static QString flagToString(DataRetrievalModeFlag flag);
48 static QString flagToString(CDbFlags::DataRetrievalMode mode);
52 static DataRetrievalModeFlag modeToModeFlag(DataRetrievalMode mode);
55 static DataRetrievalMode adjustWhenDbIsDown(DataRetrievalMode mode);
58 static void registerMetadata();
63Q_DECLARE_METATYPE(swift::misc::db::CDbFlags::DataRetrievalMode)
What and how to read web services.
DataRetrievalModeFlag
Which data to read, requires corresponding readers.
@ CacheThenShared
Cache where possible, otherwise shared.
@ DbReadingOrShared
read from DB or shared
@ Canceled
canceled DB reading
@ Unspecified
Unspecified.
@ DbReading
directly from DB
@ Ignore
ignore this entity
@ SharedInfoOnly
shared info file only
@ CacheThenDb
Cache where possible, otherwise DB.
@ CacheAndSharedInfo
Cached data plus shared info file.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.