Attica

config.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2018 Ralf Habacker <[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_CONFIG_H
9 #define ATTICA_CONFIG_H
10 
11 #include <QString>
12 #include <QSharedDataPointer>
13 
14 #include "attica_export.h"
15 
16 namespace Attica {
17 
21 class ATTICA_EXPORT Config
22 {
23  public:
24  typedef QList<Config> List;
25  class Parser;
26 
30  Config();
31 
36  Config(const Config& other);
37 
43  Config& operator=(const Config& other);
44 
48  ~Config();
49 
50  QString contact() const;
51  QString host() const;
52  QString version() const;
53  bool ssl() const;
54  QString website() const;
55 
56  void setContact(const QString &contact);
57  void setHost(const QString &host);
58  void setSsl(bool ssl);
59  void setVersion(const QString &version);
60  void setWebsite(const QString &website);
61 
66  bool isValid() const;
67 
68  private:
69  class Private;
71 };
72 
73 }
74 
75 #endif
Represents a server config.
Definition: config.h:21
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.