#include <calendar.h>
Public Member Functions | |
Calendar (nap::Core &core) | |
virtual | ~Calendar () |
virtual bool | init (utility::ErrorState &errorState) override |
CalendarInstance & | getInstance () override |
const CalendarInstance & | getInstance () const override |
![]() | |
ICalendar (nap::Core &core) | |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
CalendarItemList | mItems |
Property: 'Items' default set of calendar items. More... | |
bool | mAllowFailure = true |
Property: 'AllowLoadFailure' If initialization continues when loading a calendar from disk fails. In that case resource defaults are used. More... | |
![]() | |
std::string | mID |
Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
![]() | |
static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
![]() | |
nap::Core & | mCore |
NAP core. More... | |
Simple serializable calendar resource that manages a set of calendar items. Call getInstance() to inspect, create, load and save the calendar.
The instance is created on initialization and is constructed using the set of 'Items' defined by this resource. If a calendar with the same ID exists on disk (saved previously) it is loaded instead.
Use the nap::CalendarComponent to receive a notification when an event starts and ends. Note that this calendar is meant to be used with a 'limited' (1000x) set of events, as it doesn't make use of a database.
|
virtual |
|
overridevirtual |
Implements ICalendar.
|
overridevirtual |
Implements ICalendar.
|
overridevirtual |
Creates and initializes the calendar instance
Reimplemented from Object.
bool mAllowFailure = true |
Property: 'AllowLoadFailure' If initialization continues when loading a calendar from disk fails. In that case resource defaults are used.
CalendarItemList mItems |
Property: 'Items' default set of calendar items.