1 /******************************************************************************* 2 ** 3 ** Photivo 4 ** 5 ** Copyright (C) 2011 Bernd Schoeler <brjohn@brother-john.net> 6 ** 7 ** This file is part of Photivo. 8 ** 9 ** Photivo is free software: you can redistribute it and/or modify 10 ** it under the terms of the GNU General Public License version 3 11 ** as published by the Free Software Foundation. 12 ** 13 ** Photivo is distributed in the hope that it will be useful, 14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of 15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 ** GNU General Public License for more details. 17 ** 18 ** You should have received a copy of the GNU General Public License 19 ** along with Photivo. If not, see <http://www.gnu.org/licenses/>. 20 ** 21 *******************************************************************************/ 22 /*! 23 \class ptConfirmRequest 24 25 \brief A class dealing with confirmation requests. 26 27 This class handles Photivo’s user confirmation dialogs and takes care of associated 28 actions like saving the current image before loading a new one. 29 */ 30 #ifndef PTCONFIRMREQUEST_H 31 #define PTCONFIRMREQUEST_H 32 33 #include "ptConstants.h" 34 35 #include <QString> 36 37 class ptConfirmRequest { 38 public: 39 static bool loadConfig(const ptLoadCfgMode mode, QString newFilename = ""); 40 static bool saveImage(QString newFilename = ""); 41 }; 42 #endif // PTCONFIRMREQUEST_H 43