/* This file is part of KDE. SPDX-FileCopyrightText: 2018 Ralf Habacker SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef ATTICA_CONFIG_H #define ATTICA_CONFIG_H #include #include #include "attica_export.h" namespace Attica { /*! * \class Attica::Config * \inheaderfile Attica/Config * \inmodule Attica * * \brief Represents a server config. */ class ATTICA_EXPORT Config { public: /*! * */ typedef QList List; class Parser; /*! * Creates an empty Config */ Config(); Config(const Config &other); Config &operator=(const Config &other); ~Config(); /*! * */ QString contact() const; /*! * */ QString host() const; /*! * */ QString version() const; /*! * */ bool ssl() const; /*! * */ QString website() const; /*! * */ void setContact(const QString &contact); /*! * */ void setHost(const QString &host); /*! * */ void setSsl(bool ssl); /*! * */ void setVersion(const QString &version); /*! * */ void setWebsite(const QString &website); /*! * Returns whether this config is valid */ bool isValid() const; private: class Private; QSharedDataPointer d; }; } #endif