1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2014 David Faure <faure@kde.org>
4
5 SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
6*/
7
8#ifndef KMIMETYPE_EDITOR_H
9#define KMIMETYPE_EDITOR_H
10
11#include <QWidget>
12#include <kwidgetsaddons_export.h>
13
14/*!
15 * \namespace KMimeTypeEditor
16 * \inmodule KWidgetsAddons
17 * \brief This namespace provides a method for starting the file types editor.
18 * \since 5.4
19 */
20namespace KMimeTypeEditor
21{
22/*!
23 * Starts the file types editor for a given MIME type.
24 *
25 * Displays an error message if the mimetype editing tool (keditfiletype)
26 * couldn't be launched.
27 *
28 * \a mimeType the MIME type to edit, e.g. "text/plain"
29 *
30 * \a widget the parent widget
31 * \since 5.4
32 */
33KWIDGETSADDONS_EXPORT void editMimeType(const QString &mimeType, QWidget *widget);
34}
35
36#endif
37

source code of kwidgetsaddons/src/kmimetypeeditor.h