File indexing completed on 2024-05-05 17:43:13

0001 /*
0002  *   SPDX-FileCopyrightText: 2017 Kees vd Broek <cryptodude@libertymail.net>
0003  *
0004  *   SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 #ifndef MOUNTDIALOG_H
0007 #define MOUNTDIALOG_H
0008 
0009 #include <QDialog>
0010 #include <functional>
0011 
0012 #include "ui_mountdialog.h"
0013 
0014 #include "engine/vault.h"
0015 
0016 class KMessageWidget;
0017 class QAction;
0018 
0019 namespace PlasmaVault
0020 {
0021 class Vault;
0022 }
0023 
0024 class MountDialog : public QDialog
0025 {
0026 public:
0027     MountDialog(PlasmaVault::Vault *vault);
0028 
0029 protected:
0030     void accept() override;
0031 
0032 private:
0033     PlasmaVault::Vault *m_vault;
0034     Ui_MountDialog m_ui;
0035     KMessageWidget *m_errorLabel;
0036     QAction *m_detailsAction;
0037     PlasmaVault::Error m_lastError;
0038 };
0039 
0040 #endif