1/*
2 SPDX-FileCopyrightText: 2010 Frederik Gladhorn <gladhorn@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5*/
6
7#ifndef ATTICA_LICENSE_H
8#define ATTICA_LICENSE_H
9
10#include <QSharedDataPointer>
11#include <QUrl>
12
13#include "attica_export.h"
14
15namespace Attica
16{
17/**
18 @class License license.h <Attica/License>
19
20 The License class contains information about one license that the server offers.
21 It consists of an integer id, a name and a link to a webpage describing the license.
22 */
23class ATTICA_EXPORT License
24{
25public:
26 typedef QList<License> List;
27 class Parser;
28
29 /**
30 * Creates an empty License
31 */
32 License();
33
34 /**
35 * Copy constructor.
36 * @param other the License to copy from
37 */
38 License(const License &other);
39
40 /**
41 * Assignment operator.
42 * @param other the License to assign from
43 * @return pointer to this License
44 */
45 License &operator=(const License &other);
46
47 /**
48 * Destructor.
49 */
50 ~License();
51
52 /*
53 <id>3</id>
54 <name>Artistic 2.0</name>
55 <link>http://dev.perl.org/perl6/rfc/346.html</link>
56 */
57
58 uint id() const;
59 void setId(uint id);
60
61 QString name() const;
62 void setName(const QString &name);
63
64 QUrl url() const;
65 void setUrl(const QUrl &url);
66
67private:
68 class Private;
69 QSharedDataPointer<Private> d;
70};
71
72}
73
74#endif
75

source code of attica/src/license.h