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

0001 /*
0002  *   SPDX-FileCopyrightText: 2017 Ivan Cukic <ivan.cukic (at) kde.org>
0003  *
0004  *   SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted-GPL
0005  */
0006 
0007 #ifndef PLASMAVAULT_KDED_UI_VAULT_DELETION_WIDGET_H
0008 #define PLASMAVAULT_KDED_UI_VAULT_DELETION_WIDGET_H
0009 
0010 #include "dialogdsl.h"
0011 
0012 class VaultDeletionWidget : public DialogDsl::DialogModule
0013 {
0014     Q_OBJECT
0015 
0016 public:
0017     VaultDeletionWidget();
0018 
0019     ~VaultDeletionWidget() override;
0020 
0021     PlasmaVault::Vault::Payload fields() const override;
0022 
0023     void init(const PlasmaVault::Vault::Payload &payload) override;
0024 
0025 private:
0026     class Private;
0027     QScopedPointer<Private> d;
0028 };
0029 
0030 inline DialogDsl::ModuleFactory vaultDeletion()
0031 {
0032     return [=] {
0033         return new VaultDeletionWidget();
0034     };
0035 }
0036 
0037 #endif // include guard