mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-12-16 15:33:42 +00:00
added profile file
This commit is contained in:
@ -23,6 +23,7 @@
|
||||
|
||||
#include "errorwindow.h"
|
||||
#include "netctlinteract.h"
|
||||
#include "netctlprofile.h"
|
||||
#include "passwdwidget.h"
|
||||
#include "wpasupinteract.h"
|
||||
#include <cstdio>
|
||||
@ -54,6 +55,7 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
wpaConfig.append(QString("users"));
|
||||
|
||||
netctlCommand = new Netctl(this, netctlPath, profileDir, sudoPath);
|
||||
netctlProfile = new NetctlProfile(this, profileDir, sudoPath);
|
||||
wpaCommand = new WpaSup(this, wpaConfig, sudoPath, ifaceDir, preferedInterface);
|
||||
|
||||
createActions();
|
||||
@ -64,6 +66,7 @@ MainWindow::MainWindow(QWidget *parent)
|
||||
MainWindow::~MainWindow()
|
||||
{
|
||||
delete netctlCommand;
|
||||
delete netctlProfile;
|
||||
delete wpaCommand;
|
||||
delete ui;
|
||||
}
|
||||
@ -127,6 +130,8 @@ void MainWindow::updateTabs(const int tab)
|
||||
{
|
||||
if (tab == 0)
|
||||
updateMainTab();
|
||||
else if (tab == 1)
|
||||
|
||||
else if (tab == 2)
|
||||
updateWifiTab();
|
||||
}
|
||||
@ -174,6 +179,12 @@ void MainWindow::updateMainTab()
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::updateProfileTab()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
void MainWindow::updateWifiTab()
|
||||
{
|
||||
wifiTabSetEnabled(checkExternalApps(QString("wpasup")));
|
||||
|
||||
Reference in New Issue
Block a user