9 #include "calendarevent.h"
12 #include <component.h>
13 #include <nap/timer.h>
15 #include <nap/signalslot.h>
19 class CalendarComponentInstance;
30 float mFrequency = 1.0f;
63 virtual void update(
double deltaTime)
override;
98 bool active(
const std::string& itemID)
const;
105 float mInterval = 1.0f;
107 std::unordered_set<std::string> mActive;
115 void onItemAdded(
const CalendarItem& item) { mDirty =
true; }
122 void onItemRemoved(
const CalendarItem& item);
nap::Signal< const CalendarEvent & > eventEnded
Triggered when a calendar event ends, always on the main thread on update()
Definition: calendarcomponent.h:101
std::vector< std::unique_ptr< CalendarItem > > OwnedCalendarItemList
Definition: calendar.h:107
Definition: signalslot.h:21
Definition: objectptr.h:154
void setDirty()
Definition: calendarcomponent.h:69
Definition: errorstate.h:19
nap::Signal< const CalendarEvent & > eventStarted
Triggered when a calendar event starts, always on the main thread on update()
Definition: calendarcomponent.h:100
Definition: calendarcomponent.h:44
Definition: calendar.h:30
Definition: signalslot.h:28
nap::ICalendar & getCalendar()
Definition: calendarcomponent.h:79
Definition: calendaritem.h:22
Definition: component.h:43
Definition: component.h:151
Definition: calendarcomponent.h:25
Definition: templateapp.h:17
const nap::ICalendar & getCalendar() const
Definition: calendarcomponent.h:74
CalendarComponentInstance(EntityInstance &entity, Component &resource)
Definition: calendarcomponent.h:48