blob: f6e134c606d791f5b945fca000a5542d69ba9a18 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
#ifndef QWIFINETWORKLIST_H
#define QWIFINETWORKLIST_H
#include <QtCore/QAbstractListModel>
#include <QtCore/QList>
#include "qwifinetwork.h"
class QWifiManager;
class QWifiNetworkList : public QAbstractListModel
{
Q_OBJECT
public:
QWifiNetworkList(QWifiManager *manager);
void parseScanResults(const QByteArray &data);
QWifiNetwork *networkForBSSID(const QByteArray &bssid, int *pos);
int rowCount(const QModelIndex &) const { return m_networks.size(); }
QVariant data(const QModelIndex &index, int role) const;
QHash<int,QByteArray> roleNames() const;
private:
QWifiManager *m_manager;
QList<QWifiNetwork *> m_networks;
};
#endif // QWIFINETWORKLIST_H
|