Commit a79c8be8 authored by George Sedov's avatar George Sedov Committed by Debarshi Ray

Introduce org.gnome.OnlineAccounts.Music

This is meant for accounts that can be used to access music. eg.,
Last.fm and VK.

https://bugzilla.gnome.org/show_bug.cgi?id=705969
parent 2c6f5cb8
......@@ -186,6 +186,18 @@
-->
<property name="MapsDisabled" type="b" access="readwrite"/>
<!-- MusicDisabled:
@since: 3.18.0
If %TRUE, the account will not expose any
#org.gnome.OnlineAccounts.Music interface. If the account does not
provide music-like capabilities, this property does nothing.
Note that the #org.gnomeOnlineAccounts.Music interface is added or
removed from the account asynchronously.
-->
<property name="MusicDisabled" type="b" access="readwrite"/>
<!-- PrintersDisabled:
@since: 3.12.0
......@@ -642,6 +654,16 @@
<interface name="org.gnome.OnlineAccounts.Maps">
</interface>
<!--
org.gnome.OnlineAccounts.Music:
@since: 3.18.0
An account object implements this interface if it provides
music-like capabilities.
-->
<interface name="org.gnome.OnlineAccounts.Music">
</interface>
<!--
org.gnome.OnlineAccounts.Photos:
@since: 3.8.0
......
......@@ -122,6 +122,7 @@
<xi:include href="../src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Chat.xml"/>
<xi:include href="../src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Documents.xml"/>
<xi:include href="../src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Maps.xml"/>
<xi:include href="../src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Music.xml"/>
<xi:include href="../src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Photos.xml"/>
<xi:include href="../src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Files.xml"/>
<xi:include href="../src/goa/goa-generated-doc-org.gnome.OnlineAccounts.Exchange.xml"/>
......@@ -150,6 +151,7 @@
<xi:include href="xml/GoaChat.xml"/>
<xi:include href="xml/GoaDocuments.xml"/>
<xi:include href="xml/GoaMaps.xml"/>
<xi:include href="xml/GoaMusic.xml"/>
<xi:include href="xml/GoaPhotos.xml"/>
<xi:include href="xml/GoaFiles.xml"/>
<xi:include href="xml/GoaExchange.xml"/>
......
......@@ -58,6 +58,7 @@ goa_object_get_contacts
goa_object_get_chat
goa_object_get_documents
goa_object_get_maps
goa_object_get_music
goa_object_get_photos
goa_object_get_files
goa_object_get_exchange
......@@ -71,6 +72,7 @@ goa_object_peek_contacts
goa_object_peek_chat
goa_object_peek_documents
goa_object_peek_maps
goa_object_peek_music
goa_object_peek_photos
goa_object_peek_files
goa_object_peek_exchange
......@@ -90,6 +92,7 @@ goa_object_skeleton_set_contacts
goa_object_skeleton_set_chat
goa_object_skeleton_set_documents
goa_object_skeleton_set_maps
goa_object_skeleton_set_music
goa_object_skeleton_set_photos
goa_object_skeleton_set_files
goa_object_skeleton_set_exchange
......@@ -159,6 +162,8 @@ goa_account_get_documents_disabled
goa_account_set_documents_disabled
goa_account_get_maps_disabled
goa_account_set_maps_disabled
goa_account_get_music_disabled
goa_account_set_music_disabled
goa_account_get_photos_disabled
goa_account_set_photos_disabled
goa_account_get_files_disabled
......@@ -897,6 +902,47 @@ goa_maps_proxy_get_type
goa_maps_skeleton_get_type
</SECTION>
<SECTION>
<FILE>GoaMusic</FILE>
GoaMusic
GoaMusicIface
goa_music_interface_info
goa_music_override_properties
GoaMusicProxy
GoaMusicProxyClass
goa_music_proxy_new
goa_music_proxy_new_finish
goa_music_proxy_new_sync
goa_music_proxy_new_for_bus
goa_music_proxy_new_for_bus_finish
goa_music_proxy_new_for_bus_sync
GoaMusicSkeleton
GoaMusicSkeletonClass
goa_music_skeleton_new
<SUBSECTION Standard>
GOA_TYPE_MUSIC
GOA_IS_MUSIC
GOA_MUSIC
GOA_MUSIC_GET_IFACE
GOA_TYPE_MUSIC_PROXY
GOA_IS_MUSIC_PROXY
GOA_IS_MUSIC_PROXY_CLASS
GOA_MUSIC_PROXY
GOA_MUSIC_PROXY_CLASS
GOA_MUSIC_PROXY_GET_CLASS
GOA_TYPE_MUSIC_SKELETON
GOA_IS_MUSIC_SKELETON
GOA_IS_MUSIC_SKELETON_CLASS
GOA_MUSIC_SKELETON
GOA_MUSIC_SKELETON_CLASS
GOA_MUSIC_SKELETON_GET_CLASS
GoaMusicProxyPrivate
GoaMusicSkeletonPrivate
goa_music_get_type
goa_music_proxy_get_type
goa_music_skeleton_get_type
</SECTION>
<SECTION>
<FILE>GoaPhotos</FILE>
GoaPhotos
......
......@@ -36,6 +36,9 @@ goa_documents_skeleton_get_type
goa_maps_get_type
goa_maps_proxy_get_type
goa_maps_skeleton_get_type
goa_music_get_type
goa_music_proxy_get_type
goa_music_skeleton_get_type
goa_photos_get_type
goa_photos_proxy_get_type
goa_photos_skeleton_get_type
......
......@@ -70,6 +70,7 @@ typedef enum
* @GOA_PROVIDER_FEATURE_READ_LATER: Read later services (eg. Pocket).
* @GOA_PROVIDER_FEATURE_PRINTERS: Network printing services (e.g. Google Cloud Print).
* @GOA_PROVIDER_FEATURE_MAPS: Maps related services (e.g. Foursquare, Facebook).
* @GOA_PROVIDER_FEATURE_MUSIC: Music related services (e.g. Vkontakte).
* @GOA_PROVIDER_FEATURE_INVALID: Used for error handling. No provider
* should provide this feature.
*
......@@ -94,6 +95,7 @@ typedef enum /*< flags >*/
GOA_PROVIDER_FEATURE_READ_LATER= 1 << 10,
GOA_PROVIDER_FEATURE_PRINTERS = 1 << 11,
GOA_PROVIDER_FEATURE_MAPS = 1 << 12,
GOA_PROVIDER_FEATURE_MUSIC = 1 << 13,
GOA_PROVIDER_FEATURE_INVALID = 0
} GoaProviderFeatures;
......
......@@ -497,6 +497,11 @@ static struct {
.property = "documents-disabled",
.blurb = N_("_Documents"),
},
{
.feature = GOA_PROVIDER_FEATURE_MUSIC,
.property = "music-disabled",
.blurb = N_("M_usic"),
},
{
.feature = GOA_PROVIDER_FEATURE_PHOTOS,
.property = "photos-disabled",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment