diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2011-09-16 17:47:24 +0200 |
---|---|---|
committer | Javier <javier@pcjavier.(none)> | 2011-09-16 17:47:24 +0200 |
commit | aa1c0fd3146b4ed055d181c99d52463afa6bedbb (patch) | |
tree | f6fb8d9693ad8c545ddabf76312f8f33b5b9878f /watchlet.cpp | |
download | sowatch-aa1c0fd3146b4ed055d181c99d52463afa6bedbb.tar.gz sowatch-aa1c0fd3146b4ed055d181c99d52463afa6bedbb.zip |
Initial import
Diffstat (limited to 'watchlet.cpp')
-rw-r--r-- | watchlet.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/watchlet.cpp b/watchlet.cpp new file mode 100644 index 0000000..2e76d5e --- /dev/null +++ b/watchlet.cpp @@ -0,0 +1,25 @@ +#include "watchlet.h" +#include "watchserver.h" + +using namespace sowatch; + +Watchlet::Watchlet(WatchServer *server, const QString& id) : + QObject(server), _id(id), _server(server) +{ + _server->registerWatchlet(this); +} + +WatchServer* Watchlet::server() +{ + return _server; +} + +Watch* Watchlet::watch() +{ + return _server->watch(); +} + +QString Watchlet::id() +{ + return _id; +} |