NAP
Public Attributes | List of all members
CalendarComponent Class Reference

#include <calendarcomponent.h>

Public Attributes

float mFrequency = 1.0f
 Property: 'Frequency' how many times a second the calendar is checked for changes. Defaults to 1x a second. More...
 
nap::ResourcePtr< ICalendarmCalendar = nullptr
 Property: 'Calendar' the calendar to watch. 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

- Public Member Functions inherited from Component
virtual void getDependentComponents (std::vector< rtti::TypeInfo > &components) const
 
virtual const rtti::TypeInfo getInstanceType () const =0
 
- Public Member Functions inherited from Resource
 Resource ()
 
- Public Member Functions inherited from Object
 Object ()
 
virtual ~Object ()
 
virtual bool init (utility::ErrorState &errorState)
 
virtual void onDestroy ()
 
 Object (Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object (Object &&)=delete
 
Objectoperator= (Object &&)=delete
 
- Static Public Member Functions inherited from Object
static bool isIDProperty (rtti::Instance &object, const rtti::Property &property)
 

Description

Notifies listeners when a calendar event starts and ends. Time used = local computer time. TODO: Add support for timezones.

Inheritance diagram for CalendarComponent:
[legend]
Collaboration diagram for CalendarComponent:
[legend]

Member Data Documentation

◆ mCalendar

nap::ResourcePtr<ICalendar> mCalendar = nullptr

Property: 'Calendar' the calendar to watch.

◆ mFrequency

float mFrequency = 1.0f

Property: 'Frequency' how many times a second the calendar is checked for changes. Defaults to 1x a second.