/* This file is part of KDE. SPDX-FileCopyrightText: 2009 Frederik Gladhorn SPDX-FileCopyrightText: 2011 Laszlo Papp SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #include "itemjob.h" using namespace Attica; template ItemJob::ItemJob(PlatformDependent *internals, const QNetworkRequest &request) : GetJob(internals, request) { } template void ItemJob::parse(const QString &xml) { typename T::Parser p; m_item = p.parse(xml); setMetadata(p.metadata()); } template T ItemJob::result() const { return m_item; } template ItemDeleteJob::ItemDeleteJob(PlatformDependent *internals, const QNetworkRequest &request) : DeleteJob(internals, request) { } template void ItemDeleteJob::parse(const QString &xml) { typename T::Parser p; m_item = p.parse(xml); setMetadata(p.metadata()); } template T ItemDeleteJob::result() const { return m_item; } template ItemPostJob::ItemPostJob(PlatformDependent *internals, const QNetworkRequest &request, QIODevice *data) : PostJob(internals, request, data) { } template ItemPostJob::ItemPostJob(PlatformDependent *internals, const QNetworkRequest &request, const StringMap ¶meters) : PostJob(internals, request, parameters) { } template void ItemPostJob::parse(const QString &xml) { typename T::Parser p; m_item = p.parse(xml); setMetadata(p.metadata()); } template T ItemPostJob::result() const { return m_item; } template ItemPutJob::ItemPutJob(PlatformDependent *internals, const QNetworkRequest &request, QIODevice *data) : PutJob(internals, request, data) { } template ItemPutJob::ItemPutJob(PlatformDependent *internals, const QNetworkRequest &request, const StringMap ¶meters) : PutJob(internals, request, parameters) { } template void ItemPutJob::parse(const QString &xml) { typename T::Parser p; m_item = p.parse(xml); setMetadata(p.metadata()); } template T ItemPutJob::result() const { return m_item; }