You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.0 KiB

#ifndef CONNECTIONSETTINGSENGINE_H
#define CONNECTIONSETTINGSENGINE_H
#include <QString>
#include <QVariant>
#include <QHash>
#include <QProcess>
#include <NetworkManagerQt/Connection>
#include <NetworkManagerQt/ConnectionSettings>
#include <NetworkManagerQt/Settings>
#include <NetworkManagerQt/Manager>
#include <NetworkManagerQt/Setting>
#include <NetworkManagerQt/WiredSetting>
#include <NetworkManagerQt/WirelessSetting>
#include <NetworkManagerQt/Utils>
class ConnectionSettingsEngine
{
public:
enum MeteredMode {
MeteredAutomatic,
MeteredYes,
MeteredNo
};
enum LinkSpeed {
Speed10Mbps,
Speed100Mbps,
Speed1Gbps,
Speed2_5Gbps,
Speed5Gbps,
Speed10Gbps,
Speed40Gbps,
Speed100Gbps
};
ConnectionSettingsEngine();
static QVariantMap readConnectionSettings(QString connUuidStr);
static void modifyConnectionSettings(QString connUuidStr, QVariantMap settings);
private:
static QString userName();
};
#endif // CONNECTIONSETTINGSENGINE_H