Changeset View
Changeset View
Standalone View
Standalone View
plugins/phabricator/phabricatorhookupconfiguration.h
- This file was added.
1 | /* This file is part of KDevelop | ||||
---|---|---|---|---|---|
2 | Copyright 2017 Friedrich W. H. Kossebau <kossebau@kde.org> | ||||
3 | | ||||
4 | This library is free software; you can redistribute it and/or | ||||
5 | modify it under the terms of the GNU Library General Public | ||||
6 | License as published by the Free Software Foundation; either | ||||
7 | version 2 of the License, or (at your option) any later version. | ||||
8 | | ||||
9 | This library is distributed in the hope that it will be useful, | ||||
10 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
12 | Library General Public License for more details. | ||||
13 | | ||||
14 | You should have received a copy of the GNU Library General Public License | ||||
15 | along with this library; see the file COPYING.LIB. If not, write to | ||||
16 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | ||||
17 | Boston, MA 02110-1301, USA. | ||||
18 | */ | ||||
19 | | ||||
20 | #ifndef PHABRICATORHOOKUPCONFIGURATION_H | ||||
21 | #define PHABRICATORHOOKUPCONFIGURATION_H | ||||
22 | | ||||
23 | #include <interfaces/iprojectservicehookupconfiguration.h> | ||||
24 | | ||||
25 | #include <QString> | ||||
26 | #include <QUrl> | ||||
27 | | ||||
28 | class PhabricatorHookupConfiguration : public KDevelop::IProjectServiceHookupConfiguration | ||||
29 | { | ||||
30 | public: | ||||
31 | PhabricatorHookupConfiguration(const QString& id, const QString& name); | ||||
32 | | ||||
33 | QString id() const override; | ||||
34 | void setId(const QString& id) override; | ||||
35 | QString displayName() const override; | ||||
36 | void setDisplayName(const QString& displayName) override; | ||||
37 | QString projectServiceId() const override; | ||||
38 | | ||||
39 | QUrl baseUrl() const; | ||||
40 | QString repositoryName() const; | ||||
41 | QString repositoryId() const; | ||||
42 | void setBaseUrl(const QUrl& baseUrl); | ||||
43 | void setRepositoryName(const QString& repositoryName); | ||||
44 | void setRepositoryId(const QString& repositoryId); | ||||
45 | | ||||
46 | private: | ||||
47 | QString m_id; | ||||
48 | QString m_name; | ||||
49 | QUrl m_baseUrl; | ||||
50 | QString m_repositoryName; | ||||
51 | QString m_repositoryId; | ||||
52 | }; | ||||
53 | | ||||
54 | #endif // PHABRICATORHOOKUPCONFIGURATION_H |