1#ifndef QWLANMAN_DATAS_INTERFACE_H
2#define QWLANMAN_DATAS_INTERFACE_H
4#include "qwlanmanager/qwlanman_global.h"
6#include "qwlanmanager/cache/cachepolicy.h"
7#include "qwlanmanager/datas/network.h"
8#include "qwlanmanager/qwlantypes.h"
27 Q_PROPERTY(QUuid uid READ getUid)
28 Q_PROPERTY(QString hwAddress READ getHwAddress)
29 Q_PROPERTY(QString name READ getName)
30 Q_PROPERTY(QString description READ getDescription)
32 Q_PROPERTY(
CachePolicy cachePolicy READ getCachePolicy WRITE setCachePolicy)
33 Q_PROPERTY(
IfaceOptions options READ getOptions WRITE setOptions)
35 friend class InterfaceMutator;
52 const QUuid& getUid()
const;
53 const QString& getHwAddress()
const;
54 const QString& getName()
const;
55 const QString& getDescription()
const;
60 ListNetworks getListNetworks()
const;
61 Network getNetwork(
const QString &ssid)
const;
62 Network getNetworkConnected()
const;
65 void setCachePolicy(
const CachePolicy &cachePolicy);
73 bool operator==(
const Interface &other)
const;
74 bool operator!=(
const Interface &other)
const;
77 QSharedPointer<InterfaceData> d_ptr;
84QWLANMAN_EXPORT QDebug operator<<(QDebug debug,
const Interface &interface);
90using ListInterfaces = QList<Interface>;
Class allowing to determine the cache policy to adopt.
Definition cachepolicy.h:21
Class containing interface properties.
Definition interface.h:24
Class containing network properties.
Definition network.h:25
Namespace used for QWlanManager library.
Definition cachepolicy.h:13
IfaceState
Interface states.
Definition qwlantypes.h:118
IfaceOptions
QFlags type for qwm::IfaceOption enum
Definition qwlantypes.h:153
QHash< QUuid, Interface > MapInterfaces
Definition interface.h:91
QHash< QString, Network > MapNetworks
Definition network.h:76