26using namespace Qt::Literals::StringLiterals;
40 Q_DECL_EXPORT
bool download(
const QUrl& src, QString& target,
41 QWidget* window =
nullptr);
47 Q_DECL_EXPORT QStringList
funcNames(
const QString& libPath);
55 Q_DECL_EXPORT
bool getFuncAddr(
const QString& path,
const QString& name,
56 QLibrary** lib, QFunctionPointer* fkt);
64 Q_DECL_EXPORT
bool move(
const QString& src,
const QUrl& dest,
65 QWidget* window =
nullptr);
71 Q_DECL_EXPORT QString
tempFileName(
const QString& suffix =
".tmp"_L1);
76 Q_DECL_EXPORT QUrl
url(
const QString& s);
Utility namespace.
Definition utils.h:32
Q_DECL_EXPORT bool download(const QUrl &src, QString &target, QWidget *window=nullptr)
Downloads file.
Q_DECL_EXPORT QUrl url(const QString &s)
Returns URL for given user input, assuming local file.
Q_DECL_EXPORT bool move(const QString &src, const QUrl &dest, QWidget *window=nullptr)
Moves file to remote location.
Q_DECL_EXPORT bool getFuncAddr(const QString &path, const QString &name, QLibrary **lib, QFunctionPointer *fkt)
Gets module handle and address of a shared library function.
Q_DECL_EXPORT QStringList funcNames(const QString &libPath)
Generates sorted list of function names.
Q_DECL_EXPORT QString tempFileName(const QString &suffix=".tmp"_L1)
Generates unique temporary file name.