mirror of
https://github.com/nextcloud/desktop.git
synced 2024-12-20 12:52:06 +03:00
29 lines
409 B
C
29 lines
409 B
C
|
#pragma once
|
||
|
|
||
|
#include <QSet>
|
||
|
|
||
|
namespace OCC {
|
||
|
|
||
|
class NotificationCache
|
||
|
{
|
||
|
public:
|
||
|
struct Notification
|
||
|
{
|
||
|
QString title;
|
||
|
QString message;
|
||
|
};
|
||
|
|
||
|
bool contains(const Notification ¬ification) const;
|
||
|
|
||
|
void insert(const Notification ¬ification);
|
||
|
|
||
|
void clear();
|
||
|
|
||
|
private:
|
||
|
uint calculateKey(const Notification ¬ification) const;
|
||
|
|
||
|
|
||
|
QSet<uint> _notifications;
|
||
|
};
|
||
|
}
|