NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 37 38 39 40 41 … 93 Next »
Start Menu Shortcut & config.xml

 
  • 0 Vote(s) - 0 Average
Start Menu Shortcut & config.xml
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#1
2007-12-18, 11:36 PM
OK, forgive me if these have already been covered, but "start menu" and "config.xml" are not especially rare terms.

So - two questions, guess both for you sub:

First. My plugin has an external exe for a long-running process that is inappropriate to perform inside the config application. I would like to provide a a shortcut to this .exe on the start menu, ideally under "Programs | GB-PVR | Third Party | name".

I'm hoping the "Third Party" will be sufficient to let users know that what follows is not part of the base GB-PVR installation, and, as such, is not your problem, but I would like to clear it with you first. Creating its own folder under programs is an option of course, but as a GB-PVR plugin, it makes more sense to me to keep it all together.

Second. If a plugin makes changes to config.xml (under the appropriate <PluginSettings> node), will the changes be kept, or am I risking them being overwritten? (Hmm, I suppose I could just try it and find out...)
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#2
2007-12-18, 11:46 PM
Ommina Wrote:First. My plugin has an external exe for a long-running process that is inappropriate to perform inside the config application. I would like to provide a a shortcut to this .exe on the start menu, ideally under "Programs | GB-PVR | Third Party | name".

I'm hoping the "Third Party" will be sufficient to let users know that what follows is not part of the base GB-PVR installation, and, as such, is not your problem, but I would like to clear it with you first. Creating its own folder under programs is an option of course, but as a GB-PVR plugin, it makes more sense to me to keep it all together.
I've got no objections to you creating the shortcuts there.

Quote:Second. If a plugin makes changes to config.xml (under the appropriate <PluginSettings> node), will the changes be kept, or am I risking them being overwritten? (Hmm, I suppose I could just try it and find out...)
It does try to retain these settings during upgrades.
Ommina
Offline

Senior Member

Posts: 330
Threads: 39
Joined: Feb 2006
#3
2007-12-19, 10:38 PM
sub Wrote:I've got no objections to you creating the shortcuts there.

Thanks - then I shall! (In fact, have.)

sub Wrote:It does try to retain these settings during upgrades.

I'm more concerned with day-to-day operations.

Essentially, I want to maintain some user state information between restarts of GB-PVR. In my case, a single entry in the config.xml file is sufficient. But I don't know what kind of behaviour to expect from the config.xml between the time I make my change, and the user exiting the PVR. In short, if I, inside the plugin, make a change in 'my' section of <PluginSettings>, am I risking that change being overwritten later?

I did try the XmlDocument returned by pluginhelper.GetDocument, thinking it might work like the document provided to the config form, but didn't have much luck. (Or I missed a step.)

Would I be better off just creating a table in (my plugin's) db3 and store it there?
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,807
Threads: 769
Joined: Nov 2003
#4
2007-12-19, 11:05 PM
Ommina Wrote:Essentially, I want to maintain some user state information between restarts of GB-PVR. In my case, a single entry in the config.xml file is sufficient. But I don't know what kind of behaviour to expect from the config.xml between the time I make my change, and the user exiting the PVR. In short, if I, inside the plugin, make a change in 'my' section of <PluginSettings>, am I risking that change being overwritten later?
I'd only use the config.xml for storing configuration, not state related stuff. Your plugin should treat the config.xml as read only except when accessed via a configuration form in the config app.

You should store state in the registry or a file or a database.

Quote:I did try the XmlDocument returned by pluginhelper.GetDocument, thinking it might work like the document provided to the config form, but didn't have much luck. (Or I missed a step.)
PluginHelperFactory.GetInstance().GetConfiguration() should return you the XmlDocument holding config.xml.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  API channel.stream.start mvallevand 2 1,465 2023-05-07, 09:40 PM
Last Post: mvallevand
  Plugins and NPVR. Where do we start? sub 80 70,203 2020-11-26, 10:02 PM
Last Post: mandai
  I want to start developing plugins...but how? OrenShapir 6 4,180 2014-11-18, 10:38 PM
Last Post: mvallevand
  Absolute newbie trying to realize an idea - where to start? Oopsjoppe 13 5,823 2013-11-11, 05:33 PM
Last Post: Oopsjoppe
  NMT Video Playback - does it receive start/stop events psycik 8 3,551 2012-07-15, 10:01 PM
Last Post: mvallevand
  Settings config screen for class IEventNotification plugin imilne 9 3,681 2011-09-17, 06:06 PM
Last Post: sub
  Add another element to the horizontal main menu Northpole 7 3,021 2011-08-25, 06:18 PM
Last Post: imilne
  config.xml & unvisible steeb 9 3,211 2011-06-19, 12:16 AM
Last Post: steeb
  Calling NextPVR restart after config.xml changes steeb 33 10,834 2011-05-02, 04:24 PM
Last Post: steeb
  Activate "Hidden" menu mvallevand 2 1,652 2011-02-02, 11:24 PM
Last Post: mvallevand

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

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

Linear Mode
Threaded Mode