File indexing completed on 2024-04-21 04:21:20

0001 // SPDX-FileCopyrightText: 2003-2010 Jesper K. Pedersen <blackie@kde.org>
0002 // SPDX-FileCopyrightText: 2022 Johannes Zarl-Zierl <johannes@zarl-zierl.at>
0003 //
0004 // SPDX-License-Identifier: GPL-2.0-or-later
0005 
0006 #ifndef HTMLGENERATOR_SETUP_H
0007 #define HTMLGENERATOR_SETUP_H
0008 
0009 #include <kpabase/FileNameList.h>
0010 
0011 #include <QList>
0012 #include <QMap>
0013 #include <QString>
0014 
0015 namespace HTMLGenerator
0016 {
0017 class ImageSizeCheckBox;
0018 
0019 class Setup
0020 {
0021 public:
0022     Setup();
0023 
0024     void setTitle(const QString &title);
0025     QString title() const;
0026 
0027     void setBaseDir(const QString &baseDir);
0028     QString baseDir() const;
0029 
0030     void setBaseURL(const QString &baseURL);
0031     QString baseURL() const;
0032 
0033     void setDestURL(const QString &destURL);
0034     QString destURL() const;
0035 
0036     void setOutputDir(const QString &outputDir);
0037     QString outputDir() const;
0038 
0039     void setThumbSize(int thumbSize);
0040     int thumbSize() const;
0041 
0042     void setCopyright(const QString &copyright);
0043     QString copyright() const;
0044 
0045     void setDate(bool date);
0046     bool date() const;
0047 
0048     void setDescription(const QString &description);
0049     QString description() const;
0050 
0051     void setNumOfCols(int numOfCols);
0052     int numOfCols() const;
0053 
0054     void setGenerateKimFile(bool generateKimFile);
0055     bool generateKimFile() const;
0056 
0057     void setThemePath(const QString &theme);
0058     QString themePath() const;
0059 
0060     void setIncludeCategory(const QString &category, bool include);
0061     bool includeCategory(const QString &category) const;
0062 
0063     void setResolutions(const QList<ImageSizeCheckBox *> &sizes);
0064     const QList<HTMLGenerator::ImageSizeCheckBox *> &activeResolutions() const;
0065 
0066     void setImageList(const DB::FileNameList &files);
0067     DB::FileNameList imageList() const;
0068 
0069     void setInlineMovies(bool inlineMovie);
0070     bool inlineMovies() const;
0071 
0072     void setHtml5Video(bool html5Video);
0073     bool html5Video() const;
0074 
0075     void setHtml5VideoGenerate(bool html5VideoGenerate);
0076     bool html5VideoGenerate() const;
0077 
0078 private:
0079     QString m_title;
0080     QString m_baseDir;
0081     QString m_baseURL;
0082     QString m_destURL;
0083     QString m_outputDir;
0084     int m_thumbSize = -1;
0085     QString m_copyright;
0086     bool m_date = false;
0087     QString m_description;
0088     int m_numOfCols = 0;
0089     bool m_generateKimFile = false;
0090     QString m_theme;
0091     QMap<QString, bool> m_includeCategory;
0092     QList<ImageSizeCheckBox *> m_resolutions;
0093     DB::FileNameList m_images;
0094     bool m_inlineMovies = false;
0095     bool m_html5Video = false;
0096     bool m_html5VideoGenerate = false;
0097 };
0098 
0099 }
0100 
0101 #endif /* HTMLGENERATOR_SETUP_H */
0102 
0103 // vi:expandtab:tabstop=4 shiftwidth=4: