File indexing completed on 2024-04-28 03:59:08

0001 /*
0002     This file is part of the KDE libraries
0003     SPDX-FileCopyrightText: 2014 David Faure <faure@kde.org>
0004 
0005     SPDX-License-Identifier: LGPL-2.0-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
0006 */
0007 
0008 #ifndef KMIMETYPE_EDITOR_H
0009 #define KMIMETYPE_EDITOR_H
0010 
0011 #include <QWidget>
0012 #include <kwidgetsaddons_export.h>
0013 
0014 /**
0015  * This namespace provides a method for starting the file types editor.
0016  * @since 5.4
0017  */
0018 namespace KMimeTypeEditor
0019 {
0020 /**
0021  * Starts the file types editor for a given MIME type.
0022  *
0023  * Displays an error message if the mimetype editing tool (keditfiletype)
0024  * couldn't be launched.
0025  *
0026  * @param mimeType the MIME type to edit, e.g. "text/plain"
0027  * @param widget the parent widget
0028  * @since 5.4
0029  */
0030 KWIDGETSADDONS_EXPORT void editMimeType(const QString &mimeType, QWidget *widget);
0031 }
0032 
0033 #endif