1 #ifndef ERIS_CALENDAR_H
2 #define ERIS_CALENDAR_H
4 #include <sigc++/trackable.h>
5 #include <sigc++/connection.h>
15 typedef std::map<std::string, Element> MapType;
33 bool valid()
const {
return m_valid; }
35 int year()
const {
return m_year; }
36 int month()
const {
return m_month; }
37 int dayOfMonth()
const {
return m_dayOfMonth; }
39 int seconds()
const {
return m_seconds; }
40 int minutes()
const {
return m_minutes; }
41 int hours()
const {
return m_hours; }
64 int secondsPerMinute()
const {
return m_secondsPerMinute; }
65 int minutesPerHour()
const {
return m_minutesPerHour; }
66 int hoursPerDay()
const {
return m_hoursPerDay; }
72 void topLevelEntityChanged();
73 void calendarAttrChanged(
const Atlas::Message::Element& value);
75 void initFromCalendarAttr(
const Atlas::Message::MapType& cal);
85 sigc::connection m_calendarObserver;