Purpose

reviewboardrc.h
1/*
2 SPDX-FileCopyrightText: 2015 Aleix Pol Gonzalez <aleixpol@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#ifndef REVIEWBOARDRC_H
8#define REVIEWBOARDRC_H
9
10#include <QJsonObject>
11#include <QObject>
12#include <QUrl>
13
14class ReviewboardRC : public QObject
15{
17 Q_PROPERTY(QUrl path READ path WRITE setPath)
18 Q_PROPERTY(QUrl server READ server NOTIFY dataChanged)
19 Q_PROPERTY(QString repository READ repository NOTIFY dataChanged)
20 Q_PROPERTY(QJsonObject extraData READ extraData NOTIFY dataChanged)
21public:
22 ReviewboardRC(QObject *parent = nullptr);
23
24 void setPath(const QUrl &path);
25
26 QUrl path() const
27 {
28 return m_path;
29 }
30 QUrl server() const
31 {
32 return m_server;
33 }
34 QString repository() const
35 {
36 return m_repository;
37 }
38 QJsonObject extraData() const
39 {
40 return m_extraData;
41 }
42
44 void dataChanged();
45
46private:
47 void addExtraData(const QString &key, const QString &value);
48
49 QUrl m_path;
50 QUrl m_server;
51 QString m_repository;
52 QJsonObject m_extraData;
53};
54
55#endif
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 13 2024 11:49:16 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.