summaryrefslogtreecommitdiffstats
path: root/libraries/ganalytics/src/ganalytics_worker.h
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/ganalytics/src/ganalytics_worker.h')
-rw-r--r--libraries/ganalytics/src/ganalytics_worker.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libraries/ganalytics/src/ganalytics_worker.h b/libraries/ganalytics/src/ganalytics_worker.h
index 88fa223a..3504a032 100644
--- a/libraries/ganalytics/src/ganalytics_worker.h
+++ b/libraries/ganalytics/src/ganalytics_worker.h
@@ -38,7 +38,8 @@ public:
QString m_viewportSize;
bool m_anonymizeIPs = false;
- bool m_isSending = false;
+ bool m_isEnabled = false;
+ int m_timerInterval = 30000;
const static int fourHours = 4 * 60 * 60 * 1000;
const static QLatin1String dateTimeFormat;
@@ -54,6 +55,7 @@ public:
void enqueQueryWithCurrentTime(const QUrlQuery &query);
void setIsSending(bool doSend);
+ void enable(bool state);
public slots:
void postMessage();