Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
7 changed files
with
141 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.