#include <calendaritem.h>
Public Member Functions | |
YearlyCalendarItem ()=default | |
YearlyCalendarItem (const CalendarItem::Point &point, const std::string &title, EMonth month, int day) | |
bool | init (utility::ErrorState &errorState) override |
bool | setDate (EMonth month, int day) |
virtual bool | active (SystemTimeStamp timeStamp) const override |
![]() | |
CalendarItem ()=default | |
CalendarItem (const Point &point, const std::string &title) | |
void | setTitle (const std::string &title) |
const std::string & | getTitle () const |
void | setDescription (const std::string &description) |
const std::string & | getDescription () const |
bool | setPoint (const Point &point) |
const Point & | getPoint () const |
bool | setTime (const Time &time) |
const Time & | getTime () const |
void | setDuration (const Time &duration) |
const Time & | getDuration () const |
![]() | |
Resource () | |
![]() | |
Object () | |
virtual | ~Object () |
virtual void | onDestroy () |
Object (Object &)=delete | |
Object & | operator= (const Object &)=delete |
Object (Object &&)=delete | |
Object & | operator= (Object &&)=delete |
Public Attributes | |
int | mDay = 1 |
Property: 'Day' the day of the month (1-31) More... | |
EMonth | mMonth = EMonth::Unknown |
Property: 'Month' month of the year. More... | |
![]() | |
std::string | mTitle = "" |
Property: 'Title' item title. More... | |
Point | mPoint |
Property; 'Point' point in time together with duration. More... | |
std::string | mDescription = "" |
Property: 'Description' item description. 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) |
Yearly occurring calendar item. For example: Christmas, New Year etc.
|
default |
YearlyCalendarItem | ( | const CalendarItem::Point & | point, |
const std::string & | title, | ||
EMonth | month, | ||
int | day | ||
) |
|
overridevirtual |
timeStamp | time to validate |
Implements CalendarItem.
|
overridevirtual |
Initializes the yearly calendar item. Checks if the is valid.
Reimplemented from CalendarItem.
bool setDate | ( | EMonth | month, |
int | day | ||
) |
Updates the calendar date, checks if the new date is valid.
month | new month |
day | new day in month |
int mDay = 1 |
Property: 'Day' the day of the month (1-31)
EMonth mMonth = EMonth::Unknown |
Property: 'Month' month of the year.