Albert
Loading...
Searching...
No Matches
networkutil.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2025 Manuel Schneider
2// SPDX-License-Identifier: MIT
3
4#pragma once
5#include <albert/export.h>
6class QNetworkAccessManager;
7class QNetworkReply;
8class QString;
9
10namespace albert
11{
12
15
19ALBERT_EXPORT QNetworkAccessManager &network();
20
24ALBERT_EXPORT QNetworkReply *await(QNetworkReply *reply);
25
29ALBERT_EXPORT QString percentEncoded(const QString &string);
30
34ALBERT_EXPORT QString percentDecoded(const QString &string);
35
37
38}
QString percentEncoded(const QString &string)
Returns string percent encoded.
QString percentDecoded(const QString &string)
Returns string percent decoded.
QNetworkAccessManager & network()
Returns a global, threadlocal QNetworkAccessManager.
QNetworkReply * await(QNetworkReply *reply)
Blocks until reply is finished.
Definition app.h:56