summaryrefslogtreecommitdiff
path: root/qorgwatchlet
diff options
context:
space:
mode:
Diffstat (limited to 'qorgwatchlet')
-rw-r--r--qorgwatchlet/qorgwatchlet.cpp6
-rw-r--r--qorgwatchlet/qorgwatchlet.h2
-rw-r--r--qorgwatchlet/qorgwatchletplugin.cpp4
-rw-r--r--qorgwatchlet/qorgwatchletplugin.h2
4 files changed, 7 insertions, 7 deletions
diff --git a/qorgwatchlet/qorgwatchlet.cpp b/qorgwatchlet/qorgwatchlet.cpp
index 3d042fb..5911a9b 100644
--- a/qorgwatchlet/qorgwatchlet.cpp
+++ b/qorgwatchlet/qorgwatchlet.cpp
@@ -4,8 +4,8 @@
using namespace sowatch;
-QOrgWatchlet::QOrgWatchlet(WatchServer* server) :
- DeclarativeWatchlet(server, "com.javispedro.sowatch.qorg")
+QOrgWatchlet::QOrgWatchlet(Watch* watch) :
+ DeclarativeWatchlet(watch, "com.javispedro.sowatch.qorg")
{
- setSource(QUrl(SOWATCH_QML_DIR "/qorgwatchlet/" + server->watch()->model() + ".qml"));
+ setSource(QUrl(SOWATCH_QML_DIR "/qorgwatchlet/" + watch->model() + ".qml"));
}
diff --git a/qorgwatchlet/qorgwatchlet.h b/qorgwatchlet/qorgwatchlet.h
index 1c0f28e..517c4b3 100644
--- a/qorgwatchlet/qorgwatchlet.h
+++ b/qorgwatchlet/qorgwatchlet.h
@@ -10,7 +10,7 @@ class QOrgWatchlet : public DeclarativeWatchlet
{
Q_OBJECT
public:
- explicit QOrgWatchlet(WatchServer* server);
+ explicit QOrgWatchlet(Watch* watch);
};
}
diff --git a/qorgwatchlet/qorgwatchletplugin.cpp b/qorgwatchlet/qorgwatchletplugin.cpp
index 4b7bb47..8416f0f 100644
--- a/qorgwatchlet/qorgwatchletplugin.cpp
+++ b/qorgwatchlet/qorgwatchletplugin.cpp
@@ -33,11 +33,11 @@ WatchletPluginInterface::WatchletInfo QOrgWatchletPlugin::describeWatchlet(const
return info;
}
-Watchlet* QOrgWatchletPlugin::getWatchlet(const QString &id, ConfigKey *config, WatchServer *server)
+Watchlet* QOrgWatchletPlugin::getWatchlet(const QString &id, ConfigKey *config, Watch *watch)
{
Q_UNUSED(config);
if (id != "com.javispedro.sowatch.qorg") return 0;
- return new QOrgWatchlet(server);
+ return new QOrgWatchlet(watch);
}
Q_EXPORT_PLUGIN2(qmsgwatchlet, QOrgWatchletPlugin)
diff --git a/qorgwatchlet/qorgwatchletplugin.h b/qorgwatchlet/qorgwatchletplugin.h
index dddbce2..9f4d3d5 100644
--- a/qorgwatchlet/qorgwatchletplugin.h
+++ b/qorgwatchlet/qorgwatchletplugin.h
@@ -17,7 +17,7 @@ public:
QStringList watchlets();
WatchletInfo describeWatchlet(const QString &id);
- Watchlet* getWatchlet(const QString &id, ConfigKey *config, WatchServer *server);
+ Watchlet* getWatchlet(const QString &id, ConfigKey *config, Watch *watch);
};
}