This Patch is made to allow MediaPortal to support countries in which the working days start on Sunday and not on Monday.
It is based on V1.0.2 (rev 22555)
The work was done only on the TVEngine3 part
Still working on updating all of the language files. Currently updated only strings_en.xml and strings_he.xml
The code is based on two new classes than will handle all of the places in which there is a decision about the weekend days.
The selection of the first day of the week is done in TV server congif -> recording page.
The classes are:
1) Used by the TvPlugin solution:
Named- WeekEndTools.cs
using= MediaPortal.GUI.Library, stored inside- core.dll.
MediaPortal -> Core -> guilib -> MediaPortal.GUI.Library
2) Used by the TvLibrary solution:
Named- TVLibWeekEndTools.cs
using=TvLibrary.Interfaces, stored inside- TvLibrary.Interfaces.dll
TvLibrary -> Library-> TVLibrary.interfaces -> interfaces
TVLibrary
Add the new UI to select the first working day of the week.
Update code in:
Setup GUI -> Setup Tv -> Sections -> TvRecording.cs
Plugins->ConflictsManager
Plugins->ScheduledRecordingsHandler.cs
Setup->TvSchedules.cs
TVDatabase ->Schedule.cs
TVDatabase->BusinessLayer.cs
TVService->Scheduler.cs
The value of DeltaInWorkingDay is inited from:
In TvService-> inside Service1.cs (when the service just starts)
(In TvSetup -> no need)
TVPlugin
Update code in:
TvPlugin -> TVConflicts.cs
TvPlugin -> TvNewScheduleSearchType.cs
TvPlugin -> TVPriorities.cs
TvPlugin -> TVProgramInfo.cs
TvPlugin -> TVScheduler.cs
TvPlugin -> TVSearch.cs
TvPlugin -> TVUtil.cs
The value of DeltaInWorkingDay is inited from:
In TvPlugin-> inside TvHome.cs --> init()
In Database -> TvBusinessLayer -> BusinessLayer.cs (see remark in Tvlibweekendtool)
Bob
It is based on V1.0.2 (rev 22555)
The work was done only on the TVEngine3 part
Still working on updating all of the language files. Currently updated only strings_en.xml and strings_he.xml
The code is based on two new classes than will handle all of the places in which there is a decision about the weekend days.
The selection of the first day of the week is done in TV server congif -> recording page.
The classes are:
1) Used by the TvPlugin solution:
Named- WeekEndTools.cs
using= MediaPortal.GUI.Library, stored inside- core.dll.
MediaPortal -> Core -> guilib -> MediaPortal.GUI.Library
2) Used by the TvLibrary solution:
Named- TVLibWeekEndTools.cs
using=TvLibrary.Interfaces, stored inside- TvLibrary.Interfaces.dll
TvLibrary -> Library-> TVLibrary.interfaces -> interfaces
TVLibrary
Add the new UI to select the first working day of the week.
Update code in:
Setup GUI -> Setup Tv -> Sections -> TvRecording.cs
Plugins->ConflictsManager
Plugins->ScheduledRecordingsHandler.cs
Setup->TvSchedules.cs
TVDatabase ->Schedule.cs
TVDatabase->BusinessLayer.cs
TVService->Scheduler.cs
The value of DeltaInWorkingDay is inited from:
In TvService-> inside Service1.cs (when the service just starts)
(In TvSetup -> no need)
TVPlugin
Update code in:
TvPlugin -> TVConflicts.cs
TvPlugin -> TvNewScheduleSearchType.cs
TvPlugin -> TVPriorities.cs
TvPlugin -> TVProgramInfo.cs
TvPlugin -> TVScheduler.cs
TvPlugin -> TVSearch.cs
TvPlugin -> TVUtil.cs
The value of DeltaInWorkingDay is inited from:
In TvPlugin-> inside TvHome.cs --> init()
In Database -> TvBusinessLayer -> BusinessLayer.cs (see remark in Tvlibweekendtool)
Bob