summaryrefslogtreecommitdiff
path: root/src/apiuseraccount.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/apiuseraccount.h')
-rw-r--r--src/apiuseraccount.h13
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;