libkpl
5.0
A Library for Graphical Presentation of Data Sets and Functions
|
Utility namespace. More...
Functions | |
Q_DECL_EXPORT bool | download (const QUrl &src, QString &target, QWidget *window=0) |
Downloads file. More... | |
Q_DECL_EXPORT QStringList | funcNames (const QString &libPath) |
Generates sorted list of function names. More... | |
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. More... | |
Q_DECL_EXPORT bool | move (const QString &src, const QUrl &dest, QWidget *window=0) |
Moves file to remote location. More... | |
Q_DECL_EXPORT QString | tempFileName (const QString &suffix=".tmp") |
Generates unique temporary file name. More... | |
Q_DECL_EXPORT QUrl | url (const QString &s) |
Returns URL for given user input, assuming local file. More... | |
Utility namespace.
Provides utility functions in a namespace.
Downloads file.
src | source file. |
target | local destination. |
window | parent widget. |
Q_DECL_EXPORT QStringList Utils::funcNames | ( | const QString & | libPath | ) |
Generates sorted list of function names.
libPath | path of function library. |
Q_DECL_EXPORT bool Utils::getFuncAddr | ( | const QString & | path, |
const QString & | name, | ||
QLibrary ** | lib, | ||
QFunctionPointer * | fkt | ||
) |
Gets module handle and address of a shared library function.
path | path of the library. |
name | function name. |
lib | pointer to library. |
fkt | pointer to function address. |
Moves file to remote location.
src | temporary source file. |
dest | remote destination. |
window | parent widget. |
Generates unique temporary file name.
suffix | filename suffix. |