NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 58 59 60 61 62 … 93 Next »
Getting the list of Scheduled Recordings

 
  • 0 Vote(s) - 0 Average
Getting the list of Scheduled Recordings
doogle
Offline

Junior Member

Posts: 28
Threads: 6
Joined: Dec 2005
#1
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 !!
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#2
2006-03-23, 09:22 AM
Hi,

doogle Wrote:1. How to get the list of current Scheduled Recordings,

Code:
foreach (ScheduledRecording scheduledRecording in ScheduleHelper.getInstance().LoadRecordingSchedule())
{
...
}

doogle Wrote:2. What event to listen for so I know the list has changed.

I've been searching for such an event, too, but there doesn't seem to exist something appropiate.
As a workaround, I set up a System.IO.FileSystemWatcher object to look for gbpvr.mdb. It can fire an event each time the database changes - then you can handle that, e.g. by refreshing the recording schedule.

-alibert
doogle
Offline

Junior Member

Posts: 28
Threads: 6
Joined: Dec 2005
#3
2006-03-23, 09:46 AM
alibert Wrote:Hi,

Code:
foreach (ScheduledRecording scheduledRecording in ScheduleHelper.getInstance().LoadRecordingSchedule())
{
...
}



-alibert

alibert
I've seen references to ScheduledRecording in the doco, supposedly in GBPVR.Backend.Common, but when I look at GBPVR.Backend.Common all I can see is GbpvrException and SkinConfiguration. Can't see any references in the other dlls either.
Where is the ScheduledRecording singleton ??
Am I missing a .net assembly. (using CommonGBPVRUtilities.dll and GBPVRPublic.dll)

When I try the code :
ScheduleHelper scheduleHelper = ScheduleHelper.getInstance();
I get a Type Can Not Be Found error in SharpDevelop for ScheduleHelper.


In the delphi app I wrote I used something similar to System.IO.FileSystemWatcher to track the gbpvr.mdb changes.
Assume I will have to use the same trick.

Thanks
alibert
Offline

Posting Freak

Posts: 974
Threads: 83
Joined: Apr 2005
#4
2006-03-23, 11:09 AM
Hi,

the schedulehelper class is in GBPVR.Backend.Common

-alibert
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Import/export recordings via API? whurlston 4 3,882 2019-02-19, 11:48 AM
Last Post: Graham
  Conflict recordings scJohn 1 2,633 2018-03-23, 07:43 PM
Last Post: sub
  API / web call for setting recordings Pbathuk 2 3,373 2018-01-13, 05:17 AM
Last Post: Pbathuk
  Channels List by Channel Group Name scJohn 1 2,823 2018-01-05, 10:45 PM
Last Post: mvallevand
  Channel List (native controller) psycik 2 3,160 2017-06-19, 09:14 AM
Last Post: psycik
  API access to artwork and deleting recordings cncb 29 15,974 2016-11-06, 02:20 AM
Last Post: mvallevand
  How to move recordings without them getting deleted from db drmargarit 4 3,971 2015-09-27, 05:33 PM
Last Post: sub
  Best approach to creating recurring recordings from c# drmargarit 0 2,652 2015-09-27, 01:32 AM
Last Post: drmargarit
  Changing the recording priority on recurring recordings cbgifford 4 3,884 2014-08-17, 03:13 PM
Last Post: Kiwi
  How does NextPVR group recordings for XBMC? spinnaker 2 2,358 2013-11-21, 01:33 AM
Last Post: spinnaker

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode