[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdeutils/kgpg
From: Rolf Eike Beer <kde () opensource ! sf-tec ! de>
Date: 2008-08-19 17:42:54
Message-ID: 1219167774.873740.19419.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 849506 by dakon:
remove unused KgpgLibrary::processDecError()
M +0 -41 kgpglibrary.cpp
M +0 -1 kgpglibrary.h
--- trunk/KDE/kdeutils/kgpg/kgpglibrary.cpp #849505:849506
@@ -188,47 +188,6 @@
emit decryptionOver(this, KUrl());
}
-void KgpgLibrary::processDecError(const QString &mssge)
-{
- delete m_pop;
- emit systemMessage(QString());
-
- // test if file is a public key
- QFile qfile(QFile::encodeName(m_urlselected.path()));
- if (qfile.open(QIODevice::ReadOnly))
- {
- QTextStream t(&qfile);
- QString result = t.readAll();
- qfile.close();
-
- // if pgp data found, decode it
- if (result.startsWith("-----BEGIN PGP PUBLIC KEY BLOCK"))
- {
- // dropped file is a public key, ask for import
- int result = KMessageBox::warningContinueCancel(0, i18n("<p>The file \
<b>%1</b> is a public key.<br />Do you want to import it ?</p>", \
m_urlselected.path()));
- if (result == KMessageBox::Cancel)
- return;
- else
- {
- KgpgInterface *importKeyProcess = new KgpgInterface();
- importKeyProcess->importKey(m_urlselected);
- connect(importKeyProcess, SIGNAL(importKeyFinished(KgpgInterface *, \
QStringList)), SIGNAL(slotImportOver(KgpgInterface *, QStringList)));
- return;
- }
- }
- else
- if(result.startsWith("-----BEGIN PGP PRIVATE KEY BLOCK"))
- {
- // dropped file is a public key, ask for import
- qfile.close();
- KMessageBox::information(0, i18n("<p>The file <b>%1</b> is a private key \
block. Please use KGpg key manager to import it.</p>", \
m_urlselected.path()));
- return;
- }
- }
-
- KMessageBox::detailedSorry(0, i18n("Decryption failed."), mssge);
-}
-
void KgpgLibrary::slotImportOver(KgpgInterface *iface, const QStringList &keys)
{
iface->deleteLater();
--- trunk/KDE/kdeutils/kgpg/kgpglibrary.h #849505:849506
@@ -65,7 +65,6 @@
void processEnc(const KUrl &, KGpgTextInterface*);
void processEncError(const QString &mssge, KGpgTextInterface*);
void processDecOver(int, KGpgTextInterface*);
- void processDecError(const QString &mssge);
void processEncPopup(const KUrl &url);
void processPopup2(const QString &fileName);
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic