/* This file is part of KDE. SPDX-FileCopyrightText: 2009 Frederik Gladhorn SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL */ #ifndef ATTICA_DOWNLOADITEM_H #define ATTICA_DOWNLOADITEM_H #include #include #include "attica_export.h" #include "downloaddescription.h" namespace Attica { /** * @class DownloadItem downloaditem.h * * Represents a download item. */ class ATTICA_EXPORT DownloadItem { public: typedef QList List; class Parser; /** * Creates an empty DownloadItem */ DownloadItem(); /** * Copy constructor. * @param other the DownloadItem to copy from */ DownloadItem(const DownloadItem &other); /** * Assignment operator. * @param other the DownloadItem to assign from * @return pointer to this DownloadItem */ DownloadItem &operator=(const DownloadItem &other); /** * Destructor. */ ~DownloadItem(); void setUrl(const QUrl &url); QUrl url() const; void setMimeType(const QString &mimeType); QString mimeType() const; void setPackageName(const QString &packageName); QString packageName() const; void setPackageRepository(const QString &packageRepository); QString packageRepository() const; void setGpgFingerprint(const QString &gpgFingerprint); QString gpgFingerprint() const; void setGpgSignature(const QString &gpgSignature); QString gpgSignature() const; void setType(Attica::DownloadDescription::Type type); Attica::DownloadDescription::Type type(); private: class Private; QSharedDataPointer d; }; } #endif // DOWNLOADITEM_H