mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-17 12:02:48 +01:00
31 lines
551 B
C++
31 lines
551 B
C++
#ifndef OSD_H
|
|
#define OSD_H
|
|
|
|
#include <QObject>
|
|
#include <QSystemTrayIcon>
|
|
|
|
#include "engine_fwd.h"
|
|
#include "song.h"
|
|
|
|
class OSD : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
OSD(QSystemTrayIcon* tray_icon, QObject* parent = 0);
|
|
|
|
void Init();
|
|
void ShowMessage(const QString& summary,
|
|
const QString& message = QString::null,
|
|
const QString& icon = QString::null);
|
|
|
|
public slots:
|
|
void SongChanged(const Song& song);
|
|
void Paused();
|
|
void Stopped();
|
|
|
|
private:
|
|
QSystemTrayIcon* tray_icon_;
|
|
};
|
|
|
|
#endif // OSD_H
|