Attica

downloaditem.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2009 Frederik Gladhorn <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8 
9 #ifndef ATTICA_DOWNLOADITEM_H
10 #define ATTICA_DOWNLOADITEM_H
11 
12 #include <QSharedDataPointer>
13 #include <QUrl>
14 
15 #include "attica_export.h"
16 #include "downloaddescription.h"
17 
18 namespace Attica
19 {
20 
21 class ATTICA_EXPORT DownloadItem
22 {
23 public:
24  typedef QList<DownloadItem> List;
25  class Parser;
26 
30  DownloadItem();
31 
36  DownloadItem(const DownloadItem &other);
37 
43  DownloadItem &operator=(const DownloadItem &other);
44 
48  ~DownloadItem();
49 
50  void setUrl(const QUrl &url);
51  QUrl url() const;
52  void setMimeType(const QString &mimeType);
53  QString mimeType() const;
54  void setPackageName(const QString &packageName);
55  QString packageName() const;
56  void setPackageRepository(const QString &packageRepository);
57  QString packageRepository() const;
58  void setGpgFingerprint(const QString &gpgFingerprint);
59  QString gpgFingerprint() const;
60  void setGpgSignature(const QString &gpgSignature);
61  QString gpgSignature() const;
62  void setType(Attica::DownloadDescription::Type type);
63  Attica::DownloadDescription::Type type();
64 
65 private:
66  class Private;
68 };
69 
70 }
71 
72 #endif // DOWNLOADITEM_H
Type type(const QSqlDatabase &db)
QString mimeType(Type)
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.