home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
MediaPortal 1 Plugins
interface for NON-GUI plugins
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Frodo" data-source="post: 2888" data-attributes="member: 10277"><p>Hi,</p><p></p><p>On request i created a (simple) interface for non-gui plugins</p><p>its located in guilib/iplugin.cs and has the following interface</p><p>[code]</p><p>namespace MediaPortal.GUI.Library</p><p>{</p><p> public interface IPlugin</p><p> {</p><p> void Start();</p><p> void Stop();</p><p> }</p><p>}</p><p>[/code]</p><p></p><p>When Mediaportal i starting it will look in the folder <strong>plugins/proces</strong> for dll's implementing this interface. When it finds them the plugin will be loaded and the <strong>Start()</strong> method will be called</p><p>When Mediaportal is stopping the <strong>Stop()</strong> method will be called</p><p></p><p>Furthermore the plugin can/may implement the ISetupForm interface</p><p>to appear in the setup so users can enable/disable the plugin</p><p></p><p>Frodo</p></blockquote><p></p>
[QUOTE="Frodo, post: 2888, member: 10277"] Hi, On request i created a (simple) interface for non-gui plugins its located in guilib/iplugin.cs and has the following interface [code] namespace MediaPortal.GUI.Library { public interface IPlugin { void Start(); void Stop(); } } [/code] When Mediaportal i starting it will look in the folder [b]plugins/proces[/b] for dll's implementing this interface. When it finds them the plugin will be loaded and the [b]Start()[/b] method will be called When Mediaportal is stopping the [b]Stop()[/b] method will be called Furthermore the plugin can/may implement the ISetupForm interface to appear in the setup so users can enable/disable the plugin Frodo [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
interface for NON-GUI plugins
Contact us
RSS
Top
Bottom