11 #ifndef __LOM2M_NOTIFY_H
12 #define __LOM2M_NOTIFY_H
62 return this->contentType;
90 this->failed = failed;
203 std::list<NotificationToSend*> notificationBuffer;
211 getInstance()->notificationBuffer.push_back(notification);
229 printf(
"DEBUG: notification buffer size: %d\n",
getInstance()->notificationBuffer.size());
233 printf(
"DEBUG: nothing to pop\n");
249 return bufferInstance;
NotificationEventType
Definition: Enum.h:18
Operation
Definition: Enum.h:43
NotificationContentType
Definition: Enum.h:31
NotificationToSend * notif
Definition: Notify.cpp:97
const char * contentType(const String &filename)
Definition: bsp-esp8266.cpp:13
Notifier()
Definition: Notify.h:32
static void notify(std::list< Subscription * > subs, Entity *entity, NotificationEventType net, Operation operation)
Definition: Notify.cpp:51
~Notifier()
Definition: Notify.h:33
static void addNotification(NotificationToSend *notification)
Definition: Notify.h:209
NotifyBuffer()
Definition: Notify.cpp:31
static NotifyBuffer * getInstance() noexcept
Definition: Notify.h:243
~NotifyBuffer()
Definition: Notify.cpp:36
static void removeNotification()
Definition: Notify.h:238
static bool isEmpty()
Definition: Notify.h:217
static NotificationToSend * popNotification()
Definition: Notify.h:222
bool verificationRequest
Definition: Notify.h:103
void setNet(NotificationEventType &net)
Definition: Notify.h:120
void setOriginator(const String &Originator)
Definition: Notify.h:192
Notification()
Definition: Notify.cpp:24
bool getSubDeletion()
Definition: Notify.h:134
const String & getCreator()
Definition: Notify.h:152
void setSubReference(const String &subReference)
Definition: Notify.h:147
void setResource(String &resource)
Definition: Notify.h:174
String resource
Definition: Notify.h:109
bool subDeletion
Definition: Notify.h:104
void setOperation(Operation &operation)
Definition: Notify.h:183
Operation operation
Definition: Notify.h:111
void setNotitificationForwardingUri(const String ¬itificationForwardingUri)
Definition: Notify.h:165
Operation & getOperation()
Definition: Notify.h:179
bool getVerificationRequest()
Definition: Notify.h:125
String creator
Definition: Notify.h:106
String Originator
Definition: Notify.h:112
const String & getNotitificationForwardingUri()
Definition: Notify.h:161
String & getResource()
Definition: Notify.h:170
String getSubReference()
Definition: Notify.h:143
void setSubDeletion(bool subDeletion)
Definition: Notify.h:138
String notitificationForwardingUri
Definition: Notify.h:107
void setCreator(const String &creator)
Definition: Notify.h:156
NotificationEventType net
Definition: Notify.h:102
String subReference
Definition: Notify.h:105
const String & getOriginator()
Definition: Notify.h:188
NotificationEventType & getNet()
Definition: Notify.h:116
void setVerificationRequest(bool verificationRequest)
Definition: Notify.h:129
const String & getUrl()
Definition: Notify.h:68
void setFailed(int failed)
Definition: Notify.h:88
NotificationContentType getNct()
Definition: Notify.h:48
Notification * getNotif()
Definition: Notify.h:76
void setUrl(const String &url)
Definition: Notify.h:72
void setNct(NotificationContentType nct)
Definition: Notify.h:52
void increaseFailed()
Definition: Notify.h:56
int getFailed()
Definition: Notify.h:84
void setNotif(Notification *notif)
Definition: Notify.h:80
NotificationToSend()
Definition: Notify.h:93
const String & getContentType()
Definition: Notify.h:60
void setContentType(const String &contentType)
Definition: Notify.h:64