summaryrefslogtreecommitdiff
path: root/sysinfowatchlet/sysinfoplugin.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2011-09-25 04:53:46 +0200
committerJavier S. Pedro <maemo@javispedro.com>2011-09-25 04:53:46 +0200
commitcf5d24b94d96b722c6d76c2225293a56a50d3c2b (patch)
treefece0c539fe4c40e1faae109f53c46ddc5b0d222 /sysinfowatchlet/sysinfoplugin.cpp
parent2b4e878938215ac743bdc36deace4c2a4cb0c7a2 (diff)
downloadsowatch-cf5d24b94d96b722c6d76c2225293a56a50d3c2b.tar.gz
sowatch-cf5d24b94d96b722c6d76c2225293a56a50d3c2b.zip
watchlets working!
Diffstat (limited to 'sysinfowatchlet/sysinfoplugin.cpp')
-rw-r--r--sysinfowatchlet/sysinfoplugin.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/sysinfowatchlet/sysinfoplugin.cpp b/sysinfowatchlet/sysinfoplugin.cpp
new file mode 100644
index 0000000..fc862c0
--- /dev/null
+++ b/sysinfowatchlet/sysinfoplugin.cpp
@@ -0,0 +1,29 @@
+#include "sysinfowatchlet.h"
+#include "sysinfoplugin.h"
+
+using namespace sowatch;
+
+SysInfoPlugin::SysInfoPlugin(QObject *parent) :
+ QObject(parent)
+{
+}
+
+SysInfoPlugin::~SysInfoPlugin()
+{
+}
+
+QStringList SysInfoPlugin::watchlets()
+{
+ QStringList l;
+ l << "com.javispedro.sowatch.sysinfo";
+ return l;
+}
+
+Watchlet* SysInfoPlugin::getWatchlet(const QString& driver, QSettings& settings, WatchServer *server)
+{
+ Q_UNUSED(driver);
+ Q_UNUSED(settings);
+ return new SysInfoWatchlet(server);
+}
+
+Q_EXPORT_PLUGIN2(sysinfowatchlet, SysInfoPlugin)