nextcloud-desktop/src/gui/tray/NotificationCache.h

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
409 B
C
Raw Normal View History

#pragma once
#include <QSet>
namespace OCC {
class NotificationCache
{
public:
struct Notification
{
QString title;
QString message;
};
bool contains(const Notification &notification) const;
void insert(const Notification &notification);
void clear();
private:
uint calculateKey(const Notification &notification) const;
QSet<uint> _notifications;
};
}