blob: c68510b8978226cc816d6c2d9ef566c2ca341bc5 (
plain)
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
|
/* Copyright 2016 Software Freedom Conservancy Inc.
* Copyright 2019 Jens Georg <mail@jensge.org>
*
* This software is licensed under the GNU LGPL (version 2.1 or later).
* See the COPYING file in this distribution.
*/
namespace Publishing.GooglePhotos {
public class Service : Object, Spit.Pluggable, Spit.Publishing.Service {
public Service() {}
public int get_pluggable_interface(int min_host_interface, int max_host_interface) {
return Spit.negotiate_interfaces(min_host_interface, max_host_interface,
Spit.Publishing.CURRENT_INTERFACE);
}
public unowned string get_id() {
return "org.gnome.shotwell.publishing.google-photos";
}
public unowned string get_pluggable_name() {
return "Google Photos";
}
public Spit.PluggableInfo get_info() {
var info = new Spit.PluggableInfo();
info.authors = "Jens Georg";
info.copyright = _("Copyright 2019 Jens Georg <mail@jensge.org>");
info.icon_name = "google-photos";
return info;
}
public Spit.Publishing.Publisher create_publisher(Spit.Publishing.PluginHost host) {
return new Publishing.GooglePhotos.Publisher(this, host);
}
public Spit.Publishing.Publisher.MediaType get_supported_media() {
return (Spit.Publishing.Publisher.MediaType.PHOTO |
Spit.Publishing.Publisher.MediaType.VIDEO);
}
public void activation(bool enabled) {
}
}
} // namespace GooglePhotos
|