File indexing completed on 2024-05-12 04:58:19

0001 /* ============================================================
0002 * Falkon - Qt web browser
0003 * Copyright (C) 2010-2016  David Rosca <nowrep@gmail.com>
0004 *
0005 * This program is free software: you can redistribute it and/or modify
0006 * it under the terms of the GNU General Public License as published by
0007 * the Free Software Foundation, either version 3 of the License, or
0008 * (at your option) any later version.
0009 *
0010 * This program is distributed in the hope that it will be useful,
0011 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0012 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
0013 * GNU General Public License for more details.
0014 *
0015 * You should have received a copy of the GNU General Public License
0016 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
0017 * ============================================================ */
0018 #ifndef AUTOFILLMANAGER_H
0019 #define AUTOFILLMANAGER_H
0020 
0021 #include <QWidget>
0022 
0023 #include "qzcommon.h"
0024 
0025 class PasswordManager;
0026 
0027 namespace Ui
0028 {
0029 class AutoFillManager;
0030 }
0031 
0032 class FALKON_EXPORT AutoFillManager : public QWidget
0033 {
0034     Q_OBJECT
0035 
0036 public:
0037     explicit AutoFillManager(QWidget* parent = nullptr);
0038     ~AutoFillManager();
0039 
0040     void showExceptions();
0041 
0042 private Q_SLOTS:
0043     void loadPasswords();
0044     void changePasswordBackend();
0045     void showBackendOptions();
0046 
0047     void removePass();
0048     void removeAllPass();
0049     void editPass();
0050     void showPasswords();
0051 
0052     void copyPassword();
0053     void copyUsername();
0054 
0055     void removeExcept();
0056     void removeAllExcept();
0057 
0058     void importPasswords();
0059     void exportPasswords();
0060 
0061     void slotImportPasswords();
0062     void slotExportPasswords();
0063 
0064     void currentPasswordBackendChanged();
0065     void passwordContextMenu(const QPoint &pos);
0066 
0067 private:
0068     Ui::AutoFillManager* ui;
0069 
0070     PasswordManager* m_passwordManager;
0071     QString m_fileName;
0072     bool m_passwordsShown;
0073 };
0074 
0075 #endif // AUTOFILLMANAGER_H