Advance Wayland and KDE package bring-up
Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent) Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
/*
|
||||
|
||||
SPDX-FileCopyrightText: 2023 Nicolas Fella <nicolas.fella@gmx.de>
|
||||
|
||||
SPDX-License-Identifier: LGPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#include <KIO/TransferJob>
|
||||
#include <QApplication>
|
||||
#include <QUrl>
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
|
||||
auto job = KIO::get(QUrl("https://expired.badssl.com/"));
|
||||
|
||||
QObject::connect(job, &KJob::result, &app, [](KJob *job) {
|
||||
if (!job->error()) {
|
||||
qWarning() << "job succeeded";
|
||||
} else {
|
||||
qWarning() << "job error" << job->error() << job->errorString();
|
||||
}
|
||||
});
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
Reference in New Issue
Block a user