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

0001 // SPDX-FileCopyrightText: 2022 Felipe Kinoshita <kinofhek@gmail.com>
0002 // SPDX-License-Identifier: LGPL-2.1-or-later
0003 
0004 #pragma once
0005 
0006 #include <QJsonObject>
0007 #include <QString>
0008 
0009 class Task
0010 {
0011 public:
0012     Task(QString title, bool checked);
0013 
0014     QString title();
0015     bool checked();
0016 
0017     void setTitle(const QString &title);
0018     void setChecked(const bool &checked);
0019 
0020     static Task fromJson(const QJsonObject &obj);
0021     QJsonObject toJson() const;
0022 
0023 private:
0024     QString m_title;
0025     bool m_checked;
0026 };