summaryrefslogtreecommitdiff
path: root/sowatchui/watchesmodel.h
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2012-08-09 04:03:20 +0200
committerJavier S. Pedro <maemo@javispedro.com>2012-08-09 04:03:20 +0200
commit406332eb6b3199d19388f359d04c9f184e6082b5 (patch)
tree0560e8dabcd715cdf1932b7ac6105df5d20025e5 /sowatchui/watchesmodel.h
parent3aa62b0543d978c1a01c5cf05a898fd8d805c44b (diff)
downloadsowatch-406332eb6b3199d19388f359d04c9f184e6082b5.tar.gz
sowatch-406332eb6b3199d19388f359d04c9f184e6082b5.zip
watch status UI
Diffstat (limited to 'sowatchui/watchesmodel.h')
-rw-r--r--sowatchui/watchesmodel.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sowatchui/watchesmodel.h b/sowatchui/watchesmodel.h
index cc6c9af..4962725 100644
--- a/sowatchui/watchesmodel.h
+++ b/sowatchui/watchesmodel.h
@@ -5,6 +5,8 @@
#include <sowatch.h>
+#include "daemonproxy.h"
+
class WatchesModel : public QAbstractListModel
{
Q_OBJECT
@@ -27,14 +29,18 @@ private slots:
void reload();
void handleConfigChanged();
void handleSubkeyChanged(const QString& subkey);
+ void handleWatchStatusChanged(const QString& watch, const QString& status);
private:
int findRowByWatchId(const QString& id);
+ bool isWatchIdActive(const QString& id) const;
private:
sowatch::ConfigKey *_config;
sowatch::ConfigKey *_active_watches;
+ DaemonProxy *_daemon;
QList<sowatch::ConfigKey*> _list;
+ QMap<QString, QString> _status;
};
#endif // WATCHESMODEL_H