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 06-22-2010, 08:44 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
GetPluginConfigType() v. plugin.getConfigType()

I've just noticed that where plugin.getConfigType() returns an int (logically an enum), GetPluginConfigType() returns a String. So apparently there's some internal translation going on between the integer values generated by the plugin itself and the string values returned by the PluginAPI.

Is there a story behind this apparent inconsistency? Why not just pass through the integer values unaltered and let the config code in the STV deal with them as integers, like this:

Code:
If GetPluginConfigType(Plugin, SettingName)
  > sage_SageTVPlugin_CONFIG_BOOL
  > sage_SageTVPlugin_CONFIG_INTEGER
  > sage_SageTVPlugin_CONFIG_TEXT
  ...
instead of this:

Code:
If GetPluginConfigType(Plugin, SettingName)
  > "Boolean"
  > "Integer"
  > "Text"
  ...
__________________
-- Greg
Reply With Quote
  #2  
Old 06-23-2010, 01:04 AM
ehanekla ehanekla is offline
Sage Advanced User
 
Join Date: Jul 2007
Location: Niedersachsen, Germany
Posts: 91
Are you doing what I think you do?!?
__________________

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
Plugin: MizookLCD (Alternate SageTV LCDSmartie Plugin) cslatt SageTV Customizations 48 06-11-2012 10:44 AM
MediaPlayer Plugin/STV Import: Winamp Media Player Plugin deria SageTV Customizations 447 12-11-2010 07:38 PM
Plugin Manager: Configure plugin medwynd SageTV Beta Test Software 0 05-29-2010 08:43 AM
Hulu: Possible to Use XBMC Hulu Plugin to create SageTV Plugin? Brent SageTV Customizations 8 02-24-2009 04:16 PM


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


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