[mythtv] [mythtv-commits] mythtv commit: r21156 - in trunk/mythtv by cpinkham

Jonathan Martens jonathan at snetram.nl
Sat Aug 8 07:05:28 UTC 2009


On 8-8-2009 8:38, Chris Pinkham wrote:
> * On Sat Aug 08, 2009 at 06:25:11AM +0000, mythtv at cvs.mythtv.org wrote:
>> Log:
>>
>> Since we can now write files remotely, add a way to delete them.
>>
>> This is useful for the MythVideo image support, but could also be used
>> to allow managing/deleting videos.  Parts of this patch will also be used
>> as part of the recordedfile multiple-files-per-recording patch I am
>> working on.
>
> To provide a little more info on this....
>
> Usage is RemoteFile::DeleteFile("myth://IP/filename");  This is a static
> method, you do not need to instantiate a RemoteFile to use DeleteFile,
> that is handled internally.
>
> For the protocol, the added command is "DELETE_FILE filename".
>
> The Delete honors the DeletesFollowLinks and TruncateDeletesSlowly
> settings.  The truncate is spun off into another thread on the backend
> after the delete status is returned to the user.

Does it compile properly on Linux? On windows build halts with the 
following error:

remotefile.cpp:167: error: no 'bool RemoteFile::DeleteFileA(const 
QString&)' member function declared in class 'RemoteFile'
remotefile.cpp: In member function 'bool RemoteFile::DeleteFileA(const 
QString&)':
remotefile.cpp:175: error: no matching function for call to 
'RemoteFile::DeleteFileA()'
remotefile.cpp:167: note: candidates are: bool 
RemoteFile::DeleteFileA(const QString&)
remotefile.cpp: At global scope:
remotefile.cpp:182: error: prototype for 'bool 
RemoteFile::DeleteFileA()' does not match any in class 'RemoteFile'
remotefile.cpp:167: error: candidate is: bool 
RemoteFile::DeleteFileA(const QString&)
make[2]: *** [remotefile.o] Error 1
make[2]: Leaving directory `/u/mythtv/mythtv/libs/libmythdb'
make[1]: *** [sub-libmythdb-make_default] Error 2
make[1]: Leaving directory `/u/mythtv/mythtv/libs'
make: *** [sub-libs-make_default-ordered] Error 2

Kind regards,

Jonathan


More information about the mythtv-dev mailing list