added profile file

This commit is contained in:
arcan1s
2014-02-09 21:09:36 +04:00
parent da7f1488c8
commit 8d3a3d29d2
8 changed files with 250 additions and 624 deletions

View File

@ -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")));