diff options
Diffstat (limited to 'src/apiuseraccount.h')
| -rw-r--r-- | src/apiuseraccount.h | 21 |
1 files changed, 19 insertions, 2 deletions
diff --git a/src/apiuseraccount.h b/src/apiuseraccount.h index 8a238d71..ea4e8685 100644 --- a/src/apiuseraccount.h +++ b/src/apiuseraccount.h @@ -18,6 +18,8 @@ enum class APIUserAccountTypes Premium }; +QString localizedUserAccountType(APIUserAccountTypes t); + /** * current limits imposed on the user account @@ -60,6 +62,17 @@ public: APIUserAccount(); + + /** + * whether the user is logged in + */ + bool isValid() const; + + /** + * api key + */ + const QString& apiKey() const; + /** * user id */ @@ -82,6 +95,11 @@ public: /** + * sets the api key + */ + APIUserAccount& apiKey(const QString& key); + + /** * sets the user id */ APIUserAccount& id(const QString& id); @@ -120,10 +138,9 @@ 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; }; #endif // APIUSERACCOUNT_H |
