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

kleopatra

  • Kleo
  • Command
Classes | Public Types | Public Slots | Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Kleo::Command Class Referenceabstract

#include <command.h>

Inheritance diagram for Kleo::Command:
Inheritance graph
[legend]

Classes

class  Private
 

Public Types

enum  Restriction {
  NoRestriction = 0, NeedSelection = 1, OnlyOneKey = 2, NeedSecretKey = 4,
  MustNotBeSecretKey = 8, MustBeOpenPGP = 16, MustBeCMS = 32, MayOnlyBeSecretKeyIfOwnerTrustIsNotYetUltimate = 64,
  AnyCardHasNullPin = 128, AnyCardCanLearnKeys = 256, MustBeRoot = 512, MustBeTrustedRoot = 1024|MustBeRoot,
  MustBeUntrustedRoot = 2048|MustBeRoot, _AllRestrictions_Helper, AllRestrictions = 2*(_AllRestrictions_Helper-1) - 1
}
 

Public Slots

void cancel ()
 
void start ()
 

Signals

void canceled ()
 
void finished ()
 
void info (const QString &message, int timeout=0)
 
void progress (const QString &message, int current, int total)
 

Public Member Functions

 Command (KeyListController *parent)
 
 Command (QAbstractItemView *view, KeyListController *parent)
 
 Command (const GpgME::Key &key)
 
 Command (const std::vector< GpgME::Key > &keys)
 
 ~Command ()
 
bool autoDelete () const
 
void setAutoDelete (bool on)
 
void setIndex (const QModelIndex &idx)
 
void setIndexes (const QList< QModelIndex > &idx)
 
void setKey (const GpgME::Key &key)
 
void setKeys (const std::vector< GpgME::Key > &keys)
 
void setParentWId (WId wid)
 
void setParentWidget (QWidget *widget)
 
void setView (QAbstractItemView *view)
 
void setWarnWhenRunningAtShutdown (bool warn)
 
bool warnWhenRunningAtShutdown () const
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
 QObject (QObject *parent, const char *name)
 
virtual  ~QObject ()
 
bool blockSignals (bool block)
 
QObject * child (const char *objName, const char *inheritsClass, bool recursiveSearch) const
 
const QObjectList & children () const
 
const char * className () const
 
bool connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const QObject *receiver, const char *method)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method)
 
void dumpObjectInfo ()
 
void dumpObjectTree ()
 
QList< QByteArray > dynamicPropertyNames () const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
T findChild (const QString &name) const
 
QList< T > findChildren (const QRegExp &regExp) const
 
QList< T > findChildren (const QString &name) const
 
bool inherits (const char *className) const
 
void insertChild (QObject *object)
 
void installEventFilter (QObject *filterObj)
 
bool isA (const char *className) const
 
bool isWidgetType () const
 
void killTimer (int id)
 
virtual const QMetaObject * metaObject () const
 
void moveToThread (QThread *targetThread)
 
const char * name () const
 
const char * name (const char *defaultName) const
 
QString objectName () const
 
QObject * parent () const
 
QVariant property (const char *name) const
 
void removeChild (QObject *object)
 
void removeEventFilter (QObject *obj)
 
void setName (const char *name)
 
void setObjectName (const QString &name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool signalsBlocked () const
 
int startTimer (int interval)
 
QThread * thread () const
 
- Public Member Functions inherited from Kleo::ExecutionContext
virtual ~ExecutionContext ()
 

Static Public Member Functions

static Restrictions restrictions ()
 
- Static Public Member Functions inherited from QObject
bool connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
bool connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 

Protected Member Functions

 Command (Private *pp)
 
 Command (QAbstractItemView *view, Private *pp)
 
 Command (const std::vector< GpgME::Key > &keys, Private *pp)
 
 Command (const GpgME::Key &key, Private *pp)
 
void addTemporaryView (const QString &title, AbstractKeyListSortFilterProxyModel *proxy=0, const QString &tabToolTip=QString())
 
- Protected Member Functions inherited from QObject
bool checkConnectArgs (const char *signal, const QObject *object, const char *method)
 
virtual void childEvent (QChildEvent *event)
 
virtual void connectNotify (const char *signal)
 
virtual void customEvent (QEvent *event)
 
virtual void disconnectNotify (const char *signal)
 
int receivers (const char *signal) const
 
QObject * sender () const
 
int senderSignalIndex () const
 
virtual void timerEvent (QTimerEvent *event)
 

Protected Attributes

kdtools::pimpl_ptr< Private > d
 

Additional Inherited Members

- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Definition at line 58 of file commands/command.h.

Member Enumeration Documentation

enum Kleo::Command::Restriction
Enumerator
NoRestriction 
NeedSelection 
OnlyOneKey 
NeedSecretKey 
MustNotBeSecretKey 
MustBeOpenPGP 
MustBeCMS 
MayOnlyBeSecretKeyIfOwnerTrustIsNotYetUltimate 
AnyCardHasNullPin 
AnyCardCanLearnKeys 
MustBeRoot 
MustBeTrustedRoot 
MustBeUntrustedRoot 
_AllRestrictions_Helper 
AllRestrictions 

Definition at line 67 of file commands/command.h.

Constructor & Destructor Documentation

Command::Command ( KeyListController *  parent)
explicit

Definition at line 62 of file commands/command.cpp.

Command::Command ( QAbstractItemView *  view,
KeyListController *  parent 
)
explicit

Definition at line 69 of file commands/command.cpp.

Kleo::Command::Command ( const GpgME::Key &  key)
explicit
Kleo::Command::Command ( const std::vector< GpgME::Key > &  keys)
explicit
Command::~Command ( )

Definition at line 118 of file commands/command.cpp.

Command::Command ( Private *  pp)
explicitprotected

Definition at line 78 of file commands/command.cpp.

Command::Command ( QAbstractItemView *  view,
Private *  pp 
)
explicitprotected

Definition at line 85 of file commands/command.cpp.

Kleo::Command::Command ( const std::vector< GpgME::Key > &  keys,
Private *  pp 
)
explicitprotected
Kleo::Command::Command ( const GpgME::Key &  key,
Private *  pp 
)
explicitprotected

Member Function Documentation

void Command::addTemporaryView ( const QString &  title,
AbstractKeyListSortFilterProxyModel *  proxy = 0,
const QString &  tabToolTip = QString() 
)
protected

Definition at line 192 of file commands/command.cpp.

bool Command::autoDelete ( ) const

Definition at line 124 of file commands/command.cpp.

void Command::cancel ( )
slot

Definition at line 186 of file commands/command.cpp.

void Kleo::Command::canceled ( )
signal
void Kleo::Command::finished ( )
signal
void Kleo::Command::info ( const QString &  message,
int  timeout = 0 
)
signal
void Kleo::Command::progress ( const QString &  message,
int  current,
int  total 
)
signal
static Restrictions Kleo::Command::restrictions ( )
inlinestatic

Definition at line 92 of file commands/command.h.

void Command::setAutoDelete ( bool  on)

Definition at line 120 of file commands/command.cpp.

void Command::setIndex ( const QModelIndex &  idx)

Definition at line 162 of file commands/command.cpp.

void Command::setIndexes ( const QList< QModelIndex > &  idx)

Definition at line 167 of file commands/command.cpp.

void Command::setKey ( const GpgME::Key &  key)

Definition at line 172 of file commands/command.cpp.

void Command::setKeys ( const std::vector< GpgME::Key > &  keys)

Definition at line 178 of file commands/command.cpp.

void Command::setParentWId ( WId  wid)

Definition at line 140 of file commands/command.cpp.

void Command::setParentWidget ( QWidget *  widget)

Definition at line 136 of file commands/command.cpp.

void Command::setView ( QAbstractItemView *  view)

Definition at line 144 of file commands/command.cpp.

void Command::setWarnWhenRunningAtShutdown ( bool  warn)

Definition at line 128 of file commands/command.cpp.

void Command::start ( )
slot

Definition at line 182 of file commands/command.cpp.

bool Command::warnWhenRunningAtShutdown ( ) const

Definition at line 132 of file commands/command.cpp.

Member Data Documentation

kdtools::pimpl_ptr<Private> Kleo::Command::d
protected

Definition at line 129 of file commands/command.h.


The documentation for this class was generated from the following files:
  • commands/command.h
  • commands/command.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:33:12 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kleopatra

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer
  • pimprint

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