File indexing completed on 2024-05-19 05:55:45
0001 /* 0002 SPDX-FileCopyrightText: 2003 George Staikos <staikos@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef _KWALLETKONFIGURATOR_H 0008 #define _KWALLETKONFIGURATOR_H 0009 #include <KCModule> 0010 #include <KSharedConfig> 0011 #include "ui_walletconfigwidget.h" 0012 #include <KAuth/Action> 0013 0014 class WalletConfigWidget : public QWidget, public Ui::WalletConfigWidget 0015 { 0016 public: 0017 WalletConfigWidget(QWidget *parent) : QWidget(parent) 0018 { 0019 setupUi(this); 0020 } 0021 }; 0022 0023 class KWalletConfig : public KCModule 0024 { 0025 Q_OBJECT 0026 public: 0027 explicit KWalletConfig(QObject *parent, const KPluginMetaData &data); 0028 ~KWalletConfig() override; 0029 0030 void load() override; 0031 void save() override; 0032 void defaults() override; 0033 0034 public Q_SLOTS: 0035 void configChanged(); 0036 void launchManager(); 0037 void newLocalWallet(); 0038 void newNetworkWallet(); 0039 void updateWalletLists(); 0040 void deleteEntry(); 0041 void customContextMenuRequested(const QPoint &pos); 0042 0043 private: 0044 QString newWallet(); 0045 WalletConfigWidget *const _wcw; 0046 KSharedConfig::Ptr _cfg; 0047 }; 0048 0049 #endif