[GIS] QGIS Plugin with save settings dialog

pyqgispyqtqgisqgis-plugins

I am writing on an update of the qgis2leaf plugin.
It would be great to store the settings of the plugin UI (like which checkboxes are checked, which strings are used) in a separate file (like xml or sth. else). secondly it would be great to load such a file and set the UI with the parameters in this file.

Does anyone know a plugin for qgis that might already have such a functionality so I can use it as a template?