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 * This namespace provides a method for starting the file types editor.
16 * @since 5.4
17 */
18namespace KMimeTypeEditor
19{
20/**
21 * Starts the file types editor for a given MIME type.
22 *
23 * Displays an error message if the mimetype editing tool (keditfiletype)
24 * couldn't be launched.
25 *
26 * @param mimeType the MIME type to edit, e.g. "text/plain"
27 * @param widget the parent widget
28 * @since 5.4
29 */
30KWIDGETSADDONS_EXPORT void editMimeType(const QString &mimeType, QWidget *widget);
31}
32
33#endif
34

source code of kwidgetsaddons/src/kmimetypeeditor.h