mirror of
https://github.com/linuxdeepin/dde-dock.git
synced 2025-06-04 17:33:05 +00:00
35 lines
723 B
C++
35 lines
723 B
C++
#ifndef ACCESSPOINT_H
|
|
#define ACCESSPOINT_H
|
|
|
|
#include <QObject>
|
|
#include <QJsonObject>
|
|
|
|
class AccessPoint : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit AccessPoint(const QJsonObject &apInfo);
|
|
explicit AccessPoint(const QString &info);
|
|
AccessPoint(const AccessPoint &ap);
|
|
bool operator==(const AccessPoint &ap) const;
|
|
bool operator>(const AccessPoint &ap) const;
|
|
AccessPoint &operator=(const AccessPoint &ap);
|
|
|
|
const QString ssid() const;
|
|
int strength() const;
|
|
bool secured() const;
|
|
|
|
private:
|
|
void loadApInfo(const QJsonObject &apInfo);
|
|
|
|
private:
|
|
int m_strength;
|
|
bool m_secured;
|
|
bool m_securedInEap;
|
|
QString m_path;
|
|
QString m_ssid;
|
|
};
|
|
|
|
#endif // ACCESSPOINT_H
|