digiKam
wstooldialog.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2012-04-04
7  * Description : Web Service Tool dialog
8  *
9  * Copyright (C) 2012-2022 by Gilles Caulier <caulier dot gilles at gmail dot com>
10  *
11  * This program is free software; you can redistribute it
12  * and/or modify it under the terms of the GNU General
13  * Public License as published by the Free Software Foundation;
14  * either version 2, or (at your option) any later version.
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU General Public License for more details.
20  *
21  * ============================================================ */
22 
23 #ifndef DIGIKAM_WS_TOOL_DIALOG_H
24 #define DIGIKAM_WS_TOOL_DIALOG_H
25 
26 // KDE includes
27 
28 #include <QDialog>
29 #include <QDialogButtonBox>
30 
31 // Local includes
32 
33 #include "digikam_export.h"
34 #include "dplugindialog.h"
35 
36 class QAbstractButton;
37 class QPushButton;
38 
39 namespace Digikam
40 {
41 
42 class DIGIKAM_EXPORT WSToolDialog : public DPluginDialog
43 {
44  Q_OBJECT
45 
46 public:
47 
48  explicit WSToolDialog(QWidget* const parent, const QString& objName);
49  ~WSToolDialog() override;
50 
51  void setMainWidget(QWidget* const widget);
52 
53  void setRejectButtonMode(QDialogButtonBox::StandardButton button);
54 
55  QPushButton* startButton() const;
56 
57  void addButton(QAbstractButton* button, QDialogButtonBox::ButtonRole role);
58 
59 private Q_SLOTS:
60 
61  void slotCloseClicked();
62 
63 Q_SIGNALS:
64 
65  void cancelClicked();
66 
67 private:
68 
69  class Private;
70  Private* const d;
71 };
72 
73 } // namespace Digikam
74 
75 #endif // DIGIKAM_WS_TOOL_DIALOG_H
Definition: dplugindialog.h:42
Definition: wstooldialog.h:43
Definition: datefolderview.cpp:43