Logo Search packages:      
Sourcecode: vdr-plugin-live version File versions  Download package

RecordingsManagerPtr LiveRecordingsManager (  )  [friend]

Implementation of function LiveRecordingsManager:

return singleton instance of RecordingsManager as a shared Pointer. This ensures that after last use of the RecordingsManager it is deleted. After deletion of the original RecordingsManager a repeated call to this function creates a new RecordingsManager which is again kept alive as long references to it exist.

Definition at line 451 of file recman.cpp.

            RecordingsManagerPtr r = RecordingsManager::m_recMan.lock();
            if (r) {
                  return r;
            else {
                  RecordingsManagerPtr n(new RecordingsManager);
                  RecordingsManager::m_recMan = n;
                  return n;

Generated by  Doxygen 1.6.0   Back to index