Implement the new designed interface for fingerprint enrollment, so that the dialog is now based on a stack of views: - A list of devices to choose (shown only if multiple are available) - A gallery of enrolled prints available where manage them - An enrollment progress view when enrolling a new finger Move part of the logic into a new FingerprintManager (to manage gdbus proxies generated via gdbus-codegen) that is created when configuring the current user and that tracks the devices states, while move most of the UI into a new CcFingerprintDialog that does all the operations in async way. Due to fprintd lack of APIs, there are few features missing, compared to the final design (none is a regression): - Identify the finger when the enroll dialog is visible - Delete a single fingerprint - Highlight the finger when the sensor is touched during enrollment - Add customized labels to fingerprints - Devices hotpluging However most of the code has been written considering these, and so they could be easily implemented in future re-iterations once newer APIs are defined for such bits. Closes https://gitlab.gnome.org/Teams/Design/settings-mockups/-/issues/18
37 lines
1.2 KiB
C
37 lines
1.2 KiB
C
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
|
|
*
|
|
* Copyright (C) 2020 Canonical Ltd.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* 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/>.
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*
|
|
* Authors: Marco Trevisan <marco.trevisan@canonical.com>
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <gtk/gtk.h>
|
|
#include "cc-fingerprint-manager.h"
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
#define CC_TYPE_FINGERPRINT_DIALOG (cc_fingerprint_dialog_get_type ())
|
|
|
|
G_DECLARE_FINAL_TYPE (CcFingerprintDialog, cc_fingerprint_dialog,
|
|
CC, FINGERPRINT_DIALOG, GtkWindow)
|
|
|
|
CcFingerprintDialog *cc_fingerprint_dialog_new (CcFingerprintManager *manager);
|
|
|
|
G_END_DECLS
|