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

kgpg

  • sources
  • kde-4.14
  • kdeutils
  • kgpg
  • transactions
kgpgprimaryuid.cpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2009,2012,2013 Rolf Eike Beer <kde@opensource.sf-tec.de>
3  */
4 
5 /***************************************************************************
6  * *
7  * This program is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  ***************************************************************************/
13 
14 #include "kgpgprimaryuid.h"
15 
16 #include "model/kgpgitemnode.h"
17 
18 KGpgPrimaryUid::KGpgPrimaryUid(QObject *parent, KGpgUidNode *uid)
19  : KGpgUidTransaction(parent, uid->getParentKeyNode()->getId(), uid->getId())
20 {
21  addArgument(QLatin1String("primary"));
22  addArgument(QLatin1String("save"));
23 }
24 
25 KGpgPrimaryUid::~KGpgPrimaryUid()
26 {
27 }
28 
29 bool
30 KGpgPrimaryUid::nextLine(const QString &)
31 {
32  setSuccess(TS_MSG_SEQUENCE);
33  return true;
34 }
35 
36 bool
37 KGpgPrimaryUid::passphraseReceived()
38 {
39  setSuccess(TS_OK);
40  return KGpgTransaction::passphraseReceived();
41 }
42 
43 #include "kgpgprimaryuid.moc"
kgpgprimaryuid.h
KGpgTransaction::addArgument
int addArgument(const QString &arg)
add a command line argument to gpg process
Definition: kgpgtransaction.cpp:562
KGpgTransaction::TS_OK
everything went fine
Definition: kgpgtransaction.h:60
KGpgPrimaryUid::nextLine
virtual bool nextLine(const QString &line)
Called for every line the gpg process writes.
Definition: kgpgprimaryuid.cpp:30
QObject
KGpgPrimaryUid::passphraseReceived
virtual bool passphraseReceived()
called when GnuPG accepted the passphrase
Definition: kgpgprimaryuid.cpp:37
QString
KGpgTransaction::TS_MSG_SEQUENCE
unexpected sequence of GnuPG messages
Definition: kgpgtransaction.h:62
kgpgitemnode.h
KGpgPrimaryUid::~KGpgPrimaryUid
virtual ~KGpgPrimaryUid()
destructor
Definition: kgpgprimaryuid.cpp:25
KGpgTransaction::passphraseReceived
virtual bool passphraseReceived()
called when GnuPG accepted the passphrase
Definition: kgpgtransaction.cpp:518
QLatin1String
KGpgTransaction::setSuccess
void setSuccess(const int v)
set the success value that will be returned with the done signal
Definition: kgpgtransaction.cpp:448
KGpgUidNode
A user id of a public key or key pair.
Definition: KGpgUidNode.h:33
KGpgUidTransaction
base class for transactions involving only one user id of a key
Definition: kgpguidtransaction.h:25
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