2006-03-23, 07:59 AM
I'm trying to write a plugin that displays the next 2 scheduled recordings on my HTPC's VFD screen, and when one or more of them is running display the percentage completed of the recording[s].
So far I have a small Delphi app which does this by directly reading the gbpvr.mdb, but I'd prefer to do it via a plugin. This app also watches the gbpvr.mdb file and when it changes it refreshes the display.
(it uses events posted to Girder to actually set the VFD via a Girder plugin)
So in essence I need two things.
1. How to get the list of current Scheduled Recordings,
2. What event to listen for so I know the list has changed.
In GBPVRPublic.dll I can see a ScheduledRecording class but can't see how to get the list of them. The IScheduleHelper has a method GetListingsForTimePeriod which returns a IList. What does the IList contain ?
Is this the interface I need, if so which class implements this interface.
Additionally, I wrote a simple plugin to implement IEventNotification to see what events get generated, but I never get any events to tell me the list of scheduled recordings has changed.
Help !!
So far I have a small Delphi app which does this by directly reading the gbpvr.mdb, but I'd prefer to do it via a plugin. This app also watches the gbpvr.mdb file and when it changes it refreshes the display.
(it uses events posted to Girder to actually set the VFD via a Girder plugin)
So in essence I need two things.
1. How to get the list of current Scheduled Recordings,
2. What event to listen for so I know the list has changed.
In GBPVRPublic.dll I can see a ScheduledRecording class but can't see how to get the list of them. The IScheduleHelper has a method GetListingsForTimePeriod which returns a IList. What does the IList contain ?
Is this the interface I need, if so which class implements this interface.
Additionally, I wrote a simple plugin to implement IEventNotification to see what events get generated, but I never get any events to tell me the list of scheduled recordings has changed.
Help !!