File indexing completed on 2024-05-05 17:43:12
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_BACKEND_CHOOSER_WIDGET_H 0008 #define PLASMAVAULT_KDED_UI_BACKEND_CHOOSER_WIDGET_H 0009 0010 #include "dialogdsl.h" 0011 0012 class BackendChooserWidget : public DialogDsl::DialogModule 0013 { 0014 Q_OBJECT 0015 0016 public: 0017 BackendChooserWidget(); 0018 ~BackendChooserWidget() override; 0019 0020 void addItem(const QByteArray &id, const QString &title, int priority); 0021 0022 PlasmaVault::Vault::Payload fields() const override; 0023 0024 void checkBackendAvailable(); 0025 0026 private Q_SLOTS: 0027 void checkCurrentBackend(); 0028 void showBackendSelector(); 0029 0030 private: 0031 class Private; 0032 QScopedPointer<Private> d; 0033 }; 0034 0035 #endif // include guard