aboutsummaryrefslogtreecommitdiff
path: root/lib/connectiondata.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connectiondata.h')
-rw-r--r--lib/connectiondata.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/connectiondata.h b/lib/connectiondata.h
index 561893df..5cd7c3c7 100644
--- a/lib/connectiondata.h
+++ b/lib/connectiondata.h
@@ -21,15 +21,21 @@
#include <QtCore/QUrl>
#include <memory>
+#include <chrono>
class QNetworkAccessManager;
namespace Quotient {
+class BaseJob;
+
class ConnectionData {
public:
explicit ConnectionData(QUrl baseUrl);
virtual ~ConnectionData();
+ void submit(BaseJob* job);
+ void limitRate(std::chrono::milliseconds nextCallAfter);
+
QByteArray accessToken() const;
QUrl baseUrl() const;
const QString& deviceId() const;