Mercurial > trustbridge
annotate ui/statusdialog.h @ 502:e551de11d8b6
Properly handle the case that the file does not exist.
TRUNCATE makes create file fail if the file does not exist
but we need TRUNCATE in the case that the file already exists
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Mon, 28 Apr 2014 09:18:07 +0000 |
parents | 17e1c8f37d72 |
children |
rev | line source |
---|---|
404 | 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 */ | |
211
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
8 #ifndef STATUSDIALOG_H |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
9 #define STATUSDIALOG_H |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
10 |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
11 #include <QDialog> |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
12 #include <QMainWindow> |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
13 /** |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
14 * @file statusdialog.h |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
15 * @brief The dialog for certificate status. |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
16 */ |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
17 |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
18 class StatusDialog : public QDialog |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
19 { |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
20 public: |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
21 /** @brief Create a status dialog */ |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
22 StatusDialog(QMainWindow *parent); |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
23 |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
24 private: |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
25 void setupGUI(); |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
26 |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
27 }; |
be628d261617
Added new status dialog.
Raimund Renkert <rrenkert@intevation.de>
parents:
diff
changeset
|
28 #endif // STATUSDIALOG_H |