diff options
Diffstat (limited to 'domain/include')
| -rw-r--r-- | domain/include/turns/domain/participant.hpp | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/domain/include/turns/domain/participant.hpp b/domain/include/turns/domain/participant.hpp index f6ceff7..7c047ea 100644 --- a/domain/include/turns/domain/participant.hpp +++ b/domain/include/turns/domain/participant.hpp @@ -4,6 +4,8 @@ #include <compare> #include <glibmm/object.h> +#include <glibmm/property.h> +#include <glibmm/propertyproxy.h> #include <glibmm/refptr.h> #include <glibmm/ustring.h> @@ -14,19 +16,18 @@ namespace turns::domain { auto static create(Glib::ustring name, float order_value) -> Glib::RefPtr<participant>; - auto operator<=>(participant const & other) const noexcept -> std::partial_ordering; + participant(Glib::ustring name, float order_value); - auto name() const noexcept -> Glib::ustring const &; - auto name(Glib::ustring value) -> participant &; + auto operator<=>(participant const & other) const noexcept -> std::partial_ordering; - auto order() const noexcept -> float; - auto order(float) noexcept -> participant &; + auto property_name() -> Glib::PropertyProxy<Glib::ustring>; + auto property_name() const -> Glib::PropertyProxy_ReadOnly<Glib::ustring>; + auto property_over_value() -> Glib::PropertyProxy<float>; + auto property_over_value() const -> Glib::PropertyProxy_ReadOnly<float>; private: - participant(Glib::ustring name, float order_value); - - Glib::ustring m_name; - float m_order_value; + Glib::Property<Glib::ustring> m_name; + Glib::Property<float> m_order_value; }; auto operator<=>(Glib::RefPtr<participant> const & lhs, Glib::RefPtr<participant> const & rhs) -> std::partial_ordering; |
