Selaa lähdekoodia

Revert "fixed qmlhandler.cpp merge"

This reverts commit 9c13dae7056e683f6279fbf76f58e238e510e540
Wach, Tobias Alexander 5 vuotta sitten
vanhempi
commit
0c199cb291
1 muutettua tiedostoa jossa 1 lisäystä ja 22 poistoa
  1. 1 22
      gui/src/qmlhandler.cpp

+ 1 - 22
gui/src/qmlhandler.cpp

@@ -1,14 +1,4 @@
 #include "qmlhandler.h"
-#include <string>
-#include <unistd.h>
-
-using namespace std;
-
-string fileUrl;
-
-extern int inpipefd[2];
-extern int outpipefd[2];
-extern char buf[1024];
 
 QMLHandler::QMLHandler(QObject *parent) : QObject(parent) {}
 
@@ -18,16 +8,5 @@ void QMLHandler::onSelectFile(QUrl url) {
 }
 
 void QMLHandler::onEnterIp(QString ip) {
-  qInfo() << ip;
-  fileUrl = url.toString().toStdString();
-
-  string inputDevDevDevDev = "status\n";
-  write(outpipefd[0], inputDevDevDevDev.c_str(), inputDevDevDevDev.length());
-
-  qInfo() << "FooBar";
-
-  read(inpipefd[0], buf, 1024);
-  buf[1023] = 0;
-  buf[strlen(buf)] = 0;
-  qInfo() << buf;
+    qInfo() << ip;
 }