34 #include <QCryptographicHash> 36 #include <QFontMetrics> 89 QString
cvt_ms_to_string(quint64 msec,
bool empty_zero =
false,
bool colon=
true,
bool show_days=
true);
126 const QString& target=
"",
127 bool underline=
true);
171 QByteArray
calc_hash(
const QByteArray& data);
QString get_lib_path()
get library path of sayonara
QString get_sayonara_path()
get sayonara path in home directory
int get_random_number(int min, int max)
get a random val between min max
QStringList get_playlistfile_extensions()
get all supported playlist file extensions
QString create_link(const QString &name, bool dark=true, const QString &target="", bool underline=true)
create a link string
QStringList get_soundfile_extensions()
get all supported sound file extensions
QString easy_tag_finder(const QString &tag, const QString &xml_doc)
gets value out of tag
QStringList get_podcast_extensions()
get all supported podcast file extensions
Helper functions.
Definition: FileHelper.h:31
QStringList get_ip_addresses()
get all ip addresses of the host
void sleep_ms(quint64 ms)
sleep
QByteArray calc_hash(const QByteArray &data)
calculate a md5 hashsum
QString get_error_file()
get error log file
QString cvt_str_to_first_upper(const QString &str)
Transform all letters after a space to upper case.
QString cvt_ms_to_string(quint64 msec, bool empty_zero=false, bool colon=true, bool show_days=true)
Convert milliseconds to string.
QString get_share_path()
get share path of sayonara
QString cvt_str_to_very_first_upper(const QString &str)
Transform only first letter to upper case.