SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-11-2010, 09:18 AM
ehanekla ehanekla is offline
Sage Advanced User
 
Join Date: Jul 2007
Location: Niedersachsen, Germany
Posts: 91
Plugin configuration persistence

Hello experts,

I have a question regarding the plugin configuration. Maybe I'm blind but the documentation doesn't clearly say who is in charge of loading and saving the configuration settings to a file (or whatever).

Is is it A:
- Plugin is instantiated
- SageTV Core loads the settings from anywhere and calls "setConfigValue" on the plugin for each setting.

Or is it this way (B):
- Plugin is instantiated and has to read its configuration from a plugin specific mysettings.xml file

Thanks

Eyk
__________________

Clients: HD200, MediaMVP
Capture Cards: Technotrend Budget S-1500 (DVB-S)

STVi for XMLTV icons
Reply With Quote
  #2  
Old 12-11-2010, 12:53 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
It's more like B. The plugin is responsible for persisting its own config settings, and the core doesn't know or care how you do it. If you like you can save settings to a separate file in whatever format suits your needs. Or you can use Get/SetProperty to save settings as text strings in Sage(Client).properties.

There are a couple of different abstract plugin classes that handle some of this work for you. For instance, the XmlConfig class in my Tools Library lets you define your config settings in an XML file or JAR resource, and automatically saves config values to the properties file using property keys you specify.
__________________
-- Greg
Reply With Quote
  #3  
Old 12-12-2010, 06:26 AM
ehanekla ehanekla is offline
Sage Advanced User
 
Join Date: Jul 2007
Location: Niedersachsen, Germany
Posts: 91
Thanks for your answer. I will have a look at your classes.

Eyk
__________________

Clients: HD200, MediaMVP
Capture Cards: Technotrend Budget S-1500 (DVB-S)

STVi for XMLTV icons
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin deria SageTV Customizations 447 12-11-2010 07:38 PM
Standard plugin configuration and event handling - How? hingsten SageTV v7 Customizations 9 07-24-2010 01:27 AM
Plugin Request: Configuration before install PLUCKYHD SageTV Studio 16 07-07-2010 04:43 AM
MyTheatre DVB Network Encoder Plugin - Your working configuration svalmorri Hardware Support 5 09-16-2006 04:59 PM


All times are GMT -6. The time now is 06:06 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.