First steps on how to write extensions?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

First steps on how to write extensions?

Ackbar
Hiya! I had an idea for an extension (namely, song labeling a la amaroK) but I have no idea on how to do it (I mean, I know how to code but not how to code a plugin for Banshee), so I would appreciate any directions, howtos, tutorials, or whatever to get me started.

Thanks a lot!
Reply | Threaded
Open this post in threaded view
|

Re: First steps on how to write extensions?

Sandy Armstrong
On Wed, Jun 11, 2008 at 1:14 PM, Ackbar <[hidden email]> wrote:
>
> Hiya! I had an idea for an extension (namely, song labeling a la amaroK) but
> I have no idea on how to do it (I mean, I know how to code but not how to
> code a plugin for Banshee), so I would appreciate any directions, howtos,
> tutorials, or whatever to get me started.

I don't think the new APIs are documented yet, so probably your best
documentation is reading the code of the many extensions provided with
Banshee (and the third-party ones that are starting to appear).  Maybe
some other extension developers on this list have helpful tips, too.

Sandy
_______________________________________________
Banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list
Reply | Threaded
Open this post in threaded view
|

Re: First steps on how to write extensions?

Bertrand Lorentz
Administrator
On Wed, 2008-06-11 at 14:08 -0700, Sandy Armstrong wrote:

> On Wed, Jun 11, 2008 at 1:14 PM, Ackbar <[hidden email]> wrote:
> >
> > Hiya! I had an idea for an extension (namely, song labeling a la amaroK) but
> > I have no idea on how to do it (I mean, I know how to code but not how to
> > code a plugin for Banshee), so I would appreciate any directions, howtos,
> > tutorials, or whatever to get me started.
>
> I don't think the new APIs are documented yet, so probably your best
> documentation is reading the code of the many extensions provided with
> Banshee (and the third-party ones that are starting to appear).  Maybe
> some other extension developers on this list have helpful tips, too.
If you need an example on how to setup the build system (autotools) of
an external extension, you can have look at the code of the alarm clock
extension (the other extensions have not been ported to banshee 1.0) :
http://code.google.com/p/banshee-unofficial-plugins/

You can also have a look at the mono-addins documentation :
http://www.mono-project.com/Mono.Addins

I don't know amaroK and the feature you're refering to, so I can't give
you any directions for that.

If you have any specific question, I'll try to answer it !

Have fun !

--
Bertrand Lorentz <[hidden email]>
> http://flickr.com/photos/bl8/ <

_______________________________________________
Banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list

signature.asc (204 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: First steps on how to write extensions?

Ackbar
Bertrand Lorentz wrote
I don't know amaroK and the feature you're refering to, so I can't give
you any directions for that.

If you have any specific question, I'll try to answer it !

Have fun !
Truth is, I don't know it that much, only what my friends have told me (and that's what motivated me to try to implement it). It looks like a system to "tag" songs with the keywords you like. For example, you may wanna label all the songs which appear in a movie soundtrack with that movie's title. Or mark all the songs which share its name with a Magic the Gathering card (true story, one of my friends did it :)

I think all it would take is a simple extra table in Banshee's database and some functions to add, retrieve and delete those labels.

I'll take a look at the code available until the docs are updated, then. I hope not to be overwhelmed, it's the first time I do something like this.

Thanks for your help!
Reply | Threaded
Open this post in threaded view
|

Re: First steps on how to write extensions?

Gabriel Burt
On Wed, Jun 11, 2008 at 5:39 PM, Ackbar <[hidden email]> wrote:
> Truth is, I don't know it that much, only what my friends have told me (and
> that's what motivated me to try to implement it). It looks like a system to
> "tag" songs with the keywords you like. For example, you may wanna label all
> the songs which appear in a movie soundtrack with that movie's title. Or
> mark all the songs which share its name with a Magic the Gathering card
> (true story, one of my friends did it :)

Yeah, tagging would be great.  CC yourself and submit any patches to
http://bugzilla.gnome.org/show_bug.cgi?id=525690

> I think all it would take is a simple extra table in Banshee's database and
> some functions to add, retrieve and delete those labels.

Yeah, pretty much.

> I'll take a look at the code available until the docs are updated, then. I
> hope not to be overwhelmed, it's the first time I do something like this.

I'd really suggest using MonoDevelop so you can mouse over variables
and classes to see where they come from, and you can right click on
them to jump-to-declaration, etc.  And it tells you what
methods/properties objects have as you type.

Gabriel
_______________________________________________
Banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list
Reply | Threaded
Open this post in threaded view
|

Re: First steps on how to write extensions?

LCID Fire
In reply to this post by Ackbar
Ackbar wrote:

> Truth is, I don't know it that much, only what my friends have told me (and
> that's what motivated me to try to implement it). It looks like a system to
> "tag" songs with the keywords you like. For example, you may wanna label all
> the songs which appear in a movie soundtrack with that movie's title. Or
> mark all the songs which share its name with a Magic the Gathering card
> (true story, one of my friends did it :)
>
> I think all it would take is a simple extra table in Banshee's database and
> some functions to add, retrieve and delete those labels.
>
> I'll take a look at the code available until the docs are updated, then. I
> hope not to be overwhelmed, it's the first time I do something like this.
>
> Thanks for your help!
I'm already on such a thing - I'll give an overview next week.

Regards
Andreas

_______________________________________________
Banshee-list mailing list
[hidden email]
http://mail.gnome.org/mailman/listinfo/banshee-list