aboutsummaryrefslogtreecommitdiff
path: root/core/src/participant.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/participant.cpp')
-rw-r--r--core/src/participant.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/core/src/participant.cpp b/core/src/participant.cpp
index 9b0ec51..d4b3835 100644
--- a/core/src/participant.cpp
+++ b/core/src/participant.cpp
@@ -12,16 +12,15 @@
#include <compare>
#include <string>
-#include <typeinfo>
namespace turns::core
{
- auto participant::create(Glib::ustring name, float priority, core::disposition disposition) -> Glib::RefPtr<participant>
+ auto Participant::create(Glib::ustring name, float priority, core::disposition disposition) -> Glib::RefPtr<Participant>
{
- return Glib::make_refptr_for_instance(new participant{name, priority, disposition});
+ return Glib::make_refptr_for_instance(new Participant{name, priority, disposition});
}
- auto participant::create(nlohmann::json const & serialized) -> Glib::RefPtr<participant>
+ auto Participant::create(nlohmann::json const & serialized) -> Glib::RefPtr<Participant>
{
auto disposition = serialized.value("disposition", disposition::neutral);
auto priority = serialized.value("priority", 0.0f);
@@ -35,26 +34,26 @@ namespace turns::core
return instance;
}
- participant::participant()
- : Glib::ObjectBase{typeid(participant)}
+ Participant::Participant()
+ : Glib::ObjectBase{"TurnsParticipant"}
, Glib::Object{}
{
}
- participant::participant(Glib::ustring name, float priority, core::disposition disposition)
- : participant()
+ Participant::Participant(Glib::ustring name, float priority, core::disposition disposition)
+ : Participant()
{
m_name = name;
m_priority = priority;
m_disposition = disposition;
}
- auto participant::operator<=>(participant const & other) const noexcept -> std::partial_ordering
+ auto Participant::operator<=>(Participant const & other) const noexcept -> std::partial_ordering
{
return m_priority <=> other.m_priority;
}
- auto participant::serialize() -> nlohmann::json
+ auto Participant::serialize() -> nlohmann::json
{
return nlohmann::json{
{"disposition", m_disposition},