KNewStuff

downloaddialog.h
1 /*
2  knewstuff3/ui/downloaddialog.h.
3  Copyright (C) 2005 by Enrico Ros <[email protected]>
4  Copyright (C) 2005 - 2007 Josef Spillner <[email protected]>
5  Copyright (C) 2007 Dirk Mueller <[email protected]>
6  Copyright (C) 2007-2009 Jeremy Whiting <[email protected]>
7  Copyright (C) 2009-2010 Frederik Gladhorn <[email protected]>
8 
9  This library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU Lesser General Public
11  License as published by the Free Software Foundation; either
12  version 2.1 of the License, or (at your option) any later version.
13 
14  This library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  Lesser General Public License for more details.
18 
19  You should have received a copy of the GNU Lesser General Public
20  License along with this library. If not, see <http://www.gnu.org/licenses/>.
21 */
22 
23 #ifndef KNEWSTUFF3_UI_DOWNLOADDIALOG_H
24 #define KNEWSTUFF3_UI_DOWNLOADDIALOG_H
25 
26 #include <QDialog>
27 
28 #include "knewstuff_export.h"
29 #include "entry.h"
30 
31 namespace KNSCore
32 {
33 class Engine;
34 }
35 
36 namespace KNS3
37 {
38 class DownloadDialogPrivate;
39 
105 class KNEWSTUFF_EXPORT DownloadDialog : public QDialog
106 {
107  Q_OBJECT
108 
109 public:
117  explicit DownloadDialog(QWidget *parent = nullptr);
118 
127  explicit DownloadDialog(const QString &configFile, QWidget *parent = nullptr);
128 
132  ~DownloadDialog() override;
133 
138  KNS3::Entry::List changedEntries();
139 
144  KNS3::Entry::List installedEntries();
145 
150  void setTitle(const QString &title);
151 
156  QString title() const;
157 
162  KNSCore::Engine *engine();
163 
164 public Q_SLOTS:
165  // Override these slots so we can add KAuthorized checks to them.
166  int exec() override;
167  void open() override;
168 
169 protected:
170  void showEvent(QShowEvent *event) override;
171 
172 private:
173  void init(const QString &configFile);
174 
175  DownloadDialogPrivate *const d;
176  Q_DISABLE_COPY(DownloadDialog)
177 };
178 
179 }
180 
181 #endif
Contains the core functionality for handling interaction with NewStuff providers. ...
Encapsulates a KNSCore::Engine for use in Qt Quick.
Definition: quickengine.h:38
KNewStuff download dialog.
QCA_EXPORT void init()
KNewStuff engine.
Definition: engine.h:70
Definition: button.cpp:29
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Aug 9 2020 22:43:40 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.