NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 48 49 50 51 52 … 93 Next »
ISettings example?

 
  • 0 Vote(s) - 0 Average
ISettings example?
Carlito
Offline

Posting Freak

Posts: 817
Threads: 41
Joined: May 2006
#1
2006-10-24, 05:28 PM
Can anyone point me in the right direction for implementing the ISettings interface. I get my values to show up, and I can change to one of the possible values, but it never saves the value.
I have been unable to find any examples of other plugins using this interface, so if someone could push me in the right direction I would really appreciate it.
Thanks in advance
----------------------
[SIZE="1"]PVRX2 1.3.11
Shuttle SG33G5 Case
Core2Duo E8400 3Ghz -- 4 GB RAM
Hauppauge PVR-150
Adaptec AVC-3610 Dual Tuner
Onboard Intel GMA 3100 through HDMI -- 500GB
37" Westinghouse LCD (1920 x 1080p)

Projects
Program Image Tool[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,671
Threads: 767
Joined: Nov 2003
#2
2006-10-24, 06:12 PM
Its relatively new, so I'm not aware of any samples showing its use yet.

After the user has changed a the setting, setSetting() will be called with the new value. Soon after that save() will be called, at which time you should save the setting to where ever you store them - if you store them in the config.xml, then call IPluginHelper.GetConfiguration() to the XmlDocument, and update the appropriate nodes.
Carlito
Offline

Posting Freak

Posts: 817
Threads: 41
Joined: May 2006
#3
2006-10-24, 06:22 PM
Thanks sub,
I seem to have it now. Apparently it was saving but if I went back to the Main Menu then back to settings it was still the old value.
If i exited gbpvr completly and restarted it wold load the new setting from config.
Using the GetConfiguration to get the config document on getSettings() seemed to fix it.
Not sure why it wasn't reloading in the first place though.
----------------------
[SIZE="1"]PVRX2 1.3.11
Shuttle SG33G5 Case
Core2Duo E8400 3Ghz -- 4 GB RAM
Hauppauge PVR-150
Adaptec AVC-3610 Dual Tuner
Onboard Intel GMA 3100 through HDMI -- 500GB
37" Westinghouse LCD (1920 x 1080p)

Projects
Program Image Tool[/SIZE]
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,671
Threads: 767
Joined: Nov 2003
#4
2006-10-24, 06:25 PM
Quote:Not sure why it wasn't reloading in the first place though.
GB-PVR caches the XmlDocument, and wouldnt have been aware if you'd saved it outside of this.
Carlito
Offline

Posting Freak

Posts: 817
Threads: 41
Joined: May 2006
#5
2006-10-24, 06:31 PM
Ahh, makes perfect sense...
Thanks again!
----------------------
[SIZE="1"]PVRX2 1.3.11
Shuttle SG33G5 Case
Core2Duo E8400 3Ghz -- 4 GB RAM
Hauppauge PVR-150
Adaptec AVC-3610 Dual Tuner
Onboard Intel GMA 3100 through HDMI -- 500GB
37" Westinghouse LCD (1920 x 1080p)

Projects
Program Image Tool[/SIZE]
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  ISettings, SettingString....settings psycik 1 1,475 2006-05-06, 09:16 PM
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