comparison ui/processwaitdialog.h @ 609:292c590ba9cb

Add warning dialog for running firefox and tunderbird processes
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 18 Jun 2014 14:40:06 +0200
parents
children 78798d3af8f0
comparison
equal deleted inserted replaced
608:81a44b93229e 609:292c590ba9cb
1 /* Copyright (C) 2014 by Bundesamt für Sicherheit in der Informationstechnik
2 * Software engineering by Intevation GmbH
3 *
4 * This file is Free Software under the GNU GPL (v>=2)
5 * and comes with ABSOLUTELY NO WARRANTY!
6 * See LICENSE.txt for details. */
7 #ifndef PROCESSWAITDIALOG_H
8 #define PROCESSWAITDIALOG_H
9
10 #include <QDialog>
11 #include <QStringList>
12
13 /** @file Dialog to show that some processes need to be closed
14 *
15 * This dialog informs about processes that are still running and
16 * need to be closed.
17 */
18
19 class ProcessWaitDialog : public QDialog
20 {
21 Q_OBJECT
22
23 public:
24 /** @brief create the dialog
25 *
26 * The dialog is modal and will stay open until no more processes
27 * with names from processnames exist.
28 *
29 * @param[in] parent the parent dialog
30 * @param[in] processNames the names of the processes to wait for.
31 */
32 ProcessWaitDialog(QWidget *parent, const QStringList& processNames);
33
34 private slots:
35
36 /** @brief update the process list */
37 void updateProcesses();
38
39 private:
40
41 QListWidget *mProcessList;
42 const QStringList mProcessNames;
43 };
44
45 #endif // PROCESSWAITDIALOG_H

http://wald.intevation.org/projects/trustbridge/