mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 12:55:33 +08:00
Ref T343, support for 7digit ids
This commit is contained in:
@@ -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); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user