mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-07 11:05:33 +08:00
refs #452, adjusted aircraft/aviation classes
* support for loading from datastore * improved timestamp handling * new color and country classes * new attributes * updates for missing parts in CUser
This commit is contained in:
committed by
Mathew Sutcliffe
parent
c5f7179588
commit
ae24700299
@@ -12,7 +12,8 @@
|
||||
#ifndef BLACKMISC_DATASTOREUTILITY_H
|
||||
#define BLACKMISC_DATASTOREUTILITY_H
|
||||
|
||||
#include "blackmiscexport.h"
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
#include "timestampbased.h"
|
||||
#include "propertyindex.h"
|
||||
#include "variant.h"
|
||||
@@ -29,10 +30,16 @@ namespace BlackMisc
|
||||
CDatastoreUtility() = delete;
|
||||
|
||||
//! DB Bool value to bool
|
||||
static bool dbBoolStringToBool(const QString &dbBool);
|
||||
BLACKMISC_EXPORT static bool dbBoolStringToBool(const QString &dbBool);
|
||||
|
||||
//! Extract key from string like "MyAircraft (33)"
|
||||
static int extractIntegerKey(const QString &stringWithKey);
|
||||
BLACKMISC_EXPORT static int extractIntegerKey(const QString &stringWithKey);
|
||||
|
||||
//! Parse a timestamp object
|
||||
BLACKMISC_EXPORT static QDateTime parseTimestamp(const QString ×tamp);
|
||||
|
||||
//! Get id from a DB response
|
||||
BLACKMISC_EXPORT static bool parseSwiftWriteResponse(const QString &jsonResponse, BlackMisc::CStatusMessageList &messages, BlackMisc::CVariant &key);
|
||||
};
|
||||
|
||||
} // namespace
|
||||
|
||||
Reference in New Issue
Block a user