KDeclarative

mimedatabase.h
1 /*
2  SPDX-FileCopyrightText: 2014 Aleix Pol Gonzalez <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef MIMEDATABASE_H
8 #define MIMEDATABASE_H
9 
10 #include <QObject>
11 #include <QMimeDatabase>
12 
13 class MimeDatabase : public QObject
14 {
15  Q_OBJECT
16  public:
17  MimeDatabase(QObject* parent = nullptr);
18 
19  Q_SCRIPTABLE QJsonObject mimeTypeForUrl(const QUrl & url) const;
20  Q_SCRIPTABLE QJsonObject mimeTypeForName(const QString & name) const;
21 
22  private:
23  QMimeDatabase m_db;
24 };
25 
26 #endif // MIMEDATABASE_H
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 22:44:28 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.