refactoring for better separation of concerns
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
#ifndef NETWORKSCANNER_H
|
||||
#define NETWORKSCANNER_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QAbstractListModel>
|
||||
|
||||
class Network
|
||||
{
|
||||
public:
|
||||
Network(const QString &name);
|
||||
|
||||
QString name() const;
|
||||
private:
|
||||
QString m_name;
|
||||
};
|
||||
|
||||
class NetworkScanner : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
public:
|
||||
QList<Network> scanForNetworks();
|
||||
};
|
||||
|
||||
#endif // NETWORKSCANNER_H
|
||||
Reference in New Issue
Block a user