File indexing completed on 2024-11-24 04:43:52

0001 /*
0002     SPDX-FileCopyrightText: 2015-2017 Krzysztof Nowicki <krissn@op.pl>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include <KIO/TransferJob>
0010 
0011 #include "faketransferjob.h"
0012 
0013 namespace KIO
0014 {
0015 inline TransferJob *http_post(const QUrl &url, const QByteArray &postData, JobFlags flags)
0016 {
0017     Q_UNUSED(url)
0018     Q_UNUSED(flags)
0019 
0020     FakeTransferJob::Verifier vfy = FakeTransferJob::getVerifier();
0021     auto job = new FakeTransferJob(postData, vfy.fn, vfy.object);
0022     return reinterpret_cast<TransferJob *>(job);
0023 }
0024 }