diff options
author | Charles Kerr <charles.kerr@canonical.com> | 2014-01-16 16:45:40 -0600 |
---|---|---|
committer | Charles Kerr <charles.kerr@canonical.com> | 2014-01-16 16:45:40 -0600 |
commit | a2b5c79157fa8db36d94786de1b86b756308912d (patch) | |
tree | 052475103594dd1b87dcbda97ffed2b8822f2d69 /include | |
parent | 9c81a4d60d06b1f33001602cd0cde9844c9233a6 (diff) | |
download | ayatana-indicator-datetime-a2b5c79157fa8db36d94786de1b86b756308912d.tar.gz ayatana-indicator-datetime-a2b5c79157fa8db36d94786de1b86b756308912d.tar.bz2 ayatana-indicator-datetime-a2b5c79157fa8db36d94786de1b86b756308912d.zip |
Plug the Settings object into the State container s.t. menus and actions can update themselves when the user's settings change.
Diffstat (limited to 'include')
-rw-r--r-- | include/datetime/state.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/datetime/state.h b/include/datetime/state.h index a82bb4b..e735b6f 100644 --- a/include/datetime/state.h +++ b/include/datetime/state.h @@ -21,9 +21,10 @@ #define INDICATOR_DATETIME_STATE_H #include <datetime/clock.h> -#include <datetime/timezones.h> -#include <datetime/planner.h> #include <datetime/locations.h> +#include <datetime/planner.h> +#include <datetime/settings.h> +#include <datetime/timezones.h> #include <core/property.h> @@ -47,18 +48,17 @@ namespace datetime { * @see Clock * @see Planner * @see Locations + * @see Settings */ struct State { - std::shared_ptr<Timezones> timezones; std::shared_ptr<Clock> clock; - std::shared_ptr<Planner> planner; std::shared_ptr<Locations> locations; + std::shared_ptr<Planner> planner; + std::shared_ptr<Settings> settings; + std::shared_ptr<Timezones> timezones; - core::Property<bool> show_events; - core::Property<bool> show_clock; core::Property<DateTime> calendar_day; - core::Property<bool> show_week_numbers; }; } // namespace datetime |