lanpaper/TrayIco.h

32 lines
537 B
C++

#ifndef TRAYICO_H
#define TRAYICO_H
#include "LanPaper.h"
#include <QObject>
#include <QSystemTrayIcon>
#include <QIcon>
class TrayIco : public QObject
{
Q_OBJECT
public:
explicit TrayIco(QObject *parent = 0);
void setFlash(bool);
private:
void timerEvent(QTimerEvent *);
private:
QSystemTrayIcon trayIco;
QIcon normalIcon;
QIcon flashIcon;
int timer;
bool flashFlag;
signals:
public slots:
private slots:
void activated(QSystemTrayIcon::ActivationReason);
};
#endif // TRAYICO_H