Commit 74e259dc authored by Lucas Beeler's avatar Lucas Beeler

Migrates the YouTube connector to the new pluggable, publishing API.

parent afc218e7
...@@ -77,7 +77,6 @@ UNUNITIZED_SRC_FILES = \ ...@@ -77,7 +77,6 @@ UNUNITIZED_SRC_FILES = \
Tag.vala \ Tag.vala \
TagPage.vala \ TagPage.vala \
PiwigoConnector.vala \ PiwigoConnector.vala \
YouTubeConnector.vala \
Screensaver.vala \ Screensaver.vala \
MimicManager.vala \ MimicManager.vala \
TrashPage.vala \ TrashPage.vala \
......
...@@ -14,6 +14,7 @@ SRC_FILES := \ ...@@ -14,6 +14,7 @@ SRC_FILES := \
FacebookPublishing.vala \ FacebookPublishing.vala \
PicasaPublishing.vala \ PicasaPublishing.vala \
FlickrPublishing.vala \ FlickrPublishing.vala \
YouTubePublishing.vala \
RESTSupport.vala RESTSupport.vala
include ../Makefile.plugin.mk include ../Makefile.plugin.mk
......
...@@ -14,6 +14,7 @@ private class ShotwellPublishingCoreServices : Object, Spit.Module { ...@@ -14,6 +14,7 @@ private class ShotwellPublishingCoreServices : Object, Spit.Module {
pluggables += new FacebookService(); pluggables += new FacebookService();
pluggables += new PicasaService(); pluggables += new PicasaService();
pluggables += new FlickrService(); pluggables += new FlickrService();
pluggables += new YouTubeService();
} }
~ShotwellPublishingCoreServices() { ~ShotwellPublishingCoreServices() {
......
...@@ -1248,7 +1248,6 @@ public class ServiceFactory { ...@@ -1248,7 +1248,6 @@ public class ServiceFactory {
caps_map.clear(); caps_map.clear();
add_caps(new YandexConnector.Capabilities()); add_caps(new YandexConnector.Capabilities());
add_caps(new YouTubeConnector.Capabilities());
add_caps(new PiwigoConnector.Capabilities()); add_caps(new PiwigoConnector.Capabilities());
// in addition to the baked-in services above, add services dynamically loaded from // in addition to the baked-in services above, add services dynamically loaded from
......
...@@ -31,6 +31,9 @@ public class StandardHostInterface : Object, Spit.HostInterface { ...@@ -31,6 +31,9 @@ public class StandardHostInterface : Object, Spit.HostInterface {
case "org.yorba.shotwell.publishing.flickr": case "org.yorba.shotwell.publishing.flickr":
return "flickr"; return "flickr";
case "org.yorba.shotwell.publishing.youtube":
return "youtube";
default: default:
return id; return id;
......
...@@ -11,6 +11,7 @@ public void init() throws Error { ...@@ -11,6 +11,7 @@ public void init() throws Error {
core_ids += "org.yorba.shotwell.publishing.facebook"; core_ids += "org.yorba.shotwell.publishing.facebook";
core_ids += "org.yorba.shotwell.publishing.picasa"; core_ids += "org.yorba.shotwell.publishing.picasa";
core_ids += "org.yorba.shotwell.publishing.flickr"; core_ids += "org.yorba.shotwell.publishing.flickr";
core_ids += "org.yorba.shotwell.publishing.youtube";
Plugins.register_extension_point(typeof(Spit.Publishing.Service), _("Publishing"), Plugins.register_extension_point(typeof(Spit.Publishing.Service), _("Publishing"),
Resources.PUBLISH, core_ids); Resources.PUBLISH, core_ids);
......
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