diff options
author | Orochimarufan <orochimarufan.x3@gmail.com> | 2013-02-13 04:03:15 +0100 |
---|---|---|
committer | Orochimarufan <orochimarufan.x3@gmail.com> | 2013-02-13 04:03:15 +0100 |
commit | 369b1c55c99aa8bdcd2d57ab4aad3633343f1417 (patch) | |
tree | a5d772ab16c53ac8e69dcc7e92bd3b6b48c6ef73 /util/userutil.h | |
parent | c755195b9721ad9f040684c3be1e93178f95c2cf (diff) | |
download | PrismLauncher-369b1c55c99aa8bdcd2d57ab4aad3633343f1417.tar.gz PrismLauncher-369b1c55c99aa8bdcd2d57ab4aad3633343f1417.tar.bz2 PrismLauncher-369b1c55c99aa8bdcd2d57ab4aad3633343f1417.zip |
implement desktop shortcut creation. windows code not tested.
Diffstat (limited to 'util/userutil.h')
-rw-r--r-- | util/userutil.h | 17 |
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 |