Attica 5.109.0
license.h
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{
23class ATTICA_EXPORT License
24{
25public:
26 typedef QList<License> List;
27 class Parser;
28
33
38 License(const License &other);
39
45 License &operator=(const License &other);
46
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
The License class contains information about one license that the server offers.
Definition license.h:24
License()
Creates an empty License.
~License()
Destructor.
License & operator=(const License &other)
Assignment operator.
License(const License &other)
Copy constructor.
The Attica namespace,.
Definition activity.h:21