石博文 af07f1451b fix popup applet resize
Change-Id: I2820ea03f2fc2e9c0e2c5cdf1c961236a95388ef
2016-08-02 09:28:06 +08:00

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