File indexing completed on 2024-04-28 04:58:40

0001 /*
0002     This file is part of the KDE project.
0003 
0004     SPDX-FileCopyrightText: 2023 Stefano Crocco <stefano.crocco@alice.it>
0005 
0006     SPDX-License-Identifier: LGPL-2.1-or-later
0007 */
0008 #ifndef KONQUTILS_H
0009 #define KONQUTILS_H
0010 
0011 #include <KPluginMetaData>
0012 
0013 namespace Konq
0014 {
0015     /**
0016      * @brief The service types implemented by a plugin
0017      * @note This function is only a workaround for the deprecation of `KPluginMetaData::serviceTypes()`. However it still uses the
0018      * `ServiceTypes` entry in the plugin metadata. If `KPluginMetaData::serviceTypes()` will be removed in KF6, it is possible that
0019      * this entry will be removed, too.
0020      * @todo Find a replacement for the `ServiceTypes` metadata entry
0021      * @param md the metadata for the plugin
0022      * @return A list of the service types implemented by @p md
0023      */
0024     QStringList serviceTypes(const KPluginMetaData &md);
0025 }
0026 #endif //KONQUTILS_H