summaryrefslogtreecommitdiff
path: root/mymenurecordings.h
diff options
context:
space:
mode:
authorMartin Prochnow <nordlicht@martins-kabuff.de>2007-02-04 23:31:11 +0100
committerAndreas Mair <andreas@vdr-developer.org>2007-02-04 23:31:11 +0100
commit8adfaaf81b104b8e981026da593e40f9d780c251 (patch)
tree0a72c71d85e1d5bbac8729cefa9e41ec9e58758b /mymenurecordings.h
parent074a396ce9f5c5239dd790c6566e0f19dff45f59 (diff)
downloadvdr-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 'mymenurecordings.h')
-rw-r--r--mymenurecordings.h35
1 files changed, 19 insertions, 16 deletions
diff --git a/mymenurecordings.h b/mymenurecordings.h
index ebaf588..c112be2 100644
--- a/mymenurecordings.h
+++ b/mymenurecordings.h
@@ -1,21 +1,23 @@
// --- myMenuRecordingsItem ---------------------------------------------------
class myMenuRecordingsItem:public cOsdItem
{
- private:
- bool isdvd;
- int level,isdirectory;
- int totalentries,newentries;
- char *title;
- char *name;
- const char *filename;
- public:
- myMenuRecordingsItem(cRecording *Recording,int Level);
- ~myMenuRecordingsItem();
- const char *FileName(){return filename;}
- const char *Name(){return name;}
- bool IsDirectory(){return name!=NULL;}
- void IncrementCounter(bool IsNew);
- bool IsDVD(){return isdvd;}
+ private:
+ bool isdvd;
+ int level,isdirectory;
+ int totalentries,newentries;
+ char *title;
+ char *name;
+ const char *filename;
+ std::string uniqid; // this is the unique name that identifies a recording
+ public:
+ myMenuRecordingsItem(cRecording *Recording,int Level);
+ ~myMenuRecordingsItem();
+ const char *FileName(){return filename;}
+ const char *Name(){return name;}
+ bool IsDirectory(){return name!=NULL;}
+ void IncrementCounter(bool IsNew);
+ bool IsDVD(){return isdvd;}
+ const char *UniqID(){return uniqid.length()?uniqid.c_str():"";}
};
// --- myMenuRecordings -------------------------------------------------------
@@ -30,7 +32,7 @@ class myMenuRecordings:public cOsdMenu
char *base;
bool Open();
void SetHelpKeys();
- void SetFreeSpaceTitle();
+ void Title();
cRecording *GetRecording(myMenuRecordingsItem *Item);
eOSState Play();
eOSState Rewind();
@@ -41,6 +43,7 @@ class myMenuRecordings:public cOsdMenu
eOSState Details();
eOSState Commands(eKeys Key=kNone);
eOSState ChangeSorting();
+ bool IsCutted();
public:
myMenuRecordings(const char *Base=NULL,int Level=0);
~myMenuRecordings();