diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2017-10-06 07:51:30 -0700 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-10-07 10:06:47 -0700 |
commit | 7aacaf60da7e73b9c57012e1846f709acb4d0ac2 (patch) | |
tree | 5dd0515de3f0bfebcc9f22a976089f8f2555b0f9 /core/btdiscovery.h | |
parent | 030c094854aeab4aaade523d7126728d9ce98a5b (diff) | |
download | subsurface-7aacaf60da7e73b9c57012e1846f709acb4d0ac2.tar.gz |
Move ConnectionListModel into its own source file
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'core/btdiscovery.h')
-rw-r--r-- | core/btdiscovery.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/core/btdiscovery.h b/core/btdiscovery.h index 160890c73..5697c8d0f 100644 --- a/core/btdiscovery.h +++ b/core/btdiscovery.h @@ -21,22 +21,6 @@ void saveBtDeviceInfo(const char* devaddr, QBluetoothDeviceInfo deviceInfo); QBluetoothDeviceInfo getBtDeviceInfo(const char* devaddr); -class ConnectionListModel : public QAbstractListModel { - Q_OBJECT -public: - enum CLMRole { - AddressRole = Qt::UserRole + 1 - }; - ConnectionListModel(QObject *parent = 0); - QHash<int, QByteArray> roleNames() const; - QVariant data(const QModelIndex &index, int role = AddressRole) const; - QString address(int idx) const; - int rowCount(const QModelIndex &parent = QModelIndex()) const; - void addAddress(const QString address); -private: - QStringList m_addresses; -}; - class BTDiscovery : public QObject { Q_OBJECT |