Ref T343, support for 7digit ids

This commit is contained in:
Klaus Basan
2018-09-09 02:37:08 +02:00
parent 8c10237dce
commit e4a9a7ce9f
2 changed files with 44 additions and 7 deletions

View File

@@ -45,6 +45,8 @@ namespace BlackMisc
{
IndexEmail = CPropertyIndex::GlobalIndexCUser,
IndexId,
IndexIdInteger,
IndexId7Digit,
IndexPassword,
IndexRealName,
IndexCallsign,
@@ -120,6 +122,15 @@ namespace BlackMisc
//! Get id.
const QString &getId() const { return m_id; }
//! Numeric ids get a leading zeros if required
QString get7DigitId() const;
//! Id as integer if possible, otherwise -1
int getIntegerId() const;
//! Has a numeric id?
bool hasNumericId() const;
//! Set id
void setId(const QString &id) { m_id = decode(id); }