[Freevo-devel] Re: sqlite plugin...

2003-07-09 Thread Dirk Meyer
Aubin Paul wrote:
 On Tue, Jul 08, 2003 at 05:33:17PM +0200, Dirk Meyer wrote:
 This makes sense and remonds me that we may need a plugin that is more
 than one type of plugin and a way to add/remove plugins at runtime. 

 Hmm... but will the plugin which intercepts the event have access to
 the filename (or more generally, self.item?)

No, but Events can have arguments. The AUDIO_PLAY_END Event could add
the item as it's parameter and the plugin has everything needed. But
please don't return TRUE in the eventhandler, because when one
eventhandler returns TRUE, the event won't be passed to the next
handler.

Dischi

-- 
++?++ Out of Cheese Error. Redo From Start.
-- (Terry Pratchett, Interesting Times)


---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] Re: sqlite plugin...

2003-07-09 Thread Aubin Paul
The only thing I don't get is how the module will work; do I just make
a normal plugin and then register it via local_conf? I also need to
add an EVENT() line to local_conf right?

I'll try it out.

Aubin

On Wed, Jul 09, 2003 at 11:26:37AM +0200, Dirk Meyer wrote:
 Aubin Paul wrote:
  On Tue, Jul 08, 2003 at 05:33:17PM +0200, Dirk Meyer wrote:
  This makes sense and remonds me that we may need a plugin that is more
  than one type of plugin and a way to add/remove plugins at runtime. 
 
  Hmm... but will the plugin which intercepts the event have access to
  the filename (or more generally, self.item?)
 
 No, but Events can have arguments. The AUDIO_PLAY_END Event could add
 the item as it's parameter and the plugin has everything needed. But
 please don't return TRUE in the eventhandler, because when one
 eventhandler returns TRUE, the event won't be passed to the next
 handler.
 
 Dischi
 
 -- 
 ++?++ Out of Cheese Error. Redo From Start.
 -- (Terry Pratchett, Interesting Times)


---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] Re: sqlite plugin...

2003-07-08 Thread Dirk Meyer
Aubin Paul wrote:
 Would it make sense for the plugin which increments playcount to
 intercept the 'AUDIO_PLAY_END' event (after a song finishes)? We make
 a plugin which accepts that event and then increments the database
 information...?

This makes sense and remonds me that we may need a plugin that is more
than one type of plugin and a way to add/remove plugins at runtime. 

Dischi

-- 
The Romans didn't find algebra very challenging, because X was always
10.


---
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel


[Freevo-devel] Re: sqlite plugin...

2003-07-08 Thread Aubin Paul
On Tue, Jul 08, 2003 at 05:33:17PM +0200, Dirk Meyer wrote:
 This makes sense and remonds me that we may need a plugin that is more
 than one type of plugin and a way to add/remove plugins at runtime. 

Hmm... but will the plugin which intercepts the event have access to
the filename (or more generally, self.item?)


---
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing  more.
Download  eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
___
Freevo-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-devel