27 #ifndef USAGESTATSPLUGIN_H_
28 #define USAGESTATSPLUGIN_H_
37 #include <QAbstractButton>
38 #include <QNetworkReply>
39 #include <QNetworkAccessManager>
43 using namespace uploader;
75 Q_PLUGIN_METADATA(IID
"org.dronin.plugins.UsageStats")
83 bool initialize(
const QStringList &arguments, QString *errorString);
84 void extensionsInitialized();
85 bool coreAboutToClose();
86 bool getSendUsageStats()
const;
87 void setSendUsageStats(
bool value);
88 bool getSendPrivateData()
const;
89 void setSendPrivateData(
bool value);
90 int getDebugLogLevel()
const;
91 void setDebugLogLevel(
int value);
93 QString getInstallationUUID()
const;
95 void updateSettings();
102 QByteArray processJson();
104 QNetworkAccessManager netMngr;
107 bool sendPrivateData;
108 QUuid installationUUID;
111 void pluginsLoadEnded();
113 void searchForWidgets(QObject *mw,
bool connect);
114 void onButtonClicked();
115 void onSliderValueChanged(
int);
116 void onTabCurrentChanged(
int);
125 bool coreAboutToClose();
Core plugin system that manages the plugins, their life cycle and their registered objects...
struct widgetActionInfoType widgetActionInfo
deviceDescriptorStruct device
struct debugMessageStruct DebugMessage
Provides a hook for plugins to veto on certain events emitted from the core plugin.
The Config Info is a helper-class to handle version changes in GCS configuration files.