diff options
author | Javier S. Pedro <maemo@javispedro.com> | 2012-08-09 21:02:14 +0200 |
---|---|---|
committer | Javier S. Pedro <maemo@javispedro.com> | 2012-08-09 21:02:14 +0200 |
commit | b1ccb04d7dd2fb20def829be084474ed329d4988 (patch) | |
tree | a554f1684c12adc1d0420158c98860cdec214dee /sowatchui/watchesmodel.h | |
parent | eb8ffec84e1d81df9ffb1004158da23183e96f17 (diff) | |
download | sowatch-b1ccb04d7dd2fb20def829be084474ed329d4988.tar.gz sowatch-b1ccb04d7dd2fb20def829be084474ed329d4988.zip |
change config of enabled/disabled
Diffstat (limited to 'sowatchui/watchesmodel.h')
-rw-r--r-- | sowatchui/watchesmodel.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sowatchui/watchesmodel.h b/sowatchui/watchesmodel.h index 396fc8d..6e9b65e 100644 --- a/sowatchui/watchesmodel.h +++ b/sowatchui/watchesmodel.h @@ -15,7 +15,7 @@ public: ~WatchesModel(); enum DataRoles { - ObjectRole = Qt::UserRole, + EnabledRole = Qt::UserRole, ConfigKeyRole, ConfigQmlUrlRole }; @@ -29,17 +29,15 @@ public slots: private slots: void reload(); - void handleConfigChanged(); - void handleSubkeyChanged(const QString& subkey); + void handleWatchesListChanged(); 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; + sowatch::ConfigKey *_watches_list; DaemonProxy *_daemon; QList<sowatch::ConfigKey*> _list; QMap<QString, QString> _status; |