kleopatra
commands/command_p.h
Go to the documentation of this file.
61 QWidget * parentWidgetOrView() const { if ( parentWidget_ ) return parentWidget_; else return view_; }
62 KeyListModelInterface * model() const { return view_ ? dynamic_cast<KeyListModelInterface*>( view_->model() ) : 0 ; }
69 GpgME::Key key() const { return keys_.empty() ? model() && !indexes_.empty() ? model()->key( indexes_.front() ) : GpgME::Key::null : keys_.front() ; }
70 std::vector<GpgME::Key> keys() const { return keys_.empty() ? model() ? model()->keys( indexes() ) : std::vector<GpgME::Key>() : keys_ ; }
83 void error( const QString & text, const QString & caption=QString(), KMessageBox::Options options=KMessageBox::Notify ) const {
89 void information( const QString & text, const QString & caption=QString(), const QString & dontShowAgainName=QString(), KMessageBox::Options options=KMessageBox::Notify ) const {
KeyListModelInterface * model() const
Definition: commands/command_p.h:62
void finished()
Definition: commands/command_p.h:52
Definition: keylistcontroller.h:55
virtual GpgME::Key key(const QModelIndex &idx) const =0
QWidget * parentWidgetOrView() const
Definition: commands/command_p.h:61
QList< QModelIndex > indexes() const
Definition: commands/command_p.h:64
std::vector< GpgME::Key > keys() const
Definition: commands/command_p.h:70
void applyWindowID(QWidget *w) const
Definition: commands/command_p.h:96
KeyListController * controller() const
Definition: commands/command_p.h:63
void canceled()
void information(const QString &text, const QString &caption=QString(), const QString &dontShowAgainName=QString(), KMessageBox::Options options=KMessageBox::Notify) const
Definition: commands/command_p.h:89
virtual std::vector< GpgME::Key > keys(const QList< QModelIndex > &idxs) const =0
Private(Command *qq, KeyListController *controller)
Definition: commands/command.cpp:48
Definition: commands/command.h:58
Definition: commands/command.h:46
void error(const QString &text, const QString &caption=QString(), KMessageBox::Options options=KMessageBox::Notify) const
Definition: commands/command_p.h:83
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:56:40 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.