opdenkamp/xbmc — pull request #563 by mikrohard (2012-07-05 07:54:20+00:00)
Title: PVR and EPG support for profile switching

This adds PVR support to XBMC's profiles.

The database creation had to be moved from the constructors to the "start" methods and the closing from the destructors to the "stop" methods. Afterwards there were problems with PVR/EPG database resetting (because the PVR and EPG managers are stopped before the reset and so were the databases) so I had to put some additional checks for opening the databases if needed.

This is a working proof of concept. Maybe there could be a better solution (to create special methods in PVR and EPG managers to open/close the DB and then still call those within the constructor/destructor pairs and also from within the profile switching method).