From 23562a42a5a5d776330b42823fe844493b574830 Mon Sep 17 00:00:00 2001 From: Rolf Ahrenberg Date: Thu, 10 Feb 2011 13:14:03 +0200 Subject: Added support for renaming/moving recordings and for deleting multiple recordings at once. --- tools.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tools.h') diff --git a/tools.h b/tools.h index f4020ac..272dce8 100644 --- a/tools.h +++ b/tools.h @@ -11,6 +11,8 @@ #include #include #include +#include +#include std::istream& operator>>( std::istream& is, tChannelID& ret ); @@ -57,6 +59,10 @@ namespace vdrlive { std::string EncodeDomId(std::string const & toEncode, char const * from = ".-:", char const * to = "pmc"); std::string DecodeDomId(std::string const & toDecode, char const * from = "pmc", char const * to = ".-:"); + std::string FileSystemExchangeChars(std::string const & s, bool ToFileSystem); + + bool MoveDirectory(std::string const & sourceDir, std::string const & targetDir); + struct bad_lexical_cast: std::runtime_error { bad_lexical_cast(): std::runtime_error( "bad lexical cast" ) {} -- cgit v1.2.3