File indexing completed on 2025-03-09 03:57:05

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2009-09-14
0007  * Description : modifier to change the case of a renaming option
0008  *
0009  * SPDX-FileCopyrightText: 2009-2012 by Andi Clemens <andi dot clemens at gmail dot com>
0010  *
0011  * SPDX-License-Identifier: GPL-2.0-or-later
0012  *
0013  * ============================================================ */
0014 
0015 #ifndef DIGIKAM_CASE_MODIFIER_H
0016 #define DIGIKAM_CASE_MODIFIER_H
0017 
0018 // Local includes
0019 
0020 #include "modifier.h"
0021 
0022 namespace Digikam
0023 {
0024 
0025 class CaseModifier : public Modifier
0026 {
0027     Q_OBJECT
0028 
0029 public:
0030 
0031     explicit CaseModifier();
0032     QString parseOperation(ParseSettings& settings, const QRegularExpressionMatch& match) override;
0033 
0034 private:
0035 
0036     // Disable
0037     explicit CaseModifier(QObject*)              = delete;
0038     CaseModifier(const CaseModifier&)            = delete;
0039     CaseModifier& operator=(const CaseModifier&) = delete;
0040 
0041 private:
0042 
0043     QString firstupper(const QString& str2Modify);
0044 };
0045 
0046 } // namespace Digikam
0047 
0048 #endif // DIGIKAM_CASE_MODIFIER_H