File indexing completed on 2025-01-05 03:52:04

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2006-04-04
0007  * Description : a tool to generate HTML image galleries
0008  *
0009  * SPDX-FileCopyrightText: 2006-2010 by Aurelien Gateau <aurelien dot gateau at free dot fr>
0010  * SPDX-FileCopyrightText: 2012-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #ifndef DIGIKAM_GALLERY_NAME_HELPER_H
0017 #define DIGIKAM_GALLERY_NAME_HELPER_H
0018 
0019 // Qt includes
0020 
0021 #include <QStringList>
0022 
0023 namespace DigikamGenericHtmlGalleryPlugin
0024 {
0025 
0026 /**
0027  * This helper class is used to make sure we use unique filenames
0028  */
0029 class GalleryNameHelper
0030 {
0031 public:
0032 
0033     explicit GalleryNameHelper();
0034     ~GalleryNameHelper();
0035 
0036     QString makeNameUnique(const QString& name);
0037 
0038 private:
0039 
0040     QStringList m_list;
0041 };
0042 
0043 } // namespace DigikamGenericHtmlGalleryPlugin
0044 
0045 #endif // DIGIKAM_GALLERY_NAME_HELPER_H