#include "unlock.hpp"
-
+#include <string>
+#include <iostream>
+#include <fstream>
unlock::unlock(QWidget *parent) : QMainWindow(parent)
{
ui.setupUi( this );
void unlock::Close()
{
// can also add any extra closedown code here before we actually do close the GUI
-
-
+ std::string message = "0_Unlock|" + this->ui.lineEdit->text().toStdString();
+ std::ofstream os("/tmp/mnencdfifo");
+ os << message;
+ os.close();
// now close for real
close();
}