File indexing completed on 2024-04-21 03:56:54

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 1999 David Faure <faure@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-only
0006 */
0007 
0008 #ifndef KSYCOCARESOURCELIST_H
0009 #define KSYCOCARESOURCELIST_H
0010 
0011 #include <QString>
0012 #include <vector>
0013 
0014 struct KSycocaResource {
0015     // resource is just used in the databaseChanged signal
0016     // subdir is always under QStandardPaths::GenericDataLocation. E.g. mime, etc.
0017     KSycocaResource(const QByteArray &resource, const QString &subdir, const QString &filter)
0018         : resource(resource)
0019         , subdir(subdir)
0020         , extension(filter.mid(1))
0021     {
0022     }
0023 
0024     const QByteArray resource;
0025     const QString subdir;
0026     const QString extension;
0027 };
0028 
0029 using KSycocaResourceList = std::vector<KSycocaResource>;
0030 
0031 #endif