#include <calendaritem.h>
Public Member Functions | |
WeeklyCalendarItem ()=default | |
WeeklyCalendarItem (const CalendarItem::Point &point, const std::string &title, EDay day) | |
bool | init (utility::ErrorState &errorState) override |
bool | setDay (EDay day) |
EDay | getDay () const |
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 | |
EDay | mDay = EDay::Monday |
Property: 'Day' day of the week. 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) |
Weekly recurring calendar item. For example: Store opening hours.
|
default |
WeeklyCalendarItem | ( | const CalendarItem::Point & | point, |
const std::string & | title, | ||
EDay | day | ||
) |
|
overridevirtual |
timeStamp | time to validate |
Implements CalendarItem.
EDay getDay | ( | ) | const |
|
overridevirtual |
Initializes the weekly calendar item. Checks if the day and time are valid.
Reimplemented from CalendarItem.
bool setDay | ( | EDay | day | ) |
Updates the day of the week
day | the new day of the week |
EDay mDay = EDay::Monday |
Property: 'Day' day of the week.