KNewStuff

downloadwidget.h
1 /*
2  knewstuff3/ui/downloaddialog.h.
3  SPDX-FileCopyrightText: 2005 Enrico Ros <[email protected]>
4  SPDX-FileCopyrightText: 2005-2007 Josef Spillner <[email protected]>
5  SPDX-FileCopyrightText: 2007 Dirk Mueller <[email protected]>
6  SPDX-FileCopyrightText: 2007-2009 Jeremy Whiting <[email protected]>
7  SPDX-FileCopyrightText: 2009-2010 Frederik Gladhorn <[email protected]>
8 
9  SPDX-License-Identifier: LGPL-2.1-or-later
10 */
11 
12 #ifndef KNEWSTUFF3_UI_DOWNLOADWIDGET_H
13 #define KNEWSTUFF3_UI_DOWNLOADWIDGET_H
14 
15 #include <QWidget>
16 
17 #include "knewstuff_export.h"
18 #include "entry.h"
19 
20 namespace KNSCore
21 {
22 class Engine;
23 }
24 
25 namespace KNS3
26 {
27 class DownloadWidgetPrivate;
28 
66 class KNEWSTUFF_EXPORT DownloadWidget : public QWidget
67 {
68  Q_OBJECT
69 
70 public:
78  explicit DownloadWidget(QWidget *parent = nullptr);
79 
88  explicit DownloadWidget(const QString &configFile, QWidget *parent = nullptr);
89 
93  ~DownloadWidget();
94 
99  KNS3::Entry::List changedEntries();
100 
105  KNS3::Entry::List installedEntries();
106 
111  void setTitle(const QString &title);
112 
117  QString title() const;
118 
123  KNSCore::Engine *engine();
124 
125 private:
126  void init(const QString &configFile);
127 
128  DownloadWidgetPrivate *const d;
129  Q_DISABLE_COPY(DownloadWidget)
130 
131  Q_PRIVATE_SLOT(d, void slotListViewListMode())
132  Q_PRIVATE_SLOT(d, void slotListViewIconMode())
133 
134  Q_PRIVATE_SLOT(d, void slotProvidersLoaded())
135  Q_PRIVATE_SLOT(d, void slotEntriesLoaded(const KNSCore::EntryInternal::List &entries))
136  Q_PRIVATE_SLOT(d, void slotEntryChanged(const KNSCore::EntryInternal &entry))
137  Q_PRIVATE_SLOT(d, void slotShowDetails(const KNSCore::EntryInternal &entry))
138  Q_PRIVATE_SLOT(d, void slotShowOverview())
139 
140  Q_PRIVATE_SLOT(d, void slotPayloadFailed(const KNSCore::EntryInternal &entry))
141  Q_PRIVATE_SLOT(d, void slotPayloadLoaded(QUrl url))
142 
143  Q_PRIVATE_SLOT(d, void slotResetMessage())
144  Q_PRIVATE_SLOT(d, void slotNetworkTimeout())
145  Q_PRIVATE_SLOT(d, void sortingChanged())
146  Q_PRIVATE_SLOT(d, void slotSearchTextChanged())
147  Q_PRIVATE_SLOT(d, void slotUpdateSearch())
148  Q_PRIVATE_SLOT(d, void slotCategoryChanged(int))
149 
150  Q_PRIVATE_SLOT(d, void slotInfo(QString provider, QString server, QString version))
151  Q_PRIVATE_SLOT(d, void slotError(const QString &message))
152  Q_PRIVATE_SLOT(d, void scrollbarValueChanged(int value))
153 
154  friend class DownloadDialog;
155 };
156 
157 }
158 
159 #endif
Contains the core functionality for handling interaction with NewStuff providers. ...
Encapsulates a KNSCore::Engine for use in Qt Quick.
Definition: quickengine.h:23
KNewStuff download dialog.
KNewStuff download widget.
QCA_EXPORT void init()
KNewStuff data entry container.
Definition: entryinternal.h:49
KNewStuff engine.
Definition: engine.h:59
Definition: button.cpp:18
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.