-
Notifications
You must be signed in to change notification settings - Fork 1
/
GoogleMusic.addin.xml
75 lines (59 loc) · 2.82 KB
/
GoogleMusic.addin.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
<?xml version="1.0" encoding="utf-8"?>
<Addin
id="Banshee.GoogleMusic"
version="1.0"
compatVersion="1.0"
copyright="Copyright © 2012 Maurus Cuelenaere. Licensed under the MIT X11 license."
name="Google Music"
category="Community Extensions"
description="Describe your extension, ideally starting with an action verb. Keep it brief and avoid tech jargon."
author="Maurus Cuelenaere"
url="http://banshee-project.org/"
defaultEnabled="false">
<Localizer type="Gettext" catalog="banshee-community-extensions" location="../../../share/locale"/>
<Dependencies>
<Addin id="Banshee.Core" version="1.0"/>
<Addin id="Banshee.Services" version="1.0"/>
</Dependencies>
<!-- Extensions are loaded by Banshee via Mono.Addins by extending a
particular ExtensionPoint.
There is a very general ExtensionPoint called
/Banshee/ServiceManager/Service, and there are several much more
specific ones. A Service extension will be instantiated when Banshee
starts, and can do whatever it wants with the Banshee API. Where an
ImportSource extension will be loaded when the user opens the Import
Dialog.
Here is an example of how to define an extension point:
<Extension path="ExtensionPointPath">
<ExtensionPointType class="Banshee.EXTENSION-NAME.EXTENSION-NAMEExtensionPointType"/>
</Extension>
An extension must have one or more such definitions.
Here are the ExtensionPoints in Banshee:
Path: /Banshee/ServiceManager/Service
Type: Service
Desc: General purpose, run any code, instantiated at startup
Path: /Banshee/SourceManager/Source
Type: Source
Desc: Create a Source in the source list
Path: /Banshee/Library/ImportSource
Type: ImportSource
Desc: Add an entry to the Import Dialog dropdown.
Path: /Banshee/Gui/TrackEditor/NotebookPage
Type: TrackEditorPage
Desc: Add a tab ("page") to the Edit Track Information or Properties
dialogs.
Path: /Banshee/Gui/TrackEditor/Modifier
Type: Modifier
Desc: Defines an extension for the track editor that can modify it in
some way.
Path: /Banshee/ThickClient/ContextPane
Type: ContextPage
Desc: Defines a new GTK+ context page, for showing contextual
information beneath the main track source view.
There are quite a few other ExtensionPoints, but they are mostly related to
providing platform-specific backends for hardware integration and the like.
-->
<Extension path="/Banshee/SourceManager/Source">
<Source class="Banshee.GoogleMusic.MusicSource"/>
</Extension>
</Addin>