1 /* ============================================================ 2 * 3 * This file is a part of digiKam project 4 * https://www.digikam.org 5 * 6 * Date : 2013-09-16 7 * Description : Dialog to prompt users about versioning 8 * 9 * Copyright (C) 2010-2012 by Marcel Wiesweg <marcel dot wiesweg at gmx dot de> 10 * Copyright (C) 2013-2021 by Gilles Caulier <caulier dot gilles at gmail dot com> 11 * 12 * This program is free software; you can redistribute it 13 * and/or modify it under the terms of the GNU General 14 * Public License as published by the Free Software Foundation; 15 * either version 2, or (at your option) 16 * any later version. 17 * 18 * This program is distributed in the hope that it will be useful, 19 * but WITHOUT ANY WARRANTY; without even the implied warranty of 20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * GNU General Public License for more details. 22 * 23 * ============================================================ */ 24 25 #ifndef DIGIKAM_VERSIONING_PROMPT_USER_SAVE_DLG_H 26 #define DIGIKAM_VERSIONING_PROMPT_USER_SAVE_DLG_H 27 28 // Qt includes 29 30 #include <QDialog> 31 32 class QAbstractButton; 33 34 namespace Digikam 35 { 36 37 class VersioningPromptUserSaveDialog : public QDialog 38 { 39 Q_OBJECT 40 41 public: 42 43 explicit VersioningPromptUserSaveDialog(QWidget* const parent); 44 ~VersioningPromptUserSaveDialog() override; 45 46 bool shallSave() const; 47 bool newVersion() const; 48 bool shallDiscard() const; 49 50 private Q_SLOTS: 51 52 void slotButtonClicked(QAbstractButton*); 53 54 private: 55 56 class Private; 57 Private* const d; 58 }; 59 60 } // namespace Digikam 61 62 #endif // DIGIKAM_VERSIONING_PROMPT_USER_SAVE_DLG_H 63