diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2013-05-05 01:44:40 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2013-05-05 01:44:40 +0200 |
commit | 24c7c2f6f1429103d922ef940c0e17a3d4778059 (patch) | |
tree | 76ab9ac2c9fade7db77f64424a17c478979d8a8b /libsowatch/watchlet.cpp | |
parent | ea5123cb6b30d5ab083ee3821269537b1d31b9f0 (diff) | |
download | sowatch-24c7c2f6f1429103d922ef940c0e17a3d4778059.tar.gz sowatch-24c7c2f6f1429103d922ef940c0e17a3d4778059.zip |
ABI change: Watchlet now depends on Watch, not WatchServer
Diffstat (limited to 'libsowatch/watchlet.cpp')
-rw-r--r-- | libsowatch/watchlet.cpp | 27 |
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) +{ + +} |