File indexing completed on 2025-01-05 03:59:26
0001 // SPDX-License-Identifier: LGPL-2.1-or-later 0002 // 0003 // SPDX-FileCopyrightText: 2011 Thibaut Gridel <tgridel@free.fr> 0004 0005 #include "CachePlugin.h" 0006 0007 // Qt includes 0008 0009 #include <QIcon> 0010 0011 // KDE includes 0012 0013 #include <klocalizedstring.h> 0014 0015 // Local includes 0016 0017 #include "CacheRunner.h" 0018 0019 namespace Marble 0020 { 0021 0022 CachePlugin::CachePlugin(QObject* const parent) 0023 : ParseRunnerPlugin(parent) 0024 { 0025 } 0026 0027 QString CachePlugin::name() const 0028 { 0029 return i18n( "Cache File Parser" ); 0030 } 0031 0032 QString CachePlugin::nameId() const 0033 { 0034 return QStringLiteral("Cache"); 0035 } 0036 0037 QString CachePlugin::version() const 0038 { 0039 return QStringLiteral("1.0"); 0040 } 0041 0042 QString CachePlugin::description() const 0043 { 0044 return i18n( "A plugin to load Geolocation Data from the binary Cache files." ); 0045 } 0046 0047 QString CachePlugin::copyrightYears() const 0048 { 0049 return QStringLiteral("2011"); 0050 } 0051 0052 QVector<PluginAuthor> CachePlugin::pluginAuthors() const 0053 { 0054 return QVector<PluginAuthor>() 0055 << PluginAuthor(QStringLiteral("Thibaut Gridel"), QStringLiteral("tgridel@free.fr")); 0056 } 0057 0058 QString CachePlugin::fileFormatDescription() const 0059 { 0060 return i18n( "Marble Cache Files" ); 0061 } 0062 0063 QStringList CachePlugin::fileExtensions() const 0064 { 0065 return QStringList(QStringLiteral("cache")); 0066 } 0067 0068 ParsingRunner* CachePlugin::newRunner() const 0069 { 0070 return new CacheRunner; 0071 } 0072 0073 } // namespace Marble 0074 0075 #include "moc_CachePlugin.cpp"