summaryrefslogtreecommitdiff
path: root/timers.cpp
AgeCommit message (Collapse)Author
2017-06-18Fixed compilation with VDR 2.2.0Jasmin Jessich
2017-06-18Protect stored timers in SortedTimers listJasmin Jessich
- SortedTimers::GetByTimerId will now return "const cTimer *" to be sure the timer is never modified within live. Modifying or more worse deleting such a timer can lead to a segfault. This is no longer the case, but using const may protect future mistakes.
2017-06-17Use a cStateKey for SortedTimers::Modified changed detectionJasmin Jessich
- Added SortedTimers::m_TimersStateKey to store the last timers list state. - SortedTimers::Modified uses now the new m_TimersStateKey to check, if the list has been modified.
2017-06-17Added column 'Searchtimer' to the timer viewsJasmin Jessich
- This implements the change request from ludi: http://www.vdr-portal.de/board16-video-disk-recorder/board55-vdr-plugins/p1293486-vdr-plugin-live-f%C3%BCr-vdr-2-3-x/#post1293486 He requested to see the name of the serach timer, which has created a timer.
2017-06-09Update internal timer list if VDR timers have been changedJasmin Jessich
- New function StatusMonitor::TimerChange. - New function TimerManager::SetReloadTimers. - VDR will execute TimerChange which will use SetReloadTimers to store a timer update needs to be done. Later TimerManager::DoPendingWork will reload the actual timers from VDR. - Added missing locking to StatusMonitor functions.
2017-05-21Use "std::unique_ptr" instead of "std::auto_ptr"Jasmin Jessich
- Compile plugin with C++11 compiler, to allow usage of "std::unique_ptr". - Added "-Wfatal-errors -Wall" to stop on the first error and switch on all warnings. - Removed autoptr.h and used "std::unique_ptr" instead where macro AUTO_PTR has been used. Checked also, if the pointers are used correctly, because "std::unique_ptr" is not 100% compatible to "std::auto_ptr", when the pointer is "moved". "std::unique_ptr" needs an explicit call to "std::move" in this case (AFAIU). Keep "std::auto_ptr" in the epgsearch interface!
2017-05-21Fixed compilation with VDR 2.2.0Jasmin Jessich
2017-05-21Include file re-orderingJasmin Jessich
- Reorder all included header files to this order: * own headers * STL headers * VDR headers * system headers This has been done in all source and all own header files. Normally the STL headers should have gone after the VDR headers, but due to an compilation error with GCC 6 and the definition of swap in vdr/tools.h if __STL_CONFIG_H is not defined, the STL headers need to be before the VDR headers. Please note, that GCC 4.x, 5.x and 6.x do no longer define __STL_CONFIG_H resulting in the definition of swap in vdr/tools.h. This was no problem till GCC 6.x. To overcome the error in GCC 6.x, __STL_CONFIG_H is now defined in some headers before including a VDR header file, so that vdr/tools.h doe not define swap any more. Klaus S. might change the definition in vdr/tools.h with the next VDR version. So the setting of "__STL_CONFIG_H" may be removed. - Added all missing system/STL/VDR header files to the own header files, so that they can be included as first file. - Removed all unnecessary header file includes in source and own header files. - Used #include "..." only for header files in the same directory and #include <...> for all header files which need to be searched via the -I and built in path.
2017-05-20gcc-6 fixesJasmin Jessich
- New file autoptr.h to switch between "std::unique_ptr" and "std::auto_ptr" depending on the GCC version, by new macro AUTO_PTR. - Removed some "using namespace std" and add some "#define __STL_CONFIG_H" before including header files. This will not define "swap" in vdr/tools.h. - Remove also "using namespace std::tr1".
2017-05-16Use SetExplicitModify on timersJasmin Jessich
Only in case of a real change SetModified is used to change the list state.
2017-05-14Added comments concerning TODOsJasmin Jessich
2017-05-14Added SortedTimers::ModifiedJasmin Jessich
2017-05-14Remove more dead codeJasmin Jessich
2017-04-01VDR-2.3.1 compatibility patch by Nachteule.Rolf Ahrenberg
http://www.vdr-portal.de/board16-video-disk-recorder/board55-vdr-plugins/p1280013-vdr-live-vdr-2-3-1/#post1280013
2015-02-13Removed all conditional compilation based on VDRVERSNUM. The youngestDieter Hametner
VDRVERSNUM-check was for 10728. So all VDR versions less or equal 10728 are not supported any more now.
2011-01-23finnish translation update, thanks to Rolf AhrenbergChristian Wieninger
2010-10-17Protect the ':' in title or aux string.Dieter Hametner
Use StringReplace here because if ':' are characters in the title or aux string it breaks parsing of timer definition in VDRs cTimer::Parse method. The '|' will be replaced back to ':' by the cTimer::Parse() method. Fix was submitted by rofafor: see http://www.vdr-portal.de/board/thread.php?threadid=100398
2008-04-10Commented out some debugging log statements to not clutter syslog withcvs-commit-353Dieter Hametner
to much information.
2008-03-23Some clean up in the timer editing call.Dieter Hametner
Prepeared timer edititing to be a popup like the epg-data. This is not finished yet and seems to have some problems with the form and the popup. So the overall functionality is disabled. Never the less some of the changes for this are of general interrest, so current work was commited. Changes in the styles for this.
2008-03-12Whitespace changes only. Adapted indentation to be usable with automaticDieter Hametner
indentation editors.
2007-10-25- check if aux info exists in timerChristian Wieninger
2007-10-25- included i18n.h for trVDRChristian Wieninger
2007-10-25- additional timer info in popup menu in timers menuChristian Wieninger
2007-06-11- Additional fixes for better styleability. Set class 'bottomrow' onDieter Hametner
table cells which are followed by a spacer line.
2007-05-31- [0000340] moved timer deletion and toggling to foreground threadSascha Volkenandt
- now stopping recording in case of ongoing recording
2007-05-03- EPG pages now display record.png or record_timer.png depending on an ↵Christian Wieninger
existing timer - If record_timer.png is displayed one can now edit the timer for an event
2007-04-24Added toggle activity functionalityThomas Keil
2007-04-24Added Function DelTimerThomas Keil
2007-01-19- converted all tChannelID::ToString and *::FromString calls to the stream ↵Sascha Volkenandt
operators when streams are involved
2007-01-18- added status monitor to reload timers when a recording starts or stopsSascha Volkenandt
2007-01-13- added service to switch channels by channel-idSascha Volkenandt
2007-01-12- added operators for streaming tChannelIDSascha Volkenandt
- passing tChannelID consistently
2007-01-08- fixed segfault when adding new timersSascha Volkenandt
2007-01-07- simplified error handlingSascha Volkenandt
- moved error_widget to error.ecpp as subcomponent - introduced error handling where necessary - moved creation of timer settings string from page to code - added redirect to edit_timer.ecpp after saving a timer
2007-01-06- implemented updating and adding timers from background threadSascha Volkenandt
- added function to "Save"-button of edit_timer
2007-01-05- incorporated all code into one shared objectSascha Volkenandt
- added several functions for timer identification
2007-01-05- moved SortedTimers to plugin and added methods to interface from websiteSascha Volkenandt
- added function to update internal timers from main thread
2007-01-04- optimized interface to access plugin objects from websiteSascha Volkenandt
- moved website code to pagelib subdirectory - introduced TimerManager that will help working on timers from a background thread
2007-01-04- added const specifier to operator< for cTimerSascha Volkenandt
2007-01-03- added new Timers class that wraps cTimers functionalitySascha Volkenandt