diff options
author | Martin Prochnow <nordlicht@martins-kabuff.de> | 2007-02-04 23:31:11 +0100 |
---|---|---|
committer | Andreas Mair <andreas@vdr-developer.org> | 2007-02-04 23:31:11 +0100 |
commit | 8adfaaf81b104b8e981026da593e40f9d780c251 (patch) | |
tree | 0a72c71d85e1d5bbac8729cefa9e41ec9e58758b /tools.h | |
parent | 074a396ce9f5c5239dd790c6566e0f19dff45f59 (diff) | |
download | vdr-plugin-extrecmenu-8adfaaf81b104b8e981026da593e40f9d780c251.tar.gz vdr-plugin-extrecmenu-8adfaaf81b104b8e981026da593e40f9d780c251.tar.bz2 |
Version 0.13v0.13
- added two setup option to adjust the plugin behaviour to whose of VDR's recording menu (jumping to last replayed recording, call plugin after replay ends)
- only editing of cutting recordings is prevented now
- moving recordings between filesystems is now possible; includes:
* check for enough free disk space on target filesystem
* switch to limit bandwith (a.t.m. 2MBytes/sec)
* prevent editing of recordings that are moved
* marker for recordings, that are moved
- added marker for cutting and moving recording entries
- added marker to title bar for cutting and moving recordings
- recording info menu shows additional informations (name, path, channel, size, lifetime, priority)
- added setup option to select between plugin's and VDR's recording info menu
- dvd.vdr is ignored, as long as a 001.vdr is present
- fixed following issue (again): if there are more then one recording with the same name, only one of it is shown if all recording details are hidden
Diffstat (limited to 'tools.h')
-rw-r--r-- | tools.h | 65 |
1 files changed, 39 insertions, 26 deletions
@@ -1,44 +1,57 @@ -#include <string> -#include <fstream> -#include <iostream> - -using namespace std; +std::string myStrReplace(std::string S,char C1,char C2); class SortListItem:public cListObject { - private: - string path; - public: - SortListItem(const char *Path){path=Path;}; - const char *Path(){return path.c_str();} + private: + std::string path; + public: + SortListItem(const char *Path){path=Path;}; + const char *Path(){return path.c_str();} }; class SortList:public cList<SortListItem> { - public: - void ReadConfigFile(); - void WriteConfigFile(); - bool Find(char *Path); + public: + void ReadConfigFile(); + void WriteConfigFile(); + bool Find(char *Path); }; +class MoveBetweenFileSystems:public cThread +{ + private: + std::string oldname; + std::string newname; + cRecording *recording; + bool Move(std::string From,std::string To,cRecording *Recording); + protected: + virtual void Action(); + public: + MoveBetweenFileSystems(); + bool Start(std::string OldName,std::string NewName,cRecording *Recording); + bool IsMoving(std::string Path); +}; + +extern MoveBetweenFileSystems MoveThread; + bool MoveRename(const char *OldName,const char *NewName,cRecording *Recording,bool Move); class myRecListItem:public cListObject { - friend class myRecList; - private: - static bool SortByName; - char *filename; - static char *StripEpisodeName(char *s); - public: - myRecListItem(cRecording *Recording); - ~myRecListItem(); - virtual int Compare(const cListObject &ListObject)const; - cRecording *recording; + friend class myRecList; + private: + static bool SortByName; + char *filename; + static char *StripEpisodeName(char *s); + public: + myRecListItem(cRecording *Recording); + ~myRecListItem(); + virtual int Compare(const cListObject &ListObject)const; + cRecording *recording; }; class myRecList:public cList<myRecListItem> { - public: - void Sort(bool SortByName); + public: + void Sort(bool SortByName); }; |