00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019 #ifndef OVERWRITTENSYSTEMTRAYTOOLTIP_H
00020 #define OVERWRITTENSYSTEMTRAYTOOLTIP_H
00021
00022 #include <QWidget>
00023 #include <QTimer>
00024 #include "../../ui_overWrittenSystemTrayTooltip.h"
00025
00026 class QSystemTrayIcon;
00027
00028 class OverWrittenSystemtrayTooltip : public QWidget
00029 {
00030 Q_OBJECT
00031 public:
00032 OverWrittenSystemtrayTooltip(QSystemTrayIcon* icon = 0, QWidget* parent = 0, Qt::WFlags f = 0);
00033 virtual ~OverWrittenSystemtrayTooltip();
00034 void HandleUiLanguageChange();
00035 Ui_overwrittenSystemtrayTooltip ui;
00036 protected:
00037 void enterEvent ( QEvent * event );
00038 void leaveEvent ( QEvent * event );
00039 private:
00040
00041 QString iNowPlayingTitle;
00042 QString iNowPlayingArtist;
00043 QString iNowPlayingAlbum;
00044 QString iNowPlayingCreationDate;
00045 QTimer iToolTipShowTimer;
00046 QSystemTrayIcon *iSystemTrayIcon;
00047 void reconstructNowPlaying();
00048 void recalculateGeometry();
00049 public slots:
00050 void toolTipTimerTimeout();
00051 void toolTipHideRequested();
00052
00053 void gotNowPlayingTitle(const QString &title);
00054 void gotNowPlayingArtist(const QString &artist);
00055 void gotNowPlayingCreationDate(const QString &creationDate);
00056 void gotNowPlayingAlbum(const QString &album);
00057 void gotNowPlayingFilename(const QString &filename);
00058 void externalShowReq();
00059 };
00060 #endif