• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeutils API Reference
  • KDE Home
  • Contact Us
 

kwallet

  • sources
  • kde-4.14
  • kdeutils
  • kwalletmanager
  • src
  • manager
kwalletmanagerwidget.h
Go to the documentation of this file.
1 /*
2  * This file is part of the KDE libraries
3  * Copyright (C) 2013 Valentin Rusu <kde@rusu.info>
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 KWALLETMANAGERWIDGET_H
21 #define KWALLETMANAGERWIDGET_H
22 
23 #include <kpagewidget.h>
24 
25 class KUrl;
26 class QDropEvent;
27 class KWalletManagerWidgetItem;
28 
29 class KWalletManagerWidget : public KPageWidget {
30  Q_OBJECT
31 public:
32  explicit KWalletManagerWidget(QWidget* parent = 0, Qt::WindowFlags flags = 0);
33  virtual ~KWalletManagerWidget();
34 
35  void updateWalletDisplay(QString selectWallet = QString());
36  bool hasWallet(const QString&) const;
37  bool openWalletFile(const QString& path);
38  bool openWallet(const QString& name);
39 
40  const QString& activeWalletName() const;
41 
42 protected:
43  virtual void dragEnterEvent(QDragEnterEvent *e);
44  virtual void dragMoveEvent(QDragMoveEvent *e);
45  virtual void dropEvent(QDropEvent *e);
46 
47 private Q_SLOTS:
48  void onCurrentPageChanged(KPageWidgetItem*,KPageWidgetItem*);
49 
50 private:
51  bool shouldIgnoreDropEvent(const QDropEvent *e, KUrl *u) const;
52 
53  typedef QHash<QString, KWalletManagerWidgetItem*> WalletPagesHash;
54  WalletPagesHash _walletPages;
55 };
56 
57 #endif // KWALLETMANAGERWIDGET_H
58 
59 class KUrl;
KWalletManagerWidget::openWallet
bool openWallet(const QString &name)
Definition: kwalletmanagerwidget.cpp:109
QWidget
QDragMoveEvent
KWalletManagerWidget::~KWalletManagerWidget
virtual ~KWalletManagerWidget()
Definition: kwalletmanagerwidget.cpp:42
KWalletManagerWidget::dragEnterEvent
virtual void dragEnterEvent(QDragEnterEvent *e)
Definition: kwalletmanagerwidget.cpp:125
KWalletManagerWidget::KWalletManagerWidget
KWalletManagerWidget(QWidget *parent=0, Qt::WindowFlags flags=0)
Definition: kwalletmanagerwidget.cpp:33
KWalletManagerWidget::openWalletFile
bool openWalletFile(const QString &path)
Definition: kwalletmanagerwidget.cpp:102
QHash< QString, KWalletManagerWidgetItem * >
QDropEvent
QString
KPageWidget
KWalletManagerWidgetItem
Definition: kwalletmanagerwidgetitem.h:26
KWalletManagerWidget::hasWallet
bool hasWallet(const QString &) const
Definition: kwalletmanagerwidget.cpp:97
QDragEnterEvent
KWalletManagerWidget::dropEvent
virtual void dropEvent(QDropEvent *e)
Definition: kwalletmanagerwidget.cpp:146
KPageWidgetItem
KWalletManagerWidget::dragMoveEvent
virtual void dragMoveEvent(QDragMoveEvent *e)
Definition: kwalletmanagerwidget.cpp:134
Qt::WindowFlags
typedef WindowFlags
KWalletManagerWidget::updateWalletDisplay
void updateWalletDisplay(QString selectWallet=QString())
Definition: kwalletmanagerwidget.cpp:52
KWalletManagerWidget
Definition: kwalletmanagerwidget.h:29
KWalletManagerWidget::activeWalletName
const QString & activeWalletName() const
Definition: kwalletmanagerwidget.cpp:120
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:42:01 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kwallet

Skip menu "kwallet"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeutils API Reference

Skip menu "kdeutils API Reference"
  • ark
  • filelight
  • kcalc
  • kcharselect
  • kdf
  • kfloppy
  • kgpg
  • ktimer
  • kwallet
  • sweeper

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal