diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-11 05:06:42 -0400 |
|---|---|---|
| committer | isanae <14251494+isanae@users.noreply.github.com> | 2019-07-11 05:06:42 -0400 |
| commit | c0a52bc1ca3bcde8107f7cd2b8924c1dda487b1c (patch) | |
| tree | 534ad4950752e2f932fdfa0cc1b5daa8f33aaf63 /src/apiuseraccount.h | |
| parent | ad29525e982f83343dbd70e17b914e0a30adb662 (diff) | |
extracted api key validator from NXMAccessManager
api key now part of ApiUserAccount
Diffstat (limited to 'src/apiuseraccount.h')
| -rw-r--r-- | src/apiuseraccount.h | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/apiuseraccount.h b/src/apiuseraccount.h index 8a238d71..7dd16128 100644 --- a/src/apiuseraccount.h +++ b/src/apiuseraccount.h @@ -60,6 +60,12 @@ public: APIUserAccount(); + + /** + * api key + */ + const QString& apiKey() const; + /** * user id */ @@ -82,6 +88,11 @@ public: /** + * sets the api key + */ + APIUserAccount& apiKey(const QString& key); + + /** * sets the user id */ APIUserAccount& id(const QString& id); @@ -120,7 +131,7 @@ public: bool exhausted() const; private: - QString m_id, m_name; + QString m_key, m_id, m_name; APIUserAccountTypes m_type; APILimits m_limits; APIStats m_stats; |
