Here are some classes for managing serialized data in LMMS:
SerializingObject: Base class for serializable object. Subclasses should implement its own loadSettings() and saveSettings(). Currently, it only supports XML.
DataFile: Read/write/upgrade LMMS data files like project files and presets.
JournallingObject: Base class for objects that support journaling(based on SerializingObject).