Attica

license.h
1 /*
2  SPDX-FileCopyrightText: 2010 Frederik Gladhorn <[email protected]>
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 
15 namespace Attica
16 {
21 class ATTICA_EXPORT License
22 {
23 public:
24  typedef QList<License> List;
25  class Parser;
26 
30  License();
31 
36  License(const License &other);
37 
43  License &operator=(const License &other);
44 
48  ~License();
49 
50  /*
51  <id>3</id>
52  <name>Artistic 2.0</name>
53  <link>http://dev.perl.org/perl6/rfc/346.html</link>
54  */
55 
56  uint id() const;
57  void setId(uint id);
58 
59  QString name() const;
60  void setName(const QString &name);
61 
62  QUrl url() const;
63  void setUrl(const QUrl &url);
64 
65 private:
66  class Private;
68 };
69 
70 }
71 
72 #endif
The License class contains information about one license that the server offers.
Definition: license.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.