2016-12-18 10:53:50 +00:00
|
|
|
/*
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-FileCopyrightText: 2016 Martin Graesslin <mgraesslin@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
|
|
|
|
|
|
|
|
*/
|
2016-12-18 10:53:50 +00:00
|
|
|
|
|
|
|
#ifndef KWIN_OSD_H
|
|
|
|
#define KWIN_OSD_H
|
|
|
|
|
2017-01-11 19:14:36 +00:00
|
|
|
#include <QFlags>
|
2016-12-18 10:53:50 +00:00
|
|
|
#include <QString>
|
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
namespace OSD
|
|
|
|
{
|
|
|
|
|
|
|
|
void show(const QString &message, const QString &iconName = QString());
|
|
|
|
void show(const QString &message, int timeout);
|
|
|
|
void show(const QString &message, const QString &iconName, int timeout);
|
2017-01-11 19:14:36 +00:00
|
|
|
enum class HideFlag {
|
2021-03-14 17:06:22 +00:00
|
|
|
SkipCloseAnimation = 1,
|
2017-01-11 19:14:36 +00:00
|
|
|
};
|
|
|
|
Q_DECLARE_FLAGS(HideFlags, HideFlag)
|
|
|
|
void hide(HideFlags flags = HideFlags());
|
2016-12-18 10:53:50 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|