File indexing completed on 2024-05-05 17:33:57

0001 /*
0002  *   SPDX-FileCopyrightText: 2008-2012 Matthias Fuchs <mat69@gmx.net>
0003  *
0004  *   SPDX-License-Identifier: GPL-2.0-or-later
0005  */
0006 
0007 #ifndef COMIC_SAVER_H
0008 #define COMIC_SAVER_H
0009 
0010 class ComicData;
0011 class SavingDir;
0012 
0013 /**
0014  * ComicSaver takes care of saving a comic strip to a user chosen
0015  * destination.
0016  * etc.
0017  */
0018 class ComicSaver
0019 {
0020 public:
0021     explicit ComicSaver(SavingDir *savingDir);
0022 
0023     /**
0024      * Asks the user for a destination to save the specified
0025      * comic to. If possible writes it to that destination.
0026      * @param comic the comic to save
0027      * @return true if saving worked, false if there was a problem
0028      */
0029     bool save(const ComicData &comic);
0030 
0031 private:
0032     SavingDir *mSavingDir;
0033 };
0034 
0035 #endif