1 Star 0 Fork 124

家过 / qt-notify

forked from 终端组 / qt-notify 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
notifymanager.h 918 Bytes
一键复制 编辑 原始数据 按行查看 历史
潘昕 提交于 2016-10-14 11:34 . INIT
#ifndef NOTIFYMANAGER_H
#define NOTIFYMANAGER_H
#include <QObject>
#include <QQueue>
#include "notify.h"
class NotifyManager : public QObject
{
Q_OBJECT
public:
explicit NotifyManager( QObject *parent = 0);
void notify(const QString &title, const QString &body, const QString &icon, const QString url);
void setMaxCount(int count);
void setDisplayTime(int ms);
private:
class NotifyData {
public:
NotifyData(const QString &icon, const QString &title, const QString &body, const QString url):
icon(icon),
title(title),
body(body),
url(url)
{
}
QString icon;
QString title;
QString body;
QString url;
};
void rearrange();
void showNext();
QQueue<NotifyData> dataQueue;
QList<Notify*> notifyList;
int maxCount;
int displayTime;
};
#endif // NOTIFYMANAGER_H
C++
1
https://gitee.com/wwww1196145607/qt-notify.git
git@gitee.com:wwww1196145607/qt-notify.git
wwww1196145607
qt-notify
qt-notify
master

搜索帮助