File indexing completed on 2025-03-09 03:57:07
0001 /* ============================================================ 0002 * 0003 * This file is a part of digiKam project 0004 * https://www.digikam.org 0005 * 0006 * Date : 2009-09-02 0007 * Description : an option to provide directory information to the parser 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_DIRECTORY_NAME_OPTION_H 0016 #define DIGIKAM_DIRECTORY_NAME_OPTION_H 0017 0018 // Qt includes 0019 0020 #include <QObject> 0021 0022 // Local includes 0023 0024 #include "option.h" 0025 0026 class QString; 0027 0028 namespace Digikam 0029 { 0030 0031 class DirectoryNameOption : public Option 0032 { 0033 Q_OBJECT 0034 0035 public: 0036 0037 explicit DirectoryNameOption(); 0038 ~DirectoryNameOption() override = default; 0039 0040 protected: 0041 0042 QString parseOperation(ParseSettings& settings, 0043 const QRegularExpressionMatch& match) override; 0044 0045 private: 0046 0047 // Disable 0048 DirectoryNameOption(QObject*) = delete; 0049 DirectoryNameOption(const DirectoryNameOption&) = delete; 0050 DirectoryNameOption& operator=(const DirectoryNameOption&) = delete; 0051 }; 0052 0053 } // namespace Digikam 0054 0055 #endif // DIGIKAM_DIRECTORY_NAME_OPTION_H