diff options
author | Thomas Groman <tgroman@nuegia.net> | 2018-12-09 21:38:34 -0800 |
---|---|---|
committer | Thomas Groman <tgroman@nuegia.net> | 2018-12-09 21:38:34 -0800 |
commit | c799439516b1aa24b4de8920d0b2993c280cad72 (patch) | |
tree | 3387bcc863a582a63fbb7842ca3c24d06729c03a /libraries/ganalytics/include | |
parent | 6284f070c19053ae2bcf26dd9bccac2e0d35477f (diff) | |
download | MultiMC-c799439516b1aa24b4de8920d0b2993c280cad72.tar MultiMC-c799439516b1aa24b4de8920d0b2993c280cad72.tar.gz MultiMC-c799439516b1aa24b4de8920d0b2993c280cad72.tar.lz MultiMC-c799439516b1aa24b4de8920d0b2993c280cad72.tar.xz MultiMC-c799439516b1aa24b4de8920d0b2993c280cad72.zip |
Removed Ganalytics Library
Diffstat (limited to 'libraries/ganalytics/include')
-rw-r--r-- | libraries/ganalytics/include/ganalytics.h | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/libraries/ganalytics/include/ganalytics.h b/libraries/ganalytics/include/ganalytics.h deleted file mode 100644 index bfca6d37..00000000 --- a/libraries/ganalytics/include/ganalytics.h +++ /dev/null @@ -1,67 +0,0 @@ -#pragma once - -#include <QObject> -#include <QVariantMap> - -class QNetworkAccessManager; -class GAnalyticsWorker; - -class GAnalytics : public QObject -{ - Q_OBJECT - Q_ENUMS(LogLevel) - -public: - explicit GAnalytics(const QString &trackingID, const QString &clientID, const int version, QObject *parent = 0); - ~GAnalytics(); - -public: - enum LogLevel - { - Debug, - Info, - Error - }; - - int version(); - - void setLogLevel(LogLevel logLevel); - LogLevel logLevel() const; - - // Getter and Setters - void setViewportSize(const QString &viewportSize); - QString viewportSize() const; - - void setLanguage(const QString &language); - QString language() const; - - void setAnonymizeIPs(bool anonymize); - bool anonymizeIPs(); - - void setSendInterval(int milliseconds); - int sendInterval() const; - - void enable(bool state = true); - bool isEnabled(); - - /// Get or set the network access manager. If none is set, the class creates its own on the first request - void setNetworkAccessManager(QNetworkAccessManager *networkAccessManager); - QNetworkAccessManager *networkAccessManager() const; - -public slots: - void sendScreenView(const QString &screenName, const QVariantMap &customValues = QVariantMap()); - void sendEvent(const QString &category, const QString &action, const QString &label = QString(), const QVariant &value = QVariant(), - const QVariantMap &customValues = QVariantMap()); - void sendException(const QString &exceptionDescription, bool exceptionFatal = true, const QVariantMap &customValues = QVariantMap()); - void startSession(); - void endSession(); - -private: - GAnalyticsWorker *d; - - friend QDataStream &operator<<(QDataStream &outStream, const GAnalytics &analytics); - friend QDataStream &operator>>(QDataStream &inStream, GAnalytics &analytics); -}; - -QDataStream &operator<<(QDataStream &outStream, const GAnalytics &analytics); -QDataStream &operator>>(QDataStream &inStream, GAnalytics &analytics); |