mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 10:15:38 +08:00
refs #561, Compressed JSON format for model
* based on RI DB keys * utility functions
This commit is contained in:
@@ -37,6 +37,9 @@ namespace BlackMisc
|
||||
//! DB key as string
|
||||
QString getDbKeyAsString() const;
|
||||
|
||||
//! Key as JSON value, or null
|
||||
QJsonValue getDbKeyAsJsonValue() const;
|
||||
|
||||
//! Db ley in parentheses, e.g. "(3)"
|
||||
QString getDbKeyAsStringInParentheses() const;
|
||||
|
||||
@@ -95,6 +98,9 @@ namespace BlackMisc
|
||||
//! Get DB key.
|
||||
const QString &getDbKey() const { return m_dbKey; }
|
||||
|
||||
//! Key as JSON value, or null
|
||||
QJsonValue getDbKeyAsJsonValue() const;
|
||||
|
||||
//! Set the DB key
|
||||
void setDbKey(const QString &key) { m_dbKey = key.trimmed().toUpper(); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user