26 #ifndef NETCTLPROFILE_H
27 #define NETCTLPROFILE_H
53 const QMap<QString, QString> settings = QMap<QString, QString>());
71 QString
createProfile(
const QString profile,
const QMap<QString, QString> settings);
117 QDir *profileDirectory =
nullptr;
121 QString sudoCommand = QString(SUDO_PATH);
QString createProfile(const QString profile, const QMap< QString, QString > settings)
method which creates temporary profile
QMap< QString, QString > getSettingsFromProfile(const QString profile)
method which reads settings from profile
QString getValueFromProfile(const QString profile, const QString key)
method which return value from profile by key
NetctlProfile(const bool debugCmd=false, const QMap< QString, QString > settings=QMap< QString, QString >())
NetctlProfile class constructor.
The NetctlProfile class interacts with netctl profiles.
Definition: netctlprofile.h:39
static QMap< QString, QString > getRecommendedConfiguration()
method which check system configuration and return recommended values to keys
~NetctlProfile()
Netctl class destructor.
bool copyProfile(const QString oldPath)
method which copies temporary profile to PROFILE_DIR
bool removeProfile(const QString profile)
method which removes profile
QStringList getValuesFromProfile(const QString profile, const QStringList keys)
method which return values from profile by keys