Libkleo

progressdialog.h
1/*
2 progressdialog.h
3
4 This file is part of libkleopatra, the KDE keymanagement library
5 SPDX-FileCopyrightText: 2004 Klarälvdalens Datakonsult AB
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#pragma once
11
12#include "kleo_export.h"
13
14#include <QProgressDialog>
15
16#ifndef QT_NO_PROGRESSDIALOG
17
18#include <QGpgME/Job>
19
20#include <QString>
21
22namespace Kleo
23{
24
25/**
26 @short A progress dialog for Kleo::Jobs
27*/
28class KLEO_EXPORT ProgressDialog : public QProgressDialog
29{
30 Q_OBJECT
31public:
32 ProgressDialog(QGpgME::Job *job, const QString &baseText, QWidget *widget = nullptr, Qt::WindowFlags f = {});
33 ~ProgressDialog() override;
34
35public Q_SLOTS:
36 /*! reimplementation */
37 void setMinimumDuration(int ms);
38
39private Q_SLOTS:
40 void slotProgress(int current, int total);
41 void slotDone();
42
43private:
44 QString mBaseText;
45};
46
47}
48
49#else
50#ifndef LIBKLEO_NO_PROGRESSDIALOG
51#define LIBKLEO_NO_PROGRESSDIALOG
52#endif
53#endif // QT_NO_PROGRESSDIALOG
A progress dialog for Kleo::Jobs.
typedef WindowFlags
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:14 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.