Warning, file /education/ktouch/src/core/lesson.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 /*
0002  *  SPDX-FileCopyrightText: 2012 Sebastian Gottfried <sebastiangottfried@web.de>
0003  *
0004  *  SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef LESSON_H
0008 #define LESSON_H
0009 
0010 #include <QObject>
0011 #include <QString>
0012 
0013 class Lesson : public QObject
0014 {
0015     Q_OBJECT
0016     Q_PROPERTY(QString id READ id WRITE setId NOTIFY idChanged)
0017     Q_PROPERTY(QString title READ title WRITE setTitle NOTIFY titleChanged)
0018     Q_PROPERTY(QString newCharacters READ newCharacters WRITE setNewCharacters NOTIFY newCharactersChanged)
0019     Q_PROPERTY(QString characters READ characters WRITE setCharacters NOTIFY charactersChanged)
0020     Q_PROPERTY(QString text READ text WRITE setText NOTIFY textChanged)
0021 
0022 public:
0023     explicit Lesson(QObject *parent = nullptr);
0024     QString id() const;
0025     void setId(const QString& id);
0026     QString title() const;
0027     void setTitle(const QString& title);
0028     QString newCharacters() const;
0029     void setNewCharacters(const QString& newCharacters);
0030     QString characters() const;
0031     void setCharacters(const QString& characters);
0032     QString text();
0033     void setText(const QString& text);
0034     Q_INVOKABLE void copyFrom(Lesson* source);
0035 
0036 signals:
0037     void idChanged();
0038     void titleChanged();
0039     void newCharactersChanged();
0040     void charactersChanged();
0041     void textChanged();
0042 
0043 private:
0044     Q_DISABLE_COPY(Lesson)
0045     QString m_id;
0046     QString m_title;
0047     QString m_newCharacters;
0048     QString m_characters;
0049     QString m_text;
0050 };
0051 
0052 #endif // LESSON_H