File indexing completed on 2024-11-10 04:30:39

0001 /*
0002     SPDX-FileCopyrightText: 2023 Nicolas Fella <nicolas.fella@gmx.de>
0003 
0004     SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #include "directorycreator.h"
0008 
0009 K_PLUGIN_CLASS_WITH_JSON(DirectoryCreator, "directorythumbnail.json")
0010 
0011 DirectoryCreator::DirectoryCreator(QObject *parent, const QVariantList &args)
0012     : KIO::ThumbnailCreator(parent, args)
0013 {
0014 }
0015 
0016 KIO::ThumbnailResult DirectoryCreator::create(const KIO::ThumbnailRequest & /*request*/)
0017 {
0018     // The actual implementation for directory thumbnails is in thumbnail.cpp
0019     // This class is only a dummy to produce a KPluginMetaData so that the directory thumbnailer is listed by PreviewJob::availablePlugins()
0020 
0021     return KIO::ThumbnailResult::fail();
0022 }
0023 
0024 #include "directorycreator.moc"