| 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 | #include "phabricatorrc.h" |
| 8 | |
| 9 | PhabricatorRC::PhabricatorRC(QObject *parent) |
| 10 | : QObject(parent) |
| 11 | { |
| 12 | } |
| 13 | |
| 14 | void PhabricatorRC::setPath(const QUrl &filePath) |
| 15 | { |
| 16 | if (filePath == m_path || !filePath.isLocalFile()) { |
| 17 | return; |
| 18 | } |
| 19 | m_path = filePath; |
| 20 | |
| 21 | //.arcconfig files are JSON files |
| 22 | // TODO figure out the if/what/how of .arcconfig file contents |
| 23 | Q_EMIT dataChanged(); |
| 24 | } |
| 25 | |
| 26 | #include "moc_phabricatorrc.cpp" |
| 27 | |