File indexing completed on 2025-01-19 03:58:07

0001 /* ============================================================
0002  *
0003  * This file is a part of digiKam project
0004  * https://www.digikam.org
0005  *
0006  * Date        : 2010-05-05
0007  * Description : Factory to create instances of Lookup backends
0008  *
0009  * SPDX-FileCopyrightText: 2010-2024 by Gilles Caulier <caulier dot gilles at gmail dot com>
0010  * SPDX-FileCopyrightText: 2010-2011 by Michael G. Hansen <mike at mghansen dot de>
0011  *
0012  * SPDX-License-Identifier: GPL-2.0-or-later
0013  *
0014  * ============================================================ */
0015 
0016 #include "lookupfactory.h"
0017 
0018 // Local includes
0019 
0020 #include "lookupaltitudegeonames.h"
0021 
0022 namespace Digikam
0023 {
0024 
0025 LookupAltitude* LookupFactory::getAltitudeLookup(const QString& backendName,
0026                                                  QObject* const parent)
0027 {
0028     if (backendName == QLatin1String("geonames"))
0029     {
0030         return new LookupAltitudeGeonames(parent);
0031     }
0032 
0033     return nullptr;
0034 }
0035 
0036 } // namespace Digikam