2020-05-26 16:32:07 +02:00
|
|
|
/**
|
2020-08-14 20:56:04 +02:00
|
|
|
* SPDX-FileCopyrightText: 2020 Tobias Fella <fella@posteo.de>
|
2020-05-26 16:32:07 +02:00
|
|
|
*
|
2020-08-14 20:56:04 +02:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
2020-05-26 16:32:07 +02:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef AUTHOR_H
|
|
|
|
#define AUTHOR_H
|
|
|
|
|
|
|
|
#include <QObject>
|
|
|
|
|
|
|
|
class Author : public QObject
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
Q_PROPERTY(QString name READ name CONSTANT)
|
|
|
|
Q_PROPERTY(QString email READ email CONSTANT)
|
|
|
|
Q_PROPERTY(QString url READ url CONSTANT)
|
|
|
|
|
|
|
|
public:
|
2020-11-01 13:18:11 +01:00
|
|
|
Author(const QString &name, const QString &email, const QString &url, QObject *parent = nullptr);
|
2020-05-26 16:32:07 +02:00
|
|
|
~Author();
|
|
|
|
|
|
|
|
QString name() const;
|
|
|
|
QString email() const;
|
|
|
|
QString url() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
QString m_name;
|
|
|
|
QString m_email;
|
|
|
|
QString m_url;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // AUTHOR_H
|