KNewStuff

downloaddialog.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_DOWNLOADDIALOG_H
13 #define KNEWSTUFF3_UI_DOWNLOADDIALOG_H
14 
15 #include <QDialog>
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 DownloadDialogPrivate;
28 
94 class KNEWSTUFF_EXPORT DownloadDialog : public QDialog
95 {
96  Q_OBJECT
97 
98 public:
106  explicit DownloadDialog(QWidget *parent = nullptr);
107 
116  explicit DownloadDialog(const QString &configFile, QWidget *parent = nullptr);
117 
121  ~DownloadDialog() override;
122 
127  KNS3::Entry::List changedEntries();
128 
133  KNS3::Entry::List installedEntries();
134 
139  void setTitle(const QString &title);
140 
145  QString title() const;
146 
151  KNSCore::Engine *engine();
152 
153 public Q_SLOTS:
154  // Override these slots so we can add KAuthorized checks to them.
155  int exec() override;
156  void open() override;
157 
158 protected:
159  void showEvent(QShowEvent *event) override;
160 
161 private:
162  void init(const QString &configFile);
163 
164  DownloadDialogPrivate *const d;
165  Q_DISABLE_COPY(DownloadDialog)
166 };
167 
168 }
169 
170 #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.
QCA_EXPORT void init()
KNewStuff engine.
Definition: engine.h:59
The namespace for the KNewStuff classes.
Definition: button.cpp:19
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 18 2021 22:43:49 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.