diff options
Diffstat (limited to 'watchlet.cpp')
-rw-r--r-- | watchlet.cpp | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/watchlet.cpp b/watchlet.cpp deleted file mode 100644 index 6d7fe68..0000000 --- a/watchlet.cpp +++ /dev/null @@ -1,44 +0,0 @@ -#include "watchlet.h" -#include "watchserver.h" - -using namespace sowatch; - -Watchlet::Watchlet(WatchServer *server, const QString& id) : - QObject(server), _id(id), _active(false), _server(server) -{ - _server->registerWatchlet(this); -} - -WatchServer* Watchlet::server() -{ - return _server; -} - -Watch* Watchlet::watch() -{ - return _server->watch(); -} - -QString Watchlet::id() const -{ - return _id; -} - -bool Watchlet::isActive() const -{ - return _active; -} - -void Watchlet::activate() -{ - _active = true; - emit activeChanged(); - emit activated(); -} - -void Watchlet::deactivate() -{ - _active = false; - emit activeChanged(); - emit deactivated(); -} |