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

kgpg

Public Types | Public Member Functions | Protected Member Functions | List of all members
KGpgDelUid Class Reference

#include <kgpgdeluid.h>

Inheritance diagram for KGpgDelUid:
Inheritance graph
[legend]

Public Types

enum  RemoveMode { RemoveAllOther = 0, KeepUats = 1, RemoveWithEmail = 2 }
 
enum  ts_deluid { TS_NO_SUCH_UID = KGpgTransaction::TS_COMMON_END + 1 }
 
- Public Types inherited from KGpgTransaction
enum  ts_boolanswer { BA_UNKNOWN = 0, BA_YES = 1, BA_NO = 2 }
 
enum  ts_hintType { HT_KEYEXPIRED = 0, HT_SIGEXPIRED = 1, HT_NOSECKEY = 2, HT_ENCTO = 3 }
 
enum  ts_transaction {
  TS_OK = 0, TS_BAD_PASSPHRASE = 1, TS_MSG_SEQUENCE = 2, TS_USER_ABORTED = 3,
  TS_INVALID_EMAIL = 4, TS_INPUT_PROCESS_ERROR = 5, TS_COMMON_END = 100
}
 

Public Member Functions

 KGpgDelUid (QObject *parent, const KGpgSignableNode *uid)
 
 KGpgDelUid (QObject *parent, const KGpgSignableNode::const_List &uids)
 
 KGpgDelUid (QObject *parent, const KGpgKeyNode *keynode, const int uid, const RemoveMode removeMode=RemoveAllOther)
 
virtual ~KGpgDelUid ()
 
void setUid (const KGpgSignableNode *uid)
 
void setUid (const KGpgKeyNode *keynode, const int uid, const RemoveMode removeMode=RemoveAllOther)
 
void setUids (const KGpgSignableNode::const_List &uids)
 
- Public Member Functions inherited from KGpgUidTransaction
 KGpgUidTransaction (QObject *parent, const QString &keyid=QString(), const QString &uid=QString())
 
virtual ~KGpgUidTransaction ()
 
QString getKeyId (void) const
 
void setKeyId (const QString &keyid)
 
void setUid (const QString &uid)
 
void setUid (const unsigned int uid)
 
- Public Member Functions inherited from KGpgTransaction
 KGpgTransaction (QObject *parent=0, const bool allowChaining=false)
 
virtual ~KGpgTransaction ()
 
void clearInputTransaction ()
 
const QString & getDescription () const
 
bool hasInputTransaction () const
 
void kill ()
 
void setGnuPGHome (const QString &home)
 
void setInputTransaction (KGpgTransaction *ta)
 
void start ()
 
int waitForFinished (const int msecs=-1)
 
- 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
 

Protected Member Functions

virtual ts_boolanswer boolQuestion (const QString &line)
 
virtual void finish ()
 
virtual bool nextLine (const QString &line)
 
virtual bool preStart ()
 
- Protected Member Functions inherited from KGpgUidTransaction
bool standardCommands (const QString &line)
 
- Protected Member Functions inherited from KGpgTransaction
int addArgument (const QString &arg)
 
void addArgumentRef (int *ref)
 
int addArguments (const QStringList &args)
 
void addIdHint (QString txt)
 
void askNewPassphrase (const QString &text)
 
bool askPassphrase (const QString &message=QString())
 
virtual ts_boolanswer confirmOverwrite (KUrl &currentFile)
 
QString getIdHints () const
 
GPGProc * getProcess ()
 
int getSuccess () const
 
virtual bool hintLine (const ts_hintType hint, const QString &args)
 
void insertArgument (const int pos, const QString &arg)
 
void insertArguments (const int pos, const QStringList &args)
 
virtual void newPassphraseEntered ()
 
virtual bool passphraseReceived ()
 
virtual bool passphraseRequested ()
 
virtual void postStart ()
 
void replaceArgument (const int pos, const QString &arg)
 
void setDescription (const QString &description)
 
void setSuccess (const int v)
 
void unexpectedLine (const QString &line)
 
void waitForInputTransaction ()
 
void write (const QByteArray &a, const bool lf=true)
 
void write (const int i)
 
- 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)
 

Additional Inherited Members

- Signals inherited from KGpgTransaction
void done (int result)
 
void infoProgress (qulonglong processedAmount, qulonglong totalAmount)
 
void statusMessage (const QString &msg)
 
- 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)
 
- Static Protected Member Functions inherited from QObject
QByteArray normalizeSignalSlot (const char *signalSlot)
 
- Properties inherited from QObject
 objectName
 

Detailed Description

Definition at line 27 of file kgpgdeluid.h.

Member Enumeration Documentation

enum KGpgDelUid::RemoveMode
Enumerator
RemoveAllOther 

remove all other uids

KeepUats 

remove all other uids, but keep uats

RemoveWithEmail 

remove only those other uids that have an email address

Definition at line 37 of file kgpgdeluid.h.

enum KGpgDelUid::ts_deluid
Enumerator
TS_NO_SUCH_UID 

user id does not exist

Definition at line 33 of file kgpgdeluid.h.

Constructor & Destructor Documentation

KGpgDelUid::KGpgDelUid ( QObject *  parent,
const KGpgSignableNode *  uid 
)

constructor

Parameters
parentparent object
uiduser id to delete

Definition at line 22 of file kgpgdeluid.cpp.

KGpgDelUid::KGpgDelUid ( QObject *  parent,
const KGpgSignableNode::const_List &  uids 
)

constructor

Parameters
parentparent object
uidsuser ids to delete

All entries in uids must be children of the same keynode. The keynode itself may be part of the list, representing the primary user id. The nodes must be either the keynode itself, user id nodes, or user attribute nodes.

Definition at line 29 of file kgpgdeluid.cpp.

KGpgDelUid::KGpgDelUid ( QObject *  parent,
const KGpgKeyNode *  keynode,
const int  uid,
const RemoveMode  removeMode = RemoveAllOther 
)

constructor

Parameters
parentparent object
keynodekey to edit
uiduid to delete, negative to delete all others (see also removeMode)
removeModecontrol which other uids are removed in case uid is negative

Definition at line 36 of file kgpgdeluid.cpp.

KGpgDelUid::~KGpgDelUid ( )
virtual

destructor

Definition at line 43 of file kgpgdeluid.cpp.

Member Function Documentation

KGpgTransaction::ts_boolanswer KGpgDelUid::boolQuestion ( const QString &  line)
protectedvirtual

Called for every boolean question GnuPG answers.

Parameters
linethe question GnuPG asked
Returns
what to answer GnuPG

This is called instead of nextLine() if the line contains a boolean question. Returning BA_UNKNOWN will cancel the current transaction and will set the transaction result to TS_MSG_SEQUENCE.

The default implementation will answer BA_UNKNOWN to every question.

Reimplemented from KGpgTransaction.

Definition at line 178 of file kgpgdeluid.cpp.

void KGpgDelUid::finish ( )
protectedvirtual

Called when the gpg process finishes.

You may reimplement this member if you need to do some special operations after process completion. The provided one simply does nothing which should be enough for most cases.

Reimplemented from KGpgTransaction.

Definition at line 189 of file kgpgdeluid.cpp.

bool KGpgDelUid::nextLine ( const QString &  line)
protectedvirtual

Called for every line the gpg process writes.

Parameters
linethe input from the process
Returns
true if "quit" should be sent to process

You need to implement this member to get a usable subclass.

When this function returns true "quit" is written to the process.

Implements KGpgTransaction.

Definition at line 172 of file kgpgdeluid.cpp.

bool KGpgDelUid::preStart ( )
protectedvirtual

Called before the gpg process is started.

Returns
true if the process should be started

You may reimplement this member if you need to do some special operations before the process is started. The command line of the process may be modified for the last time here.

When you notice that some values passed are invalid or the transaction does not need to be run for some other reason you should call setSuccess() to set the return value and return false. In this case the process is not started but the value is immediately returned.

Reimplemented from KGpgUidTransaction.

Definition at line 161 of file kgpgdeluid.cpp.

void KGpgDelUid::setUid ( const KGpgSignableNode *  uid)

set the user id to be deleted

This removes all previously set user ids from the list.

Definition at line 48 of file kgpgdeluid.cpp.

void KGpgDelUid::setUid ( const KGpgKeyNode *  keynode,
const int  uid,
const RemoveMode  removeMode = RemoveAllOther 
)

set the user id to be deleted

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Definition at line 114 of file kgpgdeluid.cpp.

void KGpgDelUid::setUids ( const KGpgSignableNode::const_List &  uids)

set the user ids to be deleted

This removes all previously set user ids from the list.

Definition at line 63 of file kgpgdeluid.cpp.


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

KDE's Doxygen guidelines are available online.

kgpg

Skip menu "kgpg"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

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