diff options
| author | Jeremy Rimpo <jrim@rimpo.org> | 2019-07-22 01:02:21 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-22 01:02:21 -0500 |
| commit | 1f1b838c2b3fd3148d2c2a1a8fe6fcf9fb07383f (patch) | |
| tree | 33c20c0cc6e5f0029558c8e8383a0fdf68571689 /src/apiuseraccount.h | |
| parent | 613aa037cf8dc728eac474ee6cf6b790293d5114 (diff) | |
| parent | 2d78957c3d4c33de5813d7ee5b86dec8cb01478c (diff) | |
Merge pull request #796 from isanae/login-progress-dialog
Nexus login progress dialog and Nexus settings
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 |
