digiKam
gallerytheme.h
Go to the documentation of this file.
1 /* ============================================================
2  *
3  * This file is a part of digiKam project
4  * https://www.digikam.org
5  *
6  * Date : 2006-04-04
7  * Description : a tool to generate HTML image galleries
8  *
9  * Copyright (C) 2006-2010 by Aurelien Gateau <aurelien dot gateau at free dot fr>
10  * Copyright (C) 2012-2022 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) any later version.
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU General Public License for more details.
21  *
22  * ============================================================ */
23 
24 #ifndef DIGIKAM_GALLERY_THEME_H
25 #define DIGIKAM_GALLERY_THEME_H
26 
27 // Qt includes
28 
29 #include <QString>
30 #include <QList>
31 #include <QSharedPointer>
32 
34 {
35 
36 class AbstractThemeParameter;
37 
43 {
44 public:
45 
46  typedef QSharedPointer<GalleryTheme> Ptr;
47  typedef QList<Ptr> List;
49 
50 public:
51 
52  ~GalleryTheme();
53 
54  // Internal theme name == name of theme folder
55  QString internalName() const;
56  QString name() const;
57  QString comment() const;
58 
59  QString authorName() const;
60  QString authorUrl() const;
61 
62  QString previewName() const;
63  QString previewUrl() const;
64  bool allowNonsquareThumbnails() const;
65 
69  QString directory() const;
70 
72 
76  static const List& getList();
77  static Ptr findByInternalName(const QString& internalName);
78 
79 private:
80 
81  // Disable
82  GalleryTheme();
83  GalleryTheme(const GalleryTheme&) = delete;
84  GalleryTheme& operator=(const GalleryTheme&) = delete;
85 
86 private:
87 
88  class Private;
89  Private* const d;
90 };
91 
92 } // namespace DigikamGenericHtmlGalleryPlugin
93 
94 #endif // DIGIKAM_GALLERY_THEME_H
static Ptr findByInternalName(const QString &internalName)
Definition: gallerytheme.cpp:237
~GalleryTheme()
Definition: gallerytheme.cpp:187
ParameterList parameterList() const
Definition: gallerytheme.cpp:301
bool allowNonsquareThumbnails() const
Definition: gallerytheme.cpp:296
static const List & getList()
Definition: gallerytheme.cpp:193
QString name() const
Definition: gallerytheme.cpp:261
QString previewName() const
Definition: gallerytheme.cpp:286
QList< AbstractThemeParameter * > ParameterList
Definition: gallerytheme.h:48
QString internalName() const
Definition: gallerytheme.cpp:256
QString previewUrl() const
Definition: gallerytheme.cpp:291
QString authorName() const
Definition: gallerytheme.cpp:276
QString directory() const
Definition: gallerytheme.cpp:271
QSharedPointer< GalleryTheme > Ptr
Definition: gallerytheme.h:46
QList< Ptr > List
Definition: gallerytheme.h:47
QString comment() const
Definition: gallerytheme.cpp:266
QString authorUrl() const
Definition: gallerytheme.cpp:281
Definition: piwigotalker.h:48
Definition: galleryconfig.cpp:30