X-Git-Url: http://git.maemo.org/git/?p=mnenc;a=blobdiff_plain;f=unlock%2Funlock.cpp;h=8bb5f0b77c48534e3ac3076e7abf52e2b2123a9f;hp=b918e15deb92100df5b3f4685eaee93cb0881457;hb=29a4076ab4f859e49ed17f0a2a804e67606550b9;hpb=431d292ff3a7f554f6ca854de1930f23924ed3ca 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(); }