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        : 2010-05-22
0007  * Description : a parser for the AdvancedRename utility used for importing images,
0008  *               excluding the database options
0009  *
0010  * SPDX-FileCopyrightText: 2009-2012 by Andi Clemens <andi dot clemens at gmail dot com>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #include "importrenameparser.h"
0017 
0018 // Local includes
0019 
0020 #include "databaseoption.h"
0021 #include "cameranameoption.h"
0022 #include "metadataoption.h"
0023 
0024 namespace Digikam
0025 {
0026 
0027 ImportRenameParser::ImportRenameParser()
0028     : Parser()
0029 {
0030     // unregister options that are not suitable while import
0031 
0032     RulesList oplist = options();
0033 
0034     Q_FOREACH (Rule* const option, oplist)
0035     {
0036         if (dynamic_cast<DatabaseOption*>(option))
0037         {
0038             unregisterOption(option);
0039         }
0040     }
0041 }
0042 
0043 } // namespace Digikam