NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 24 25 26 27 28 … 93 Next »
Reading config.xml

 
  • 0 Vote(s) - 0 Average
Reading config.xml
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#1
2009-03-26, 11:28 AM (This post was last modified: 2009-03-26, 11:36 AM by McBainUK.)
Is there anything built in to the GB-PVR plugin framework that plugins can use to read/write settings into the config.xml file?

edit: kind of related, are there any docs (other then forum Q&A posts) on the GB-PVR plugin interfaces and how it all works, and recommendations for using things like GetImage callbacks etc?
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#2
2009-03-26, 12:58 PM
McBainUK Wrote:Is there anything built in to the GB-PVR plugin framework that plugins can use to read/write settings into the config.xml file?
None that I know of unless any have been added recently that I haven't noticed.

There is a pluginHelper method GetConfiguration() which returns the entire config.xml as an XmlDocument without you having to know the gbpvr install folder. After that though you have to do your own xml processing. Mostly only useful for read operations - if you want to make changes, you need to know the install folder to use XmlDocument.Save(string filename), for example.

Not sure if any of the third-party helper libraries have anything more sophisticated.

As for GB-PVR programming references - forum posts, sample code and trial and error are how I find things out. Big Grin
McBainUK
Offline

Posting Freak

Posts: 4,711
Threads: 429
Joined: Sep 2005
#3
2009-03-26, 01:00 PM
bgowland Wrote:Not sure if any of the third-party helper libraries have anything more sophisticated.
There's stuff in the JavaWiz's WizUtilites, Jeff's CommonGBPVRUtls and possibly the reven et all's libaries but I wondered if I was able to keep to built in stuff...
Wiki profile
My Projects
Programs Plugin [SIZE=2](retired)
| Volume OSD Plugin (retired) | Documentation Wiki (retired)
[/SIZE]
jasonbs10
Offline

Member

Posts: 104
Threads: 4
Joined: Mar 2008
#4
2009-03-26, 01:27 PM
You could check "Videos Library" source code. The line count is getting up there, but it should have what you're looking for if you skim through it.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#5
2009-03-26, 04:28 PM
Here is some code that may get you started. Remember you will need to set the Plugins node to read/write from the plugins section.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  Settings config screen for class IEventNotification plugin imilne 9 3,460 2011-09-17, 06:06 PM
Last Post: sub
  config.xml & unvisible steeb 9 3,114 2011-06-19, 12:16 AM
Last Post: steeb
  Calling NextPVR restart after config.xml changes steeb 33 10,137 2011-05-02, 04:24 PM
Last Post: steeb
  Config.xml saving mvallevand 6 2,564 2010-01-08, 06:32 AM
Last Post: mvallevand
  reading tunerstatus herrmannj 4 1,800 2009-10-22, 03:10 PM
Last Post: whurlston
  reading the skin.xml file attributes idkpmiller 2 1,493 2009-02-03, 09:23 AM
Last Post: idkpmiller
  Plugin settings in the Config application Khurram 6 2,497 2008-06-09, 04:20 AM
Last Post: Khurram
  Easy .net snippet for accessing config.xml? zehd 3 1,667 2008-03-23, 05:58 AM
Last Post: zehd
  Start Menu Shortcut & config.xml Ommina 3 2,527 2007-12-19, 11:05 PM
Last Post: sub
  PVRX2 Plugin in Config all psycik 7 2,360 2007-08-18, 03:29 AM
Last Post: sub

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

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

Linear Mode
Threaded Mode