Attica

license.cpp
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#include "license.h"
8
9using namespace Attica;
10
11class Q_DECL_HIDDEN License::Private : public QSharedData
12{
13public:
14 int id;
16 QUrl url;
17
18 Private()
19 : id(-1)
20 {
21 }
22};
23
25 : d(new Private)
26{
27}
28
30 : d(other.d)
31{
32}
33
35{
36 d = other.d;
37 return *this;
38}
39
43
44uint License::id() const
45{
46 return d->id;
47}
48
49void License::setId(uint id)
50{
51 d->id = id;
52}
53
54QString License::name() const
55{
56 return d->name;
57}
58
59void License::setName(const QString &name)
60{
61 d->name = name;
62}
63
64void License::setUrl(const QUrl &url)
65{
66 d->url = url;
67}
68
69QUrl License::url() const
70{
71 return d->url;
72}
The License class contains information about one license that the server offers.
Definition license.h:24
License & operator=(const License &other)
Assignment operator.
Definition license.cpp:34
License()
Creates an empty License.
Definition license.cpp:24
~License()
Destructor.
Definition license.cpp:40
The Attica namespace,.
QString name(StandardAction id)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:17:36 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.