File indexing completed on 2025-01-19 03:55:41
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2012-04-04 0007 * Description : Web Service Tool dialog 0008 * 0009 * SPDX-FileCopyrightText: 2012-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0010 * 0011 * SPDX-License-Identifier: GPL-2.0-or-later 0012 * 0013 * ============================================================ */ 0014 0015 #ifndef DIGIKAM_WS_TOOL_DIALOG_H 0016 #define DIGIKAM_WS_TOOL_DIALOG_H 0017 0018 // KDE includes 0019 0020 #include <QDialog> 0021 #include <QDialogButtonBox> 0022 0023 // Local includes 0024 0025 #include "digikam_export.h" 0026 #include "dplugindialog.h" 0027 0028 class QAbstractButton; 0029 class QPushButton; 0030 0031 namespace Digikam 0032 { 0033 0034 class DIGIKAM_EXPORT WSToolDialog : public DPluginDialog 0035 { 0036 Q_OBJECT 0037 0038 public: 0039 0040 explicit WSToolDialog(QWidget* const parent, const QString& objName); 0041 ~WSToolDialog() override; 0042 0043 void setMainWidget(QWidget* const widget); 0044 0045 void setRejectButtonMode(QDialogButtonBox::StandardButton button); 0046 0047 QPushButton* startButton() const; 0048 0049 void addButton(QAbstractButton* button, QDialogButtonBox::ButtonRole role); 0050 0051 private Q_SLOTS: 0052 0053 void slotCloseClicked(); 0054 0055 Q_SIGNALS: 0056 0057 void cancelClicked(); 0058 0059 private: 0060 0061 class Private; 0062 Private* const d; 0063 }; 0064 0065 } // namespace Digikam 0066 0067 #endif // DIGIKAM_WS_TOOL_DIALOG_H