1 | /* |
2 | This file is part of the KDE libraries |
3 | SPDX-FileCopyrightText: 1999 David Faure <faure@kde.org> |
4 | |
5 | SPDX-License-Identifier: LGPL-2.0-only |
6 | */ |
7 | |
8 | #ifndef KSYCOCARESOURCELIST_H |
9 | #define KSYCOCARESOURCELIST_H |
10 | |
11 | #include <QString> |
12 | #include <vector> |
13 | |
14 | struct KSycocaResource { |
15 | // resource is just used in the databaseChanged signal |
16 | // subdir is always under QStandardPaths::GenericDataLocation. E.g. mime, etc. |
17 | KSycocaResource(const QByteArray &resource, const QString &subdir, const QString &filter) |
18 | : resource(resource) |
19 | , subdir(subdir) |
20 | , extension(filter.mid(position: 1)) |
21 | { |
22 | } |
23 | |
24 | const QByteArray resource; |
25 | const QString subdir; |
26 | const QString extension; |
27 | }; |
28 | |
29 | using KSycocaResourceList = std::vector<KSycocaResource>; |
30 | |
31 | #endif |
32 | |