diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-03-22 06:39:17 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-03-22 06:39:17 +0100 |
commit | 3253d99365813f2d2ffd05e10cbb8c11f53d746e (patch) | |
tree | 0ab6f04d9051dc4ada1c4f977a01308227767234 /src/plugins/PublishingInterfaces.vala | |
parent | e69c1b746d63bf794316669471474ab57c8cd40a (diff) |
New upstream version 0.26.0upstream/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); +} + } |