1 | /* |
2 | This file is part of KDE. |
3 | |
4 | SPDX-FileCopyrightText: 2010 Sebastian Kügler <sebas@kde.org> |
5 | |
6 | SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL |
7 | */ |
8 | #ifndef ATTICA_BUILDSERVICE_H |
9 | #define ATTICA_BUILDSERVICE_H |
10 | |
11 | #include <QDate> |
12 | #include <QList> |
13 | #include <QMap> |
14 | #include <QSharedDataPointer> |
15 | #include <QStringList> |
16 | #include <QUrl> |
17 | |
18 | #include "attica_export.h" |
19 | |
20 | namespace Attica |
21 | { |
22 | |
23 | /*! |
24 | * \class Attica::Target |
25 | * \inheaderfile Attica/BuildService |
26 | * \inmodule Attica |
27 | * |
28 | * \brief The target in a build service. |
29 | */ |
30 | struct Target { |
31 | /*! |
32 | * \variable Attica::Target::id |
33 | */ |
34 | QString id; |
35 | |
36 | /*! |
37 | * \variable Attica::Target::name |
38 | */ |
39 | QString name; |
40 | }; |
41 | |
42 | /*! |
43 | * \class Attica::BuildService |
44 | * \inheaderfile Attica/BuildService |
45 | * \inmodule Attica |
46 | * |
47 | * \brief Represents a build service. |
48 | */ |
49 | class ATTICA_EXPORT BuildService |
50 | { |
51 | public: |
52 | /*! |
53 | * |
54 | */ |
55 | typedef QList<BuildService> List; |
56 | class Parser; |
57 | |
58 | /*! |
59 | * |
60 | */ |
61 | BuildService(); |
62 | BuildService(const BuildService &other); |
63 | BuildService &operator=(const BuildService &other); |
64 | ~BuildService(); |
65 | |
66 | /*! |
67 | * |
68 | */ |
69 | void setId(const QString &); |
70 | |
71 | /*! |
72 | * |
73 | */ |
74 | QString id() const; |
75 | |
76 | /*! |
77 | * |
78 | */ |
79 | void setName(const QString &); |
80 | |
81 | /*! |
82 | * |
83 | */ |
84 | QString name() const; |
85 | |
86 | /*! |
87 | * |
88 | */ |
89 | void setUrl(const QString &); |
90 | |
91 | /*! |
92 | * |
93 | */ |
94 | QString url() const; |
95 | |
96 | /*! |
97 | * |
98 | */ |
99 | void addTarget(const Target &); |
100 | |
101 | /*! |
102 | * |
103 | */ |
104 | QList<Target> targets() const; |
105 | |
106 | /*! |
107 | * |
108 | */ |
109 | bool isValid() const; |
110 | |
111 | private: |
112 | class Private; |
113 | QSharedDataPointer<Private> d; |
114 | }; |
115 | |
116 | } |
117 | |
118 | #endif |
119 | |