summaryrefslogtreecommitdiff
path: root/libsowatch/watchlet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'libsowatch/watchlet.cpp')
-rw-r--r--libsowatch/watchlet.cpp27
1 files changed, 11 insertions, 16 deletions
diff --git a/libsowatch/watchlet.cpp b/libsowatch/watchlet.cpp
index 555443f..dcd9103 100644
--- a/libsowatch/watchlet.cpp
+++ b/libsowatch/watchlet.cpp
@@ -1,10 +1,10 @@
#include "watchlet.h"
-#include "watchserver.h"
+#include "watch.h"
using namespace sowatch;
-Watchlet::Watchlet(WatchServer *server, const QString& id) :
- QObject(server), _id(id), _active(false), _server(server)
+Watchlet::Watchlet(Watch *watch, const QString& id) :
+ QObject(watch), _id(id), _active(false), _watch(watch)
{
}
@@ -14,24 +14,14 @@ Watchlet::~Watchlet()
}
-WatchServer* Watchlet::server()
+const Watch* Watchlet::watch() const
{
- return _server;
+ return _watch;
}
Watch* Watchlet::watch()
{
- return _server->watch();
-}
-
-const WatchServer* Watchlet::server() const
-{
- return _server;
-}
-
-const Watch* Watchlet::watch() const
-{
- return _server->watch();
+ return _watch;
}
QString Watchlet::id() const
@@ -57,3 +47,8 @@ void Watchlet::deactivate()
emit activeChanged();
emit deactivated();
}
+
+void Watchlet::setNotificationsModel(NotificationsModel *model)
+{
+
+}