/* * SPDX-FileCopyrightText: 2012 Aleix Pol Gonzalez * * SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL */ #pragma once #include "discovercommon_export.h" #include /** * The @class PackageState will be used to expose resources related to an @class AbstractResource. * * @see ApplicationAddonsModel */ class DISCOVERCOMMON_EXPORT PackageState { public: PackageState(QString packageName, QString name, QString description, bool installed); PackageState(const QString &name, const QString &description, bool installed); PackageState(const PackageState &ps); QString packageName() const; QString name() const; QString description() const; bool isInstalled() const; void setInstalled(bool installed); private: QString m_packageName; QString m_name; QString m_description; bool m_installed; }; DISCOVERCOMMON_EXPORT QDebug operator<<(QDebug dbg, const PackageState &state);