Attica

publisher.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 
9 #ifndef ATTICA_PUBLISHER_H
10 #define ATTICA_PUBLISHER_H
11 
12 #include <QDate>
13 #include <QList>
14 #include <QMap>
15 #include <QSharedDataPointer>
16 #include <QStringList>
17 #include <QUrl>
18 
19 #include "buildservice.h"
20 #include "attica_export.h"
21 
22 namespace Attica
23 {
24 
25 struct Field {
26  QString type;
27  QString name;
28  int fieldsize;
29  bool required;
30  QStringList options;
31 };
32 
33 class ATTICA_EXPORT Publisher
34 {
35 public:
36  typedef QList<Publisher> List;
37  class Parser;
38 
39  Publisher();
40  Publisher(const Publisher &other);
41  Publisher &operator=(const Publisher &other);
42  ~Publisher();
43 
44  void setId(const QString &);
45  QString id() const;
46 
47  void setName(const QString &);
48  QString name() const;
49 
50  void setUrl(const QString &);
51  QString url() const;
52 
53  void addField(const Field &);
54  QList<Field> fields() const;
55 
56  void addTarget(const Target &);
57  QList<Target> targets() const;
58 
59  bool isValid() const;
60 private:
61  class Private;
63 };
64 
65 }
66 
67 #endif
QString name(const QVariant &location)
Publisher
Type type(const QSqlDatabase &db)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:25 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.