implement desktop shortcut creation. windows code not tested.

This commit is contained in:
Orochimarufan
2013-02-13 04:03:15 +01:00
parent c755195b97
commit 369b1c55c9
6 changed files with 152 additions and 4 deletions

17
util/userutil.h Normal file
View File

@@ -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