File indexing completed on 2024-04-28 05:34:05

0001 /*
0002     SPDX-FileCopyrightText: 2013 Jan Grulich <jgrulich@redhat.com>
0003 
0004     SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0005 */
0006 
0007 #ifndef PLASMA_NM_ENUMS_H
0008 #define PLASMA_NM_ENUMS_H
0009 
0010 #include <QObject>
0011 
0012 #include <qqmlregistration.h>
0013 
0014 class Enums : public QObject
0015 {
0016     Q_OBJECT
0017     QML_ELEMENT
0018     QML_UNCREATABLE("")
0019 
0020     Q_ENUMS(ConnectionStatus)
0021     Q_ENUMS(ConnectionType)
0022     Q_ENUMS(SecurityType)
0023 
0024 public:
0025     explicit Enums(QObject *parent = nullptr);
0026     ~Enums() override;
0027 
0028     enum ConnectionStatus {
0029         UnknownState = 0,
0030         Activating,
0031         Activated,
0032         Deactivating,
0033         Deactivated,
0034     };
0035 
0036     enum ConnectionType {
0037         UnknownConnectionType = 0,
0038         Adsl,
0039         Bluetooth,
0040         Bond,
0041         Bridge,
0042         Cdma,
0043         Gsm,
0044         Infiniband,
0045         OLPCMesh,
0046         Pppoe,
0047         Vlan,
0048         Vpn,
0049         Wimax,
0050         Wired,
0051         Wireless,
0052     };
0053 
0054     enum SecurityType {
0055         UnknownSecurity = -1,
0056         NoneSecurity = 0,
0057         StaticWep,
0058         DynamicWep,
0059         Leap,
0060         WpaPsk,
0061         WpaEap,
0062         Wpa2Psk,
0063         Wpa2Eap,
0064         SAE,
0065         Wpa3SuiteB192,
0066     };
0067 };
0068 
0069 #endif // PLASMA_NM_ENUMS_H