2025-02-09 16:16:15 +00:00
|
|
|
/*
|
|
|
|
|
* Deskflow -- mouse and keyboard sharing utility
|
|
|
|
|
* SPDX-FileCopyrightText: (C) 2025 Deskflow Developers
|
|
|
|
|
* SPDX-License-Identifier: GPL-2.0-only WITH LicenseRef-OpenSSL-Exception
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include "net/FingerprintData.h"
|
|
|
|
|
|
|
|
|
|
#include <QDialog>
|
|
|
|
|
#include <QDialogButtonBox>
|
|
|
|
|
|
|
|
|
|
enum FingerprintDialogMode
|
|
|
|
|
{
|
|
|
|
|
Local,
|
2024-11-29 13:19:41 +00:00
|
|
|
Client,
|
|
|
|
|
Server
|
2025-02-09 16:16:15 +00:00
|
|
|
};
|
|
|
|
|
|
2025-02-12 23:05:18 +00:00
|
|
|
class QLabel;
|
|
|
|
|
class FingerprintPreview;
|
|
|
|
|
|
2025-02-09 16:16:15 +00:00
|
|
|
class FingerprintDialog : public QDialog
|
|
|
|
|
{
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
explicit FingerprintDialog(
|
|
|
|
|
QWidget *parent = nullptr, const QList<deskflow::FingerprintData> &fingerprints = {},
|
|
|
|
|
FingerprintDialogMode mode = FingerprintDialogMode::Local
|
|
|
|
|
);
|
2025-02-12 23:05:18 +00:00
|
|
|
~FingerprintDialog() = default;
|
|
|
|
|
|
|
|
|
|
signals:
|
|
|
|
|
void requestLocalPrintsDialog();
|
2025-02-09 16:16:15 +00:00
|
|
|
|
|
|
|
|
private:
|
2025-02-12 23:05:18 +00:00
|
|
|
QLabel *m_lblHeader = nullptr;
|
|
|
|
|
QLabel *m_lblFooter = nullptr;
|
|
|
|
|
FingerprintPreview *m_fingerprintPreview = nullptr;
|
|
|
|
|
QDialogButtonBox *m_buttonBox = nullptr;
|
2025-02-09 16:16:15 +00:00
|
|
|
};
|