#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 |
Public Member Functions inherited from ICalendar | |
| ICalendar (nap::Core &core) | |
Public Member Functions inherited from Resource | |
| Resource () | |
Public Member Functions inherited from Object | |
| 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... | |
Public Attributes inherited from Object | |
| std::string | mID |
| Property: 'mID' unique name of the object. Used as an identifier by the system. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from Object | |
| static bool | isIDProperty (rtti::Instance &object, const rtti::Property &property) |
Protected Attributes inherited from ICalendar | |
| 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.