diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-25 04:53:46 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2011-09-25 04:53:46 +0200 |
commit | cf5d24b94d96b722c6d76c2225293a56a50d3c2b (patch) | |
tree | fece0c539fe4c40e1faae109f53c46ddc5b0d222 /sysinfowatchlet/sysinfoplugin.cpp | |
parent | 2b4e878938215ac743bdc36deace4c2a4cb0c7a2 (diff) | |
download | sowatch-cf5d24b94d96b722c6d76c2225293a56a50d3c2b.tar.gz sowatch-cf5d24b94d96b722c6d76c2225293a56a50d3c2b.zip |
watchlets working!
Diffstat (limited to 'sysinfowatchlet/sysinfoplugin.cpp')
-rw-r--r-- | sysinfowatchlet/sysinfoplugin.cpp | 29 |
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) |