diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-09-19 14:42:19 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2015-09-19 14:42:19 +0200 |
commit | f2b90709061e103ca354e31cf3cdfb45b6803274 (patch) | |
tree | 0ce25e2d9d00d30651d2d5059492f402e418970b /src/remote-logon-service.vala | |
parent | 13e2fba31fc6760b95d2ad3d6bf613c36f32017d (diff) | |
download | arctica-greeter-f2b90709061e103ca354e31cf3cdfb45b6803274.tar.gz arctica-greeter-f2b90709061e103ca354e31cf3cdfb45b6803274.tar.bz2 arctica-greeter-f2b90709061e103ca354e31cf3cdfb45b6803274.zip |
Adapt to using ArcticaProject's remote-logon-service.
Diffstat (limited to 'src/remote-logon-service.vala')
-rw-r--r-- | src/remote-logon-service.vala | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/remote-logon-service.vala b/src/remote-logon-service.vala new file mode 100644 index 0000000..763c558 --- /dev/null +++ b/src/remote-logon-service.vala @@ -0,0 +1,54 @@ +/* -*- Mode: Vala; indent-tabs-mode: nil; tab-width: 4 -*- + * + * Copyright (C) 2012 Canonical Ltd + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 3 as + * published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + */ + +protected struct RemoteServerField +{ + public string type; + public bool required; + public Variant default_value; + public HashTable<string, Variant> properties; +} + +protected struct RemoteServerApplication +{ + public string application_id; + public int pin_position; +} + +protected struct RemoteServer +{ + public string type; + public string name; + public string url; + public bool last_used_server; + public RemoteServerField[] fields; + public RemoteServerApplication[] applications; +} + +[DBus (name = "org.ArticaProject.RemoteLogon")] +interface RemoteLoginService : Object +{ + public abstract async void get_servers (out RemoteServer[] serverList) throws IOError; + public abstract async void get_servers_for_login (string url, string emailAddress, string password, bool allowCache, out bool loginSuccess, out string dataType, out RemoteServer[] serverList) throws IOError; + public abstract async void get_cached_domains_for_server (string url, out string[] domains) throws IOError; + public abstract async void set_last_used_server (string uccsUrl, string serverUrl) throws IOError; + + public signal void servers_updated (RemoteServer[] serverList); + public signal void login_servers_updated (string url, string emailAddress, string dataType, RemoteServer[] serverList); + public signal void login_changed (string url, string emailAddress); +} |