1 | /* |
2 | SPDX-FileCopyrightText: 2017 René J.V. Bertin <rjvbertin@gmail.com> |
3 | |
4 | SPDX-License-Identifier: LGPL-2.0-or-later |
5 | */ |
6 | |
7 | #ifndef PHABRICATORRC_H |
8 | #define PHABRICATORRC_H |
9 | |
10 | #include <QObject> |
11 | #include <QUrl> |
12 | |
13 | class PhabricatorRC : public QObject |
14 | { |
15 | Q_OBJECT |
16 | Q_PROPERTY(QUrl path READ path WRITE setPath NOTIFY dataChanged) |
17 | public: |
18 | PhabricatorRC(QObject *parent = nullptr); |
19 | |
20 | void setPath(const QUrl &path); |
21 | |
22 | QUrl path() const |
23 | { |
24 | return m_path; |
25 | } |
26 | |
27 | Q_SIGNALS: |
28 | void dataChanged(); |
29 | |
30 | private: |
31 | QUrl m_path; |
32 | }; |
33 | |
34 | #endif |
35 | |