22 #ifndef NEWCONTENTINDICATOREVENTFACTORY_H
23 #define NEWCONTENTINDICATOREVENTFACTORY_H
27 #include <NewContentIndicatorEvent.h>
43 NewContentIndicatorEvent* e =
new NewContentIndicatorEvent;
44 e->eventType = NewContentIndicatorEvent::Add;
49 clock_gettime(CLOCK_MONOTONIC, &time);
50 double t = time.tv_sec * 1000.0 + time.tv_nsec / 1000000.0;
52 char*
id = g_strdup_printf(
"%lf", t);
59 static NewContentIndicatorEvent*
createRemoveEvent(
const std::string& _appId,
const std::string& _requestId) {
61 if (_appId.empty() || _requestId.empty())
64 NewContentIndicatorEvent* e =
new NewContentIndicatorEvent;
65 e->eventType = NewContentIndicatorEvent::Remove;
67 e->requestId = _requestId;
77 NewContentIndicatorEvent* e =
new NewContentIndicatorEvent;
78 e->eventType = NewContentIndicatorEvent::Clear;