KNewStuff

downloadlinkinfo.h
1 /*
2  SPDX-FileCopyrightText: 2016 Dan Leinir Turthra Jensen <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
5 */
6 
7 #ifndef DOWNLOADLINKINFO_H
8 #define DOWNLOADLINKINFO_H
9 
10 #include <QObject>
11 
12 #include "entryinternal.h"
13 
21 class DownloadLinkInfo : public QObject
22 {
23  Q_OBJECT
24  Q_PROPERTY(QString name READ name NOTIFY dataChanged)
25  Q_PROPERTY(QString priceAmount READ priceAmount NOTIFY dataChanged)
26  Q_PROPERTY(QString distributionType READ distributionType NOTIFY dataChanged)
27  Q_PROPERTY(QString descriptionLink READ descriptionLink NOTIFY dataChanged)
28  Q_PROPERTY(int id READ id NOTIFY dataChanged)
29  Q_PROPERTY(bool isDownloadtypeLink READ isDownloadtypeLink NOTIFY dataChanged)
30  Q_PROPERTY(quint64 size READ size NOTIFY dataChanged)
31 public:
32  explicit DownloadLinkInfo(QObject* parent = nullptr);
33  virtual ~DownloadLinkInfo();
34 
35  void setData(const KNSCore::EntryInternal::DownloadLinkInformation& data);
36  Q_SIGNAL void dataChanged();
37 
38  QString name() const;
39  QString priceAmount() const;
40  QString distributionType() const;
41  QString descriptionLink() const;
42  int id() const;
43  bool isDownloadtypeLink() const;
44  quint64 size() const;
45 private:
46  class Private;
47  Private* d;
48 };
49 
50 #endif//DOWNLOADLINKINFO_H
One downloadable item as contained within one content item.
Q_OBJECTQ_OBJECT
Q_PROPERTY(...)
Q_SIGNALQ_SIGNAL
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Tue Aug 11 2020 22:43:23 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.