kgpg
kgpgtextedit.cpp
Go to the documentation of this file.
90 if (KMessageBox::warningContinueCancel(this, i18n("<qt><b>Remote file dropped</b>.<br />The remote file will now be copied to a temporary file to process requested operation. This temporary file will be deleted after operation.</qt>"), QString(), KStandardGuiItem::cont(), KStandardGuiItem::cancel(), QLatin1String( "RemoteFileWarning" )) != KMessageBox::Continue)
127 tmpinfo = i18n("<qt>This file is a <b>public</b> key.<br />Do you want to import it instead of opening it in editor?</qt>");
130 tmpinfo = i18n("<qt>This file is a <b>private</b> key.<br />Do you want to import it instead of opening it in editor?</qt>");
135 if (KMessageBox::questionYesNo(this, tmpinfo, i18n("Key file dropped on Editor")) != KMessageBox::Yes) {
158 QPointer<KgpgSelectPublicKeyDlg> dialog = new KgpgSelectPublicKeyDlg(this, m_model, m_keysmanager->goDefaultShortcut(), true);
257 KMessageBox::detailedSorry(this, i18n("Decryption failed."), decr->getMessages().join( QLatin1String( "\n" )));
333 if (KMessageBox::questionYesNo(this, i18n("<qt><b>Missing signature:</b><br />Key id: %1<br /><br />Do you want to import this key from a keyserver?</qt>", id), i18n("Missing Key"), importitem, noimportitem) == KMessageBox::Yes)
354 void KgpgTextEdit::slotHighlightText(const QString &, const int matchingindex, const int matchedlength)
Definition: kgpgitemmodel.h:44
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
const QMimeData * mimeData() const
Definition: keyservers.h:51
shows a dialog to select a public key for encryption
Definition: selectpublickeydialog.h:39
output the data as printable ASCII as opposed to binary data
Definition: kgpgencrypt.h:38
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QString join(const QString &separator) const
bool hasText() const
void acceptProposedAction()
void verifyFinished()
void signVerifyText(const QString &message)
Definition: kgpgtextedit.cpp:346
void openDroppedFile(const KUrl &url, const bool probe)
Definition: kgpgtextedit.cpp:82
void clear()
static bool isEncryptedText(const QString &text, int *startPos=NULL, int *endPos=NULL)
check if the given text contains an encoded message
Definition: kgpgdecrypt.cpp:93
QString text() const
Definition: detailedconsole.h:23
bool isEmpty() const
bool isEmpty() const
Definition: keysmanager.h:66
void deleteLater()
KgpgTextEdit(QWidget *parent, KGpgItemModel *model, KeysManager *manager)
Definition: kgpgtextedit.cpp:42
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
remove anything that shows which key ids this data is encrypted to, ignored for symmetric encryption ...
Definition: kgpgencrypt.h:40
void slotHighlightText(const QString &, const int matchingindex, const int matchedlength)
Definition: kgpgtextedit.cpp:354
bool contains(QChar ch, Qt::CaseSensitivity cs) const
static bool allowCustomEncryptionOptions()
Get Allow custom encryption options.
Definition: kgpgsettings.h:117
virtual void close()
static QString getReport(const QStringList &log, const KGpgItemModel *model=NULL)
get verification report
Definition: kgpgverify.cpp:103
QString & replace(int position, int n, QChar after)
QString mid(int position, int n) const
int length() const
static int isKey(const QString &text, const bool incomplete=false)
check if the given text contains a private or public key
Definition: kgpgimport.cpp:276
void resetEncoding(bool)
QString readAll()
KShortcut goDefaultShortcut() const
returns the shortcut to go to the default key in a key selection
Definition: keysmanager.cpp:2724
const QStringList & getMessages() const
get gpg info message
Definition: kgpgtextorfiletransaction.cpp:159
Definition: selectsecretkey.h:23
allow encryption with untrusted keys, ignored for symmetric encryption
Definition: kgpgencrypt.h:39
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
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.