1/*
2 This file is part of KDE.
3
4 SPDX-FileCopyrightText: 2010 Intel Corporation
5 SPDX-FileContributor: Mateu Batle Sastre <mbatle@collabora.co.uk>
6
7 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
8*/
9
10#ifndef ATTICA_DISTRIBUTION_H
11#define ATTICA_DISTRIBUTION_H
12
13#include <QSharedDataPointer>
14#include <QUrl>
15
16#include "attica_export.h"
17
18namespace Attica
19{
20/*!
21 \class Attica::Distribution
22 \inheaderfile Attica/Distribution
23 \inmodule Attica
24
25 \brief The Distribution class contains information about one distribution that the server offers.
26
27 It consists of an integer id and a distribution name.
28 */
29class ATTICA_EXPORT Distribution
30{
31public:
32 /*!
33 *
34 */
35 typedef QList<Distribution> List;
36 class Parser;
37
38 /*!
39 * Creates an empty Distribution
40 */
41 Distribution();
42
43 Distribution(const Distribution &other);
44
45 Distribution &operator=(const Distribution &other);
46
47 ~Distribution();
48
49 /*
50 <id>2000</id>
51 <name>Ark</name>
52 */
53
54 /*!
55 *
56 */
57 uint id() const;
58
59 /*!
60 *
61 */
62 void setId(uint id);
63
64 /*!
65 *
66 */
67 QString name() const;
68
69 /*!
70 *
71 */
72 void setName(const QString &name);
73
74private:
75 class Private;
76 QSharedDataPointer<Private> d;
77};
78
79}
80
81#endif
82

source code of attica/src/distribution.h