aboutsummaryrefslogtreecommitdiff
path: root/oshelper.cpp
diff options
context:
space:
mode:
authorIlya Kitaev <mbg033@gmail.com>2016-06-10 16:41:13 +0300
committerIlya Kitaev <mbg033@gmail.com>2016-06-10 16:41:13 +0300
commitfd50e6f9a3bc445cb3c0d21b7a0f584e95b44450 (patch)
treee942ec37af313d0e51a2f7f7eca8f45ff834b679 /oshelper.cpp
parent5c10be325103d668884fc5e463aaa59c726d4f8e (diff)
downloadmonzero-gui-fd50e6f9a3bc445cb3c0d21b7a0f584e95b44450.tar.gz
monzero-gui-fd50e6f9a3bc445cb3c0d21b7a0f584e95b44450.tar.xz
monzero-gui-fd50e6f9a3bc445cb3c0d21b7a0f584e95b44450.zip
new wallet wizard: wallet created in temporary directory and moved to
the destination at the final step
Diffstat (limited to 'oshelper.cpp')
-rw-r--r--oshelper.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/oshelper.cpp b/oshelper.cpp
new file mode 100644
index 00000000..cecae38e
--- /dev/null
+++ b/oshelper.cpp
@@ -0,0 +1,24 @@
+#include "oshelper.h"
+#include <QTemporaryFile>
+#include <QDir>
+
+OSHelper::OSHelper(QObject *parent) : QObject(parent)
+{
+
+}
+
+QString OSHelper::temporaryFilename() const
+{
+ QString tempFileName;
+ {
+ QTemporaryFile f;
+ f.open();
+ tempFileName = f.fileName();
+ }
+ return tempFileName;
+}
+
+QString OSHelper::temporaryPath() const
+{
+ return QDir::tempPath();
+}