File indexing completed on 2024-05-19 05:55:47
0001 /* 0002 This file is part of the KDE libraries 0003 SPDX-FileCopyrightText: 2013 Valentin Rusu <kde@rusu.info> 0004 0005 SPDX-License-Identifier: LGPL-2.0-or-later 0006 */ 0007 #ifndef KWALLETMANAGERWIDGETITEM_H 0008 #define KWALLETMANAGERWIDGETITEM_H 0009 0010 #include <KPageWidgetModel> 0011 0012 class WalletControlWidget; 0013 class KWalletManagerWidgetItem : public KPageWidgetItem 0014 { 0015 Q_OBJECT 0016 public: 0017 explicit KWalletManagerWidgetItem(QWidget *widgetParent, const QString &walletName); 0018 0019 void updateWalletDisplay(); 0020 const QString &walletName() const 0021 { 0022 return _walletName; 0023 } 0024 bool openWallet(); 0025 bool hasUnsavedChanges() const; 0026 0027 private: 0028 WalletControlWidget *_controlWidget = nullptr; 0029 const QString _walletName; 0030 }; 0031 0032 #endif // KWALLETMANAGERWIDGETITEM_H