started work on wifi-menu

This commit is contained in:
arcan1s
2014-02-05 00:28:02 +04:00
parent 121ba0e54f
commit fc43861ba6
7 changed files with 210 additions and 7 deletions

View File

@ -19,6 +19,7 @@
#include "ui_mainwindow.h"
#include "netctlinteract.h"
#include "wpasupinteract.h"
#include <cstdio>
@ -37,8 +38,11 @@ MainWindow::MainWindow(QWidget *parent)
netctlPath = QString("/usr/bin/netctl");
profileDir = QString("/etc/netctl");
sudoPath = QString("/usr/bin/kdesu -c");
wpaCliPath = QString("/usr/bin/wpa_cli");
ifaceDir = QString("/sys/class/net/");
netctlCommand = new Netctl(this, netctlPath, profileDir, sudoPath);
wpaCliCommand = new WpaSup(this, wpaCliPath, ifaceDir);
createActions();
updateMainTab();
@ -71,6 +75,8 @@ void MainWindow::updateTabs(const int tab)
{
if (tab == 0)
updateMainTab();
else if (tab == 2)
updateWifiTab();
}
@ -98,6 +104,12 @@ void MainWindow::updateMainTab()
}
void MainWindow::updateWifiTab()
{
}
// main tab slots
void MainWindow::mainTabEnableProfile()
{