diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-09-25 13:49:31 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-09-25 13:49:31 +0200 |
commit | c3a76dfef6b62a003f159f2ec1ef0ca6d2290db7 (patch) | |
tree | 852a9b9177f3ec7c666ab4e6c01976bfcd41bf0a /recording.h | |
parent | f2183f9ff56f6f0024d9c55df6472f37f638adc0 (diff) | |
download | vdr-c3a76dfef6b62a003f159f2ec1ef0ca6d2290db7.tar.gz vdr-c3a76dfef6b62a003f159f2ec1ef0ca6d2290db7.tar.bz2 |
The '.update' file in the video directory is now touched when a recording is added or deleted
Diffstat (limited to 'recording.h')
-rw-r--r-- | recording.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/recording.h b/recording.h index aa33dd3b..9230540f 100644 --- a/recording.h +++ b/recording.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.h 1.42 2005/09/25 11:31:28 kls Exp $ + * $Id: recording.h 1.43 2005/09/25 13:47:07 kls Exp $ */ #ifndef __RECORDING_H @@ -93,6 +93,7 @@ public: class cRecordings : public cList<cRecording>, public cThread { private: + char *updateFileName; bool deleted; time_t lastUpdate; int state; @@ -113,7 +114,10 @@ public: ///< function returns only after the update has completed. ///< Returns true if Wait is true and there is anyting in the list ///< of recordings, false otherwise. - void TriggerUpdate(void) { lastUpdate = 0; } + void TouchUpdate(void); + ///< Touches the '.update' file in the video directory, so that other + ///< instances of VDR that access the same video directory can be triggered + ///< to update their recordings list. bool NeedsUpdate(void); void ChangeState(void) { state++; } bool StateChanged(int &State); |