File indexing completed on 2025-01-19 03:59:13
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2013-09-16 0007 * Description : Dialog to prompt users about versioning 0008 * 0009 * SPDX-FileCopyrightText: 2010-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de> 0010 * SPDX-FileCopyrightText: 2013-2024 by Gilles Caulier <caulier dot gilles at gmail dot com> 0011 * 0012 * SPDX-License-Identifier: GPL-2.0-or-later 0013 * 0014 * ============================================================ */ 0015 0016 #ifndef DIGIKAM_VERSIONING_PROMPT_USER_SAVE_DLG_H 0017 #define DIGIKAM_VERSIONING_PROMPT_USER_SAVE_DLG_H 0018 0019 // Qt includes 0020 0021 #include <QDialog> 0022 0023 class QAbstractButton; 0024 0025 namespace Digikam 0026 { 0027 0028 class VersioningPromptUserSaveDialog : public QDialog 0029 { 0030 Q_OBJECT 0031 0032 public: 0033 0034 explicit VersioningPromptUserSaveDialog(QWidget* const parent); 0035 ~VersioningPromptUserSaveDialog() override; 0036 0037 bool shallSave() const; 0038 bool newVersion() const; 0039 bool shallDiscard() const; 0040 0041 private Q_SLOTS: 0042 0043 void slotButtonClicked(QAbstractButton*); 0044 0045 private: 0046 0047 class Private; 0048 Private* const d; 0049 }; 0050 0051 } // namespace Digikam 0052 0053 #endif // DIGIKAM_VERSIONING_PROMPT_USER_SAVE_DLG_H