KHtml

storepassbar.h
1 /* This file is part of the KDE project
2  *
3  * Copyright (C) 2009 Eduardo Robles Elvira <edulix at gmail dot com>
4  *
5  * This library is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU Library General Public
7  * License as published by the Free Software Foundation; either
8  * version 2 of the License, or (at your option) any later version.
9  *
10  * This library is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13  * Library General Public License for more details.
14  *
15  * You should have received a copy of the GNU Library General Public License
16  * along with this library; see the file COPYING.LIB. If not, write to
17  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18  * Boston, MA 02110-1301, USA.
19  */
20 #ifndef __storepassbar_h__
21 #define __storepassbar_h__
22 
23 #include "khtmlviewbarwidget.h"
24 #include "ui_storepassbar_base.h"
25 
26 #include <QObject>
27 #include <QMap>
28 
29 class KHTMLPart;
30 
31 class StorePassBar : public KHTMLViewBarWidget, private Ui::StorePassBarBase
32 {
33  Q_OBJECT
34 public:
35  StorePassBar(QWidget *parent = nullptr);
36 
37  void setHost(const QString &host);
38 
39 Q_SIGNALS:
40  void storeClicked();
41  void neverForThisSiteClicked();
42  void doNotStoreClicked();
43 };
44 
45 class StorePass : public QObject
46 {
47  Q_OBJECT
48 public:
49  StorePass(KHTMLPart *part);
50  ~StorePass();
51 
52  void saveLoginInformation(const QString &host, const QString &key,
53  const QMap<QString, QString> &walletMap);
54  void removeBar();
55 
56 private Q_SLOTS:
57  void slotStoreClicked();
58  void slotNeverForThisSiteClicked();
59  void slotDoNotStoreClicked();
60 
61 private:
62  KHTMLPart *m_part;
63 
64  StorePassBar m_storePassBar;
65  QString m_host;
66  QString m_key;
67  QMap<QString, QString> m_walletMap;
68 };
69 #endif
This class is khtml&#39;s main class.
Definition: khtml_part.h:208
Q_SIGNALSQ_SIGNALS
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Oct 16 2021 22:48:01 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.