X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=unlock%2Funlock.cpp;h=8bb5f0b77c48534e3ac3076e7abf52e2b2123a9f;hb=778f40dae63986aae8af114a75f3696a599a628b;hp=b918e15deb92100df5b3f4685eaee93cb0881457;hpb=431d292ff3a7f554f6ca854de1930f23924ed3ca;p=mnenc diff --git a/unlock/unlock.cpp b/unlock/unlock.cpp index b918e15..8bb5f0b 100644 --- a/unlock/unlock.cpp +++ b/unlock/unlock.cpp @@ -19,7 +19,9 @@ #include "unlock.hpp" - +#include +#include +#include unlock::unlock(QWidget *parent) : QMainWindow(parent) { ui.setupUi( this ); @@ -29,8 +31,10 @@ unlock::unlock(QWidget *parent) : QMainWindow(parent) 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(); }