File indexing completed on 2024-05-19 05:37:28
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_NAME_CHOOSER_WIDGET_H 0008 #define PLASMAVAULT_KDED_UI_NAME_CHOOSER_WIDGET_H 0009 0010 #include "dialogdsl.h" 0011 0012 class NameChooserWidget : public DialogDsl::DialogModule 0013 { 0014 Q_OBJECT 0015 0016 public: 0017 NameChooserWidget(); 0018 ~NameChooserWidget() override; 0019 0020 PlasmaVault::Vault::Payload fields() const override; 0021 void init(const PlasmaVault::Vault::Payload &payload) override; 0022 0023 private: 0024 class Private; 0025 QScopedPointer<Private> d; 0026 }; 0027 0028 inline DialogDsl::ModuleFactory nameChooser() 0029 { 0030 return [=] { 0031 return new NameChooserWidget(); 0032 }; 0033 } 0034 0035 #endif // include guard