Files
RedBear-OS/local/recipes/kde/kf6-attica/source/src/config.h
T
vasilito e8a15d396a fix: KF6Attica recipe, kf6-knewstuff Attica dep, topo-sort cycle error
- Created kf6-attica recipe (minimal core library build providing
  KF6::Attica cmake target, needed by kf6-knewstuff). v6.10.0,
  QML/tests/examples disabled.
- Added kf6-attica to redbear-full.toml config, integrate-redbear.sh
  symlink, and recipes/kde/ symlink.
- Fixed kf6-knewstuff: removed stale find_package(KF6Attica)
  suppression; added kf6-attica as dependency. Now publishes
  to repo (core-only build produces empty package — upstream
  code structure yields no libs with QtQuick/widgets/tools off).
- Cookbook topo-sort: changed cycle fallback from silent
  Ok(recipes) to Err(Recursion) — surfaces dependency graph
  bugs instead of hiding them.
- Fixed stale QtNetwork comment: QtNetwork IS enabled in qtbase
  since 2026-04-29 (relibc DNS resolver hardened).
- Verified: kf6-attica builds, kf6-knewstuff publishes to repo
2026-04-30 01:32:25 +01:00

78 lines
1.5 KiB
C++

/*
This file is part of KDE.
SPDX-FileCopyrightText: 2018 Ralf Habacker <ralf.habacker@freenet.de>
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 <QSharedDataPointer>
#include <QString>
#include "attica_export.h"
namespace Attica
{
/**
* @class Config config.h <Attica/Config>
*
* Represents a server config
*/
class ATTICA_EXPORT Config
{
public:
typedef QList<Config> List;
class Parser;
/**
* Creates an empty Config
*/
Config();
/**
* Copy constructor.
* @param other the Config to copy from
*/
Config(const Config &other);
/**
* Assignment operator.
* @param other the Config to assign from
* @return pointer to this Config
*/
Config &operator=(const Config &other);
/**
* Destructor.
*/
~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);
/**
* Checks whether this config is valid
* @return @c true if config is valid, @c false otherwise
*/
bool isValid() const;
private:
class Private;
QSharedDataPointer<Private> d;
};
}
#endif