[Foo2zjs-commits] r62 - download-gui
white at alioth.debian.org
white at alioth.debian.org
Wed Sep 26 09:21:17 UTC 2007
Author: white
Date: 2007-09-26 09:21:17 +0000 (Wed, 26 Sep 2007)
New Revision: 62
Modified:
download-gui/gui.cpp
download-gui/gui.h
Log:
Add a new method for calling the getweb script
Modified: download-gui/gui.cpp
===================================================================
--- download-gui/gui.cpp 2007-09-26 08:23:20 UTC (rev 61)
+++ download-gui/gui.cpp 2007-09-26 09:21:17 UTC (rev 62)
@@ -82,3 +82,13 @@
connect(exitButton, SIGNAL(clicked()), qApp, SLOT(quit()));
};
+
+void MainWindow::callGetweb(QStringList firmware)
+{
+ QObject *parent;
+
+ QString getweb = "/usr/bin/getweb";
+ QProcess *newCall = new QProcess(parent);
+
+ newCall->start(getweb, firmware);
+};
Modified: download-gui/gui.h
===================================================================
--- download-gui/gui.h 2007-09-26 08:23:20 UTC (rev 61)
+++ download-gui/gui.h 2007-09-26 09:21:17 UTC (rev 62)
@@ -7,6 +7,7 @@
#include <QPushButton>
#include <QMessageBox>
#include <QApplication>
+#include <QProcess>
#include <QDebug>
@@ -17,6 +18,9 @@
public:
MainWindow(QWidget *parent = 0);
+private slots:
+ void callGetweb(QStringList);
+
};
#endif // GUI_H
More information about the Foo2zjs-commits
mailing list