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-08-08
0007  * Description : an option to provide file 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_FILE_PROPERTIES_OPTION_H
0016 #define DIGIKAM_FILE_PROPERTIES_OPTION_H
0017 
0018 // Qt includes
0019 
0020 #include <QObject>
0021 #include <QString>
0022 
0023 // Local includes
0024 
0025 #include "option.h"
0026 
0027 namespace Digikam
0028 {
0029 
0030 class FilePropertiesOption : public Option
0031 {
0032     Q_OBJECT
0033 
0034 public:
0035 
0036     explicit FilePropertiesOption();
0037     ~FilePropertiesOption()                                      override = default;
0038 
0039 protected:
0040 
0041     QString parseOperation(ParseSettings& settings,
0042                            const QRegularExpressionMatch& match) override;
0043 
0044 private:
0045 
0046     // Disable
0047     FilePropertiesOption(QObject*)                               = delete;
0048     FilePropertiesOption(const FilePropertiesOption&)            = delete;
0049     FilePropertiesOption& operator=(const FilePropertiesOption&) = delete;
0050 };
0051 
0052 } // namespace Digikam
0053 
0054 #endif // DIGIKAM_FILE_PROPERTIES_OPTION_H