diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-03-22 06:40:44 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-03-22 06:40:44 +0100 |
commit | 8e1c5a834469d804d28ee8ab2cbe2da8e600a789 (patch) | |
tree | b9771456583eaead893cfd8f02e680b58a3da970 /src/plugins/PublishingInterfaces.vala | |
parent | 80a5f2d8b095e895a5424f90b2ce4684d94c1a32 (diff) | |
parent | 3253d99365813f2d2ffd05e10cbb8c11f53d746e (diff) |
Merge tag 'upstream/0.26.0'
Upstream version 0.26.0
Diffstat (limited to 'src/plugins/PublishingInterfaces.vala')
-rw-r--r-- | src/plugins/PublishingInterfaces.vala | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/plugins/PublishingInterfaces.vala b/src/plugins/PublishingInterfaces.vala index 7a8ac40..6518142 100644 --- a/src/plugins/PublishingInterfaces.vala +++ b/src/plugins/PublishingInterfaces.vala @@ -608,5 +608,27 @@ public interface Service : Object, Spit.Pluggable { protected virtual void reserved7() {} } +public interface Authenticator : Object { + public signal void authenticated(); + public signal void authentication_failed(); + + public abstract void authenticate(); + public abstract bool can_logout(); + public abstract void logout(); + public abstract void refresh(); + + public abstract GLib.HashTable<string, Variant> get_authentication_parameter(); +} + +public interface AuthenticatorFactory : Object { + // By contract, every AuthenticatorFactory implementation needs to have a + // static get_instance() method. Unfortunately this is not expressable in + // Vala. + + public abstract Gee.List<string> get_available_authenticators(); + public abstract Authenticator? create(string provider, + Spit.Publishing.PluginHost host); +} + } |