projects
/
mnenc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modified ui
[mnenc]
/
unlock
/
unlock.cpp
diff --git
a/unlock/unlock.cpp
b/unlock/unlock.cpp
index
b918e15
..
8bb5f0b
100644
(file)
--- a/
unlock/unlock.cpp
+++ b/
unlock/unlock.cpp
@@
-19,7
+19,9
@@
#include "unlock.hpp"
#include "unlock.hpp"
-
+#include <string>
+#include <iostream>
+#include <fstream>
unlock::unlock(QWidget *parent) : QMainWindow(parent)
{
ui.setupUi( this );
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
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();
}
// now close for real
close();
}