1/*
2 This file is part of KDE.
3
4 SPDX-FileCopyrightText: 2009 Eckhart Wörner <ewoerner@kde.org>
5
6 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7*/
8
9#ifndef LISTJOB_H
10#define LISTJOB_H
11
12#include "attica_export.h"
13#include "getjob.h"
14
15class QNetworkRequest;
16
17namespace Attica
18{
19class Provider;
20
21/**
22 * @class ListJob listjob.h <Attica/ListJob>
23 *
24 * Represents a list job.
25 */
26template<class T>
27class ATTICA_EXPORT ListJob : public GetJob
28{
29public:
30 typename T::List itemList() const;
31
32protected:
33 void parse(const QString &xml) override;
34
35private:
36 ListJob(PlatformDependent *internals, const QNetworkRequest &request);
37 typename T::List m_itemList;
38 friend class Attica::Provider;
39};
40
41}
42
43#endif
44

source code of attica/src/listjob.h