mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
Ref T24, shared info file name and flag for SharedInfoObjectEntity
This commit is contained in:
@@ -35,13 +35,13 @@ namespace BlackMisc
|
||||
DbReading = 1 << 0, //!< directly from DB
|
||||
DbWriting = 1 << 1, //!< DB writing
|
||||
Shared = 1 << 2, //!< shared directory
|
||||
SharedHeadersOnly = 1 << 3, //!< shared headers only
|
||||
SharedInfoOnly = 1 << 3, //!< shared info file only
|
||||
Cached = 1 << 4, //!< from cache
|
||||
Canceled = 1 << 5, //!< canceled DB reading
|
||||
Ignore = 1 << 6, //!< ignore this entity
|
||||
CacheThenDb = DbReading | Cached, //!< Cache where possible, otherwise DB
|
||||
CacheThenShared = Shared | Cached, //!< Cache where possible, otherwise shared
|
||||
CacheAndSharedHeaders = SharedHeadersOnly | Cached
|
||||
CacheAndSharedHeaders = SharedInfoOnly | Cached
|
||||
};
|
||||
Q_DECLARE_FLAGS(DataRetrievalMode, DataRetrievalModeFlag)
|
||||
|
||||
|
||||
@@ -159,6 +159,12 @@ namespace BlackMisc
|
||||
return names;
|
||||
}
|
||||
|
||||
const QString &CDbInfo::sharedInfoFileName()
|
||||
{
|
||||
static const QString f("dbinfo.json");
|
||||
return f;
|
||||
}
|
||||
|
||||
const QStringList &CDbInfo::serviceNames()
|
||||
{
|
||||
static const QStringList names({"jsonaircrafticao.php", "jsonairlineicao.php", "jsonairport.php", "jsoncountry.php", "jsondistributor.php", "jsonlivery.php", "jsonaircraftmodel.php" });
|
||||
|
||||
@@ -92,6 +92,9 @@ namespace BlackMisc
|
||||
//! The shared file names
|
||||
static const QStringList &sharedFileNames();
|
||||
|
||||
//! Get shared info file name
|
||||
static const QString &sharedInfoFileName();
|
||||
|
||||
//! Service names
|
||||
static const QStringList &serviceNames();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user