aboutsummaryrefslogtreecommitdiff
path: root/tests/arctica-greeter.vala
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-09-19 12:40:42 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2015-09-19 14:09:00 +0200
commitf84be4fd25f04e122f8a68f9ce4f9dc4daead118 (patch)
tree2e13382565a48f4a2ef8db3a819289f5f2913ce5 /tests/arctica-greeter.vala
parenta2072d8ce51bea5c9523c2ea7fb9a3cdc7ca33c1 (diff)
downloadarctica-greeter-f84be4fd25f04e122f8a68f9ce4f9dc4daead118.tar.gz
arctica-greeter-f84be4fd25f04e122f8a68f9ce4f9dc4daead118.tar.bz2
arctica-greeter-f84be4fd25f04e122f8a68f9ce4f9dc4daead118.zip
fork unity-greeter as arctica-greeter
Diffstat (limited to 'tests/arctica-greeter.vala')
-rw-r--r--tests/arctica-greeter.vala129
1 files changed, 129 insertions, 0 deletions
diff --git a/tests/arctica-greeter.vala b/tests/arctica-greeter.vala
new file mode 100644
index 0000000..2a6581b
--- /dev/null
+++ b/tests/arctica-greeter.vala
@@ -0,0 +1,129 @@
+/* -*- Mode: Vala; indent-tabs-mode: nil; tab-width: 4 -*-
+ *
+ * Copyright (C) 2011 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/>.
+ *
+ * Authored by: Robert Ancell <robert.ancell@canonical.com>
+ */
+
+public const int grid_size = 40;
+
+public class ArcticaGreeter
+{
+ public static ArcticaGreeter singleton;
+
+ public signal void show_message (string text, LightDM.MessageType type);
+ public signal void show_prompt (string text, LightDM.PromptType type);
+ public signal void authentication_complete ();
+
+ public bool test_mode = false;
+ public bool session_started = false;
+ public string last_respond_response;
+ public bool orca_needs_kick;
+
+ public bool is_authenticated ()
+ {
+ return false;
+ }
+
+ public void authenticate (string? userid = null)
+ {
+ }
+
+ public void authenticate_as_guest ()
+ {
+ }
+
+ public void authenticate_remote (string? session, string? userid)
+ {
+ }
+
+ public void cancel_authentication ()
+ {
+ }
+
+ public void respond (string response)
+ {
+ last_respond_response = response;
+ }
+
+ public string authentication_user ()
+ {
+ return "";
+ }
+
+ public string default_session_hint ()
+ {
+ return "";
+ }
+
+ public string select_user_hint ()
+ {
+ return "";
+ }
+
+ public bool _show_manual_login_hint = true;
+ public bool show_manual_login_hint ()
+ {
+ return _show_manual_login_hint;
+ }
+
+ public bool _show_remote_login_hint = true;
+ public bool show_remote_login_hint ()
+ {
+ return _show_remote_login_hint;
+ }
+
+ public bool _hide_users_hint = false;
+ public bool hide_users_hint ()
+ {
+ return _hide_users_hint;
+ }
+
+ public bool _has_guest_account_hint = true;
+ public bool has_guest_account_hint ()
+ {
+ return _has_guest_account_hint;
+ }
+
+ public bool start_session (string? session, Background bg)
+ {
+ session_started = true;
+ return true;
+ }
+
+ public void push_list (GreeterList widget)
+ {
+ }
+
+ public void pop_list ()
+ {
+ }
+
+ public string? get_state (string key)
+ {
+ return null;
+ }
+
+ public void set_state (string key, string value)
+ {
+ }
+
+ public static void add_style_class (Gtk.Widget widget)
+ {
+ /* Add style context class lightdm-user-list */
+ var ctx = widget.get_style_context ();
+ ctx.add_class ("lightdm");
+ }
+}