Kraxy/EBN: missing Q_OBJECT
[kphotoalbum.git] / HTMLGenerator / Setup.h
blobe7d37dac7d078f6ddf795936ea8fa3c84cd3fac6
1 /* Copyright (C) 2003-2006 Jesper K. Pedersen <blackie@kde.org>
3 This program is free software; you can redistribute it and/or
4 modify it under the terms of the GNU General Public
5 License as published by the Free Software Foundation; either
6 version 2 of the License, or (at your option) any later version.
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with this program; see the file COPYING. If not, write to
15 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16 Boston, MA 02110-1301, USA.
18 #ifndef HTMLGENERATOR_SETUP_H
19 #define HTMLGENERATOR_SETUP_H
21 #include <qstring.h>
22 #include <qmap.h>
23 #include <QList>
24 #include "DB/Result.h"
26 namespace HTMLGenerator
28 class ImageSizeCheckBox;
30 class Setup
32 public:
33 Setup();
35 void setTitle( const QString& title );
36 QString title() const;
38 void setBaseDir( const QString& baseDir );
39 QString baseDir() const;
41 void setBaseURL( const QString& baseURL );
42 QString baseURL() const;
44 void setDestURL( const QString& destURL );
45 QString destURL() const;
47 void setOutputDir( const QString& outputDir );
48 QString outputDir() const;
50 void setThumbSize( int thumbSize );
51 int thumbSize() const;
53 void setCopyright( const QString& copyright );
54 QString copyright() const;
56 void setDate( bool date );
57 bool date() const;
59 void setDescription( const QString& description );
60 QString description() const;
62 void setNumOfCols( int numOfCols );
63 int numOfCols() const;
65 void setGenerateKimFile( bool generateKimFile );
66 bool generateKimFile() const;
68 void setThemePath( const QString& theme );
69 QString themePath() const;
71 void setIncludeCategory( const QString& category, bool include );
72 bool includeCategory( const QString& category ) const;
74 void setResolutions( const QList<ImageSizeCheckBox*>& sizes );
75 const QList<HTMLGenerator::ImageSizeCheckBox*>& activeResolutions() const;
77 void setImageList(const DB::Result& files);
78 DB::Result imageList() const;
80 void setInlineMovies( bool inlineMovie );
81 bool inlineMovies() const;
84 private:
85 QString _title;
86 QString _baseDir;
87 QString _baseURL;
88 QString _destURL;
89 QString _outputDir;
90 int _thumbSize;
91 QString _copyright;
92 bool _date;
93 QString _description;
94 int _numOfCols;
95 bool _generateKimFile;
96 QString _theme;
97 QMap<QString,bool> _includeCategory;
98 QList<ImageSizeCheckBox*> _resolutions;
99 DB::Result _images;
100 bool _inlineMovies;
105 #endif /* HTMLGENERATOR_SETUP_H */