Save & load GenericStrreamSource

This commit is contained in:
Bruno Herbelin
2021-12-31 13:30:51 +01:00
parent fda62314f9
commit d5092b1765
6 changed files with 34 additions and 2 deletions

View File

@@ -703,6 +703,19 @@ void SessionVisitor::visit (MultiFileSource& s)
xmlCurrent_->InsertEndChild(sequence);
}
void SessionVisitor::visit (GenericStreamSource& s)
{
xmlCurrent_->SetAttribute("type", "GenericStreamSource");
XMLElement *desc = xmlDoc_->NewElement("Description");
XMLText *text = xmlDoc_->NewText( s.description().c_str() );
desc->InsertEndChild( text );
xmlCurrent_->InsertEndChild(desc);
}
std::string SessionVisitor::getClipboard(const SourceList &list)
{
std::string x = "";