kwallet
allyourbase.cpp
Go to the documentation of this file.
44 KWalletFolderItem::KWalletFolderItem(KWallet::Wallet *w, QTreeWidget* parent, const QString &name, int entries)
47 setFlags(Qt::ItemIsSelectable | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled | Qt::ItemIsEnabled);
134 KWalletContainerItem::KWalletContainerItem(QTreeWidgetItem* parent, const QString &name, KWallet::Wallet::EntryType entryType)
163 KWalletEntryItem::KWalletEntryItem(KWallet::Wallet *w, QTreeWidgetItem* parent, const QString& ename)
164 : QTreeWidgetItem(parent, QStringList() << ename, KWalletEntryItemClass), _wallet(w), m_name(ename) {
165 setFlags(Qt::ItemIsSelectable | Qt::ItemIsEditable | Qt::ItemIsDragEnabled | Qt::ItemIsEnabled);
187 : QListWidgetItem(DesktopIcon(QLatin1String( "wallet-closed" )), walletName, parent), _open(false) {
217 int rc = KMessageBox::warningContinueCancel(0L, i18n("An entry by the name '%1' already exists. Would you like to continue?", name));
240 int rc = KMessageBox::warningYesNoCancel(0L, i18n("A folder by the name '%1' already exists. What would you like to do?", folder), QString(), KStandardGuiItem::cont(), KGuiItem(i18n("Replace")));
271 KWallet::Wallet *_wallet = KWallet::Wallet::openWallet(text(), listWidget()->topLevelWidget()->winId());
485 KMessageBox::error(this, i18n("An unexpected error occurred trying to delete the original folder, but the folder has been copied successfully"));
Qt::MouseButtons mouseButtons()
QWidget * source() const
void setHotSpot(const QPoint &hotspot)
Type type() const
bool isSelected() const
KWalletItem(QListWidget *parent, const QString &walletName)
Definition: allyourbase.cpp:186
const QMimeData * mimeData() const
void setSelectionMode(QAbstractItemView::SelectionMode mode)
virtual bool acceptDrop(const QMimeSource *mime) const
Definition: allyourbase.cpp:118
void setMimeData(QMimeData *data)
QTreeWidgetItem * child(int index) const
QListWidget * listWidget() const
Definition: allyourbase.h:63
KWalletFolderItem * getFolder(const QString &name)
Definition: allyourbase.cpp:600
const QPoint & pos() const
virtual void dragEnterEvent(QDragEnterEvent *e)
Definition: allyourbase.cpp:580
void setIcon(int column, const QIcon &icon)
bool isEmpty() const
void setDragDropMode(DragDropMode behavior)
void setFileName(const QString &name)
QPixmap getFolderIcon(KIconLoader::Group group)
Definition: allyourbase.cpp:51
virtual const QMetaObject * metaObject() const
Definition: allyourbase.h:77
QWidget * viewport() const
KWalletContainerItem * getContainer(KWallet::Wallet::EntryType type)
Definition: allyourbase.cpp:87
Definition: allyourbase.h:100
Qt::MouseButtons buttons() const
QTreeWidgetItem * getItem(const QString &itemKey)
Definition: allyourbase.cpp:150
Definition: allyourbase.h:39
Qt::ItemFlags flags() const
virtual bool provides(const char *mimeType) const
Definition: allyourbase.h:41
virtual bool event(QEvent *e)
Qt::DropAction exec(QFlags< Qt::DropAction > supportedActions)
virtual void mouseMoveEvent(QMouseEvent *e)
Definition: allyourbase.cpp:556
void setFlags(QFlags< Qt::ItemFlag > flags)
void itemDropped(QDropEvent *e, QTreeWidgetItem *item)
Definition: allyourbase.cpp:359
void ignore()
KWalletEntryItem(KWallet::Wallet *w, QTreeWidgetItem *parent, const QString &ename)
Definition: allyourbase.cpp:163
void installEventFilter(QObject *filterObj)
static bool decodeEntry(KWallet::Wallet *_wallet, QDataStream &ds)
Definition: allyourbase.cpp:205
void accept()
Qt::MouseButton button() const
bool isEmpty() const
virtual QMimeData * mimeData(const QList< QTreeWidgetItem * > items) const
void setFlags(QFlags< Qt::ItemFlag > flags)
void setObjectName(const QString &name)
QTreeWidgetItem * itemAt(const QPoint &p) const
bool isHidden() const
Definition: allyourbase.h:40
virtual bool eventFilter(QObject *watched, QEvent *event)
T & first()
QTreeWidgetItem * currentItem() const
virtual bool reset()
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
bool atEnd() const
void setColumnCount(int columns)
static bool decodeFolder(KWallet::Wallet *_wallet, QDataStream &ds)
Definition: allyourbase.cpp:230
QTreeWidgetItem * getItem(const QString &itemKey)
Definition: allyourbase.cpp:104
KWalletEntryList(QWidget *parent, const char *name=0L)
Definition: allyourbase.cpp:342
void setAcceptDrops(bool on)
void ignore()
QString toLower() const
int key() const
bool isNull() const
virtual QByteArray encodedData(const char *format) const
void setIcon(const QIcon &icon)
const char * className() const
KWalletContainerItem(QTreeWidgetItem *parent, const QString &name, KWallet::Wallet::EntryType entryType)
Definition: allyourbase.cpp:134
QTreeWidgetItem * parent() const
bool invokeMethod(QObject *obj, const char *member, Qt::ConnectionType type, QGenericReturnArgument ret, QGenericArgument val0, QGenericArgument val1, QGenericArgument val2, QGenericArgument val3, QGenericArgument val4, QGenericArgument val5, QGenericArgument val6, QGenericArgument val7, QGenericArgument val8, QGenericArgument val9)
Definition: allyourbase.h:45
void setCurrentItem(QTreeWidgetItem *item)
State state() const
void setHeaderLabel(const QString &label)
virtual void dragMoveEvent(QDragMoveEvent *e)
Definition: allyourbase.cpp:584
typedef MouseButtons
KWallet::Wallet::EntryType entryType()
Definition: allyourbase.cpp:142
QList< QUrl > urls() const
virtual void mousePressEvent(QMouseEvent *e)
Definition: allyourbase.cpp:550
void setText(int column, const QString &text)
QString fromLatin1(const char *str, int size)
virtual void mousePressEvent(QMouseEvent *event)
int type() const
void setData(const QString &mimeType, const QByteArray &data)
QTreeWidgetItem * topLevelItem(int index) const
const QPoint & pos() const
virtual ~KWalletContainerItem()
Definition: allyourbase.cpp:139
void setRootIsDecorated(bool show)
int topLevelItemCount() const
QObject * parent() const
virtual bool provides(const char *mimeType) const
int childCount() const
KWalletFolderItem(KWallet::Wallet *w, QTreeWidget *parent, const QString &name, int entries)
Definition: allyourbase.cpp:44
QString text(int column) const
void accept(bool accept)
QString text() const
Definition: kwalleteditor.cpp:945
int startDragDistance()
void setDragEnabled(bool enable)
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
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.