Attica

buildservice.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2010 Sebastian K├╝gler <[email protected]>
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 <QtCore/QDate>
12 #include <QtCore/QList>
13 #include <QtCore/QMap>
14 #include <QtCore/QSharedDataPointer>
15 #include <QtCore/QStringList>
16 #include <QtCore/QUrl>
17 
18 #include "attica_export.h"
19 
20 namespace Attica
21 {
22 
23 struct Target {
24  QString id;
25  QString name;
26 };
27 
28 class ATTICA_EXPORT BuildService
29 {
30 public:
31  typedef QList<BuildService> List;
32  class Parser;
33 
34  BuildService();
35  BuildService(const BuildService &other);
36  BuildService &operator=(const BuildService &other);
37  ~BuildService();
38 
39  void setId(const QString &);
40  QString id() const;
41 
42  void setName(const QString &);
43  QString name() const;
44 
45  void setUrl(const QString &);
46  QString url() const;
47 
48  void addTarget(const Target &);
49  QList<Target> targets() const;
50 
51  bool isValid() const;
52 private:
53  class Private;
55 };
56 
57 }
58 
59 #endif
QString name(const QVariant &location)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Jan 23 2021 03:59:44 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.