2 #include <State/Message.hpp>
4 #include <score/serialization/JSONVisitor.hpp>
5 #include <score/serialization/MimeVisitor.hpp>
11 inline constexpr
const char* messagelist()
13 return "application/x-score-messagelist";
21 using MimeDataReader::MimeDataReader;
22 void serialize(
const State::MessageList& lst)
const
24 m_mime.setData(score::mime::messagelist(), toJson(lst));
31 using MimeDataWriter::MimeDataWriter;
32 State::MessageList deserialize()
34 return fromJson<State::MessageList>(m_mime.data(score::mime::messagelist()));
Utilities for OSSIA data structures.
Definition: DeviceInterface.hpp:33
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: MimeVisitor.hpp:22
Definition: MimeVisitor.hpp:32
Definition: MimeVisitor.hpp:7
Definition: MimeVisitor.hpp:9