mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
refs #787, utility functions for shared files
* get file name from URL * service and file names in CDbInfo * adjusted DB flags, allow to load headers only * set of entity flags
This commit is contained in:
@@ -59,6 +59,9 @@ namespace BlackMisc
|
||||
//! The shared file name such as "airports.json"
|
||||
const QString &getSharedFileName() const;
|
||||
|
||||
//! Service name such as "jsonairport.php"
|
||||
const QString &getServiceName() const;
|
||||
|
||||
//! Set entity, should be in sync with a corresponding table name
|
||||
void setEntity(Network::CEntityFlags::Entity entity);
|
||||
|
||||
@@ -89,8 +92,14 @@ namespace BlackMisc
|
||||
//! The shared file names
|
||||
static const QStringList &sharedFileNames();
|
||||
|
||||
//! Service names
|
||||
static const QStringList &serviceNames();
|
||||
|
||||
//! Get shared file name
|
||||
static const QString &entityToSharedFileName(Network::CEntityFlags::Entity entity);
|
||||
static const QString &entityToSharedName(Network::CEntityFlags::Entity entity);
|
||||
|
||||
//! Get service file name
|
||||
static const QString &entityToServiceName(Network::CEntityFlags::Entity entity);
|
||||
|
||||
private:
|
||||
QString m_tableName; //!< table name
|
||||
|
||||
Reference in New Issue
Block a user