From c7c6a2c596637fd4942c7fb80341ca2ef7b47808 Mon Sep 17 00:00:00 2001 From: "Javier S. Pedro" Date: Thu, 9 Aug 2012 16:38:56 +0200 Subject: moving scanner logic to ui, new icon --- sowatchui/scanwatchesmodel.h | 49 -------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 sowatchui/scanwatchesmodel.h (limited to 'sowatchui/scanwatchesmodel.h') diff --git a/sowatchui/scanwatchesmodel.h b/sowatchui/scanwatchesmodel.h deleted file mode 100644 index 424ded4..0000000 --- a/sowatchui/scanwatchesmodel.h +++ /dev/null @@ -1,49 +0,0 @@ -#ifndef SCANWATCHESMODEL_H -#define SCANWATCHESMODEL_H - -#include -#include -#include - -#include "scannerproxy.h" - -class ScanWatchesModel : public QAbstractListModel -{ - Q_OBJECT - Q_PROPERTY(bool enabled READ enabled WRITE setEnabled) - Q_PROPERTY(bool active READ active NOTIFY activeChanged) - -public: - explicit ScanWatchesModel(QObject *parent = 0); - ~ScanWatchesModel(); - - enum DataRoles { - ObjectRole = Qt::UserRole - }; - - bool enabled() const; - void setEnabled(bool enabled); - - bool active() const; - - int rowCount(const QModelIndex &parent) const; - QVariant data(const QModelIndex &index, int role) const; - -signals: - void activeChanged(); - -private slots: - void handleWatchFound(const QVariantMap& info); - void handleStarted(); - void handleFinished(); - void handleTimeout(); - -private: - ScannerProxy *_scanner; - QList _list; - QTimer *_timer; - bool _enabled; - bool _active; -}; - -#endif // SCANWATCHESMODEL_H -- cgit v1.2.3