[mythtv-firehose] mythtv/master commit: 86d353761 by Raymond Wagner (wagnerrp)

MythTV 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
  Repository:  mythtv
      Branch:  master
New Revision:  86d35376119b4794eb054225a31b1cd04b02ab84
   Changeset:  https://github.com/MythTV/mythtv/commit/86d353761

Log:

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.

Modified:

   mythtv/libs/libmythbase/mythversion.h
   mythtv/libs/libmythprotoserver/requesthandler/deletethread.cpp
   mythtv/libs/libmythprotoserver/requesthandler/deletethread.h
   mythtv/libs/libmythprotoserver/requesthandler/fileserverhandler.cpp
   mythtv/libs/libmythprotoserver/requesthandler/fileserverhandler.h
   mythtv/libs/libmythprotoserver/requesthandler/fileserverutil.cpp
   mythtv/libs/libmythprotoserver/requesthandler/fileserverutil.h



More information about the mythtv-firehose mailing list