Warning, file /plasma/drkonqi/src/bugzillaintegration/libbugzilla/models/comment.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: 2019-2022 Harald Sitter <sitter@kde.org> 0003 0004 SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL 0005 */ 0006 0007 #ifndef COMMENT_H 0008 #define COMMENT_H 0009 0010 #include <QObject> 0011 #include <QPointer> 0012 0013 namespace Bugzilla 0014 { 0015 class Comment : public QObject 0016 { 0017 Q_OBJECT 0018 Q_PROPERTY(int bug_id READ bug_id MEMBER m_bug_id NOTIFY changed) 0019 Q_PROPERTY(QString text READ text MEMBER m_text NOTIFY changed) 0020 public: 0021 using Ptr = QPointer<Comment>; 0022 0023 explicit Comment(const QVariantHash &object, QObject *parent = nullptr); 0024 0025 int bug_id() const; 0026 QString text() const; 0027 0028 Q_SIGNALS: 0029 void changed(); 0030 0031 private: 0032 int m_bug_id = -1; 0033 QString m_text; 0034 }; 0035 0036 } // namespace Bugzilla 0037 0038 #endif // COMMENT_H