From 5d59512ca2e4a36cf6c4f85537c8fa227c44c1dc Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Mon, 30 Nov 2009 16:34:34 +0100 Subject: kde wallet integration. First bits --- src/walletwidget.h | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) create mode 100644 src/walletwidget.h (limited to 'src/walletwidget.h') diff --git a/src/walletwidget.h b/src/walletwidget.h new file mode 100644 index 00000000..e9e6ce87 --- /dev/null +++ b/src/walletwidget.h @@ -0,0 +1,53 @@ +/* ============================================================ +* +* This file is a part of the rekonq project +* +* Copyright (C) 2009 by Andrea Diamantini +* +* +* This program is free software; you can redistribute it and/or +* modify it under the terms of the GNU General Public License as +* published by the Free Software Foundation; either version 2 of +* the License or (at your option) version 3 or any later version +* accepted by the membership of KDE e.V. (or its successor approved +* by the membership of KDE e.V.), which shall act as a proxy +* defined in Section 14 of version 3 of the license. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +* You should have received a copy of the GNU General Public License +* along with this program. If not, see . +* +* ============================================================ */ + + +#ifndef WALLET_WIDGET_H +#define WALLET_WIDGET_H + + +// Qt Includes +#include + +// Forward Declarations +class KMainWindow; + + +class WalletWidget : public QWidget +{ + Q_OBJECT + +public: + WalletWidget(QObject *parent); + ~WalletWidget(); + +private slots: + + void rememberData(); + void neverRememberData(); + void notNowRememberData(); +}; + +#endif // WALLET_WIDGET_H -- cgit v1.2.1 From eaa82c1922c7cc133458c65ecbe8eb2ab6adc03d Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 6 Dec 2009 23:36:15 +0100 Subject: KWebWallet integration --- src/walletwidget.h | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) (limited to 'src/walletwidget.h') diff --git a/src/walletwidget.h b/src/walletwidget.h index e9e6ce87..7b20ead5 100644 --- a/src/walletwidget.h +++ b/src/walletwidget.h @@ -30,9 +30,9 @@ // Qt Includes #include - -// Forward Declarations -class KMainWindow; +#include +#include +#include class WalletWidget : public QWidget @@ -40,7 +40,7 @@ class WalletWidget : public QWidget Q_OBJECT public: - WalletWidget(QObject *parent); + WalletWidget(QWidget *parent); ~WalletWidget(); private slots: @@ -48,6 +48,17 @@ private slots: void rememberData(); void neverRememberData(); void notNowRememberData(); + void onSaveFormData(const QString &, const QUrl &); + +signals: + void saveFormDataAccepted(const QString &); + void saveFormDataRejected(const QString &); + +private: + QString m_key; + QUrl m_url; + + QLabel *m_label; }; #endif // WALLET_WIDGET_H -- cgit v1.2.1