1 /* 2 SPDX-FileCopyrightText: 2016 Martin Graesslin <mgraesslin@kde.org> 3 4 SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL 5 6 */ 7 8 #ifndef KWIN_OSD_H 9 #define KWIN_OSD_H 10 11 #include <QFlags> 12 #include <QString> 13 14 namespace KWin 15 { 16 namespace OSD 17 { 18 19 void show(const QString &message, const QString &iconName = QString()); 20 void show(const QString &message, int timeout); 21 void show(const QString &message, const QString &iconName, int timeout); 22 enum class HideFlag { 23 SkipCloseAnimation = 1, 24 }; 25 Q_DECLARE_FLAGS(HideFlags, HideFlag) 26 void hide(HideFlags flags = HideFlags()); 27 28 } 29 } 30 31 #endif 32