summaryrefslogtreecommitdiffstats
path: root/util/userutil.h
diff options
context:
space:
mode:
authorOrochimarufan <orochimarufan.x3@gmail.com>2013-02-13 04:03:15 +0100
committerOrochimarufan <orochimarufan.x3@gmail.com>2013-02-13 04:03:15 +0100
commit369b1c55c99aa8bdcd2d57ab4aad3633343f1417 (patch)
treea5d772ab16c53ac8e69dcc7e92bd3b6b48c6ef73 /util/userutil.h
parentc755195b9721ad9f040684c3be1e93178f95c2cf (diff)
downloadMultiMC-369b1c55c99aa8bdcd2d57ab4aad3633343f1417.tar
MultiMC-369b1c55c99aa8bdcd2d57ab4aad3633343f1417.tar.gz
MultiMC-369b1c55c99aa8bdcd2d57ab4aad3633343f1417.tar.lz
MultiMC-369b1c55c99aa8bdcd2d57ab4aad3633343f1417.tar.xz
MultiMC-369b1c55c99aa8bdcd2d57ab4aad3633343f1417.zip
implement desktop shortcut creation. windows code not tested.
Diffstat (limited to 'util/userutil.h')
-rw-r--r--util/userutil.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/util/userutil.h b/util/userutil.h
new file mode 100644
index 00000000..11c13ed0
--- /dev/null
+++ b/util/userutil.h
@@ -0,0 +1,17 @@
+#ifndef USERUTIL_H
+#define USERUTIL_H
+
+#include <QString>
+
+namespace Util
+{
+ // Get the Directory representing the User's Desktop
+ QString getDesktopDir();
+
+ // Create a shortcut at *location*, pointing to *dest* called with the arguments *args*
+ // call it *name* and assign it the icon *icon*
+ // return true if operation succeeded
+ bool createShortCut(QString location, QString dest, QStringList args, QString name, QString iconLocation);
+}
+
+#endif // USERUTIL_H