/* SPDX-FileCopyrightText: 2010 Frederik Gladhorn SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef ATTICA_LICENSE_H #define ATTICA_LICENSE_H #include #include #include "attica_export.h" namespace Attica { /*! \class Attica::License \inheaderfile Attica/License \inmodule Attica \brief The License class contains information about one license that the server offers. It consists of an integer id, a name and a link to a webpage describing the license. */ class ATTICA_EXPORT License { public: /*! * */ typedef QList List; class Parser; /*! * Creates an empty License */ License(); License(const License &other); License &operator=(const License &other); ~License(); /* 3 Artistic 2.0 http://dev.perl.org/perl6/rfc/346.html */ /*! * */ uint id() const; /*! * */ void setId(uint id); /*! * */ QString name() const; /*! * */ void setName(const QString &name); /*! * */ QUrl url() const; /*! * */ void setUrl(const QUrl &url); private: class Private; QSharedDataPointer d; }; } #endif