aboutsummaryrefslogtreecommitdiff
path: root/src/ioutil.hpp
blob: ede1fbbe3a1ef9492648cf00b0773f757ba4612a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#ifndef IOUTIL_HPP
#define IOUTIL_HPP

#include <QIODevice>
#include <QUrl>

struct IoUtil
{
    static bool writeAll(QIODevice & dst, QByteArray const & src);

    static QString size_human(qint64 size);

    static QUrl uniformUrl(QUrl url);
    static QString uniformUrlString(QUrl url);
};

#endif // IOUTIL_HPP