mirror of
https://github.com/arcan1s/netctl-gui.git
synced 2025-07-13 13:55:51 +00:00
end work to dbus interface
This commit is contained in:
@ -16,15 +16,12 @@
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
#include "mainwindow.h"
|
||||
#include "netctlguiadaptor.h"
|
||||
|
||||
|
||||
NetctlGuiAdaptor::NetctlGuiAdaptor(MainWindow *parent, const bool debugCmd)
|
||||
NetctlGuiAdaptor::NetctlGuiAdaptor(MainWindow *parent)
|
||||
: QDBusAbstractAdaptor(parent),
|
||||
debug(debugCmd),
|
||||
mainWindow(parent)
|
||||
{
|
||||
}
|
||||
@ -32,14 +29,11 @@ NetctlGuiAdaptor::NetctlGuiAdaptor(MainWindow *parent, const bool debugCmd)
|
||||
|
||||
NetctlGuiAdaptor::~NetctlGuiAdaptor()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[~NetctlGuiAdaptor]";
|
||||
}
|
||||
|
||||
|
||||
bool NetctlGuiAdaptor::Close()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[Close]";
|
||||
|
||||
mainWindow->closeMainWindow();
|
||||
return true;
|
||||
}
|
||||
@ -47,16 +41,12 @@ bool NetctlGuiAdaptor::Close()
|
||||
|
||||
QString NetctlGuiAdaptor::Information()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[Information]";
|
||||
|
||||
return mainWindow->getInformation();
|
||||
}
|
||||
|
||||
|
||||
bool NetctlGuiAdaptor::RestoreWindow()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[RestoreWindow]";
|
||||
|
||||
mainWindow->show();
|
||||
return true;
|
||||
}
|
||||
@ -64,16 +54,12 @@ bool NetctlGuiAdaptor::RestoreWindow()
|
||||
|
||||
QStringList NetctlGuiAdaptor::Settings()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[Settings]";
|
||||
|
||||
return mainWindow->getSettings();
|
||||
}
|
||||
|
||||
|
||||
bool NetctlGuiAdaptor::ShowAbout()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[ShowAbout]";
|
||||
|
||||
mainWindow->showAboutWindow();
|
||||
return true;
|
||||
}
|
||||
@ -81,8 +67,6 @@ bool NetctlGuiAdaptor::ShowAbout()
|
||||
|
||||
bool NetctlGuiAdaptor::ShowMain()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[ShowMain]";
|
||||
|
||||
mainWindow->showMainWindow();
|
||||
return true;
|
||||
}
|
||||
@ -90,8 +74,6 @@ bool NetctlGuiAdaptor::ShowMain()
|
||||
|
||||
bool NetctlGuiAdaptor::ShowNetctlAuto()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[ShowNetctlAuto]";
|
||||
|
||||
mainWindow->showNetctlAutoWindow();
|
||||
return true;
|
||||
}
|
||||
@ -99,8 +81,6 @@ bool NetctlGuiAdaptor::ShowNetctlAuto()
|
||||
|
||||
bool NetctlGuiAdaptor::ShowSettings()
|
||||
{
|
||||
if (debug) qDebug() << "[NetctlGuiAdaptor]" << "[ShowSettings]";
|
||||
|
||||
mainWindow->showSettingsWindow();
|
||||
return true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user