[mythtv-firehose] mythtv/master commit: 86d353761 by Raymond Wagner (wagnerrp)
noreply at mythtv.org
Thu Sep 8 06:56:34 UTC 2011
Author: Raymond Wagner <rwagner at mythtv.org>
Change Date: 2011-09-07T23:47:34-07:00
Push Date: 2011/09/07 23:56:27 -0700
New Revision: 86d35376119b4794eb054225a31b1cd04b02ab84
Remove use of signals and slots from protocol server.
The rewritten delete thread in libmythprotoserver was intended to be
ignorant of any metadata pertaining to the file it was deleting, and
simply implement the slow delete and follow symlinks features. Signals
would be fired off to indicate success or failure of deletion, so other
code could handle removal of the metadata from the database.
This reworks that behavior, replacing the deletestruct with a
DeleteHandler class, and replacing the signals with DeleteSucceeded()
and DeleteFailed() virtual methods. In order to handle metadata,
subclass this and overwrite those two methods. FileServerHandler
accepts it using the HandleDeleteFile() method.
More information about the mythtv-firehose