mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-12-16 15:33:42 +00:00
started work on wifi-menu
This commit is contained in:
@ -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()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user