kgpg
kgpgexternalactions.cpp
Go to the documentation of this file.
72 KgpgSelectPublicKeyDlg *dialog = new KgpgSelectPublicKeyDlg(parent, parent->getModel(), encActions->goDefaultKey(), false, urls);
134 KMessageBox::sorry(parent, i18n("Cannot create temporary file for folder compression."), i18n("Temporary File Creation"));
139 i18n("<qt>KGpg will now create a temporary archive file:<br /><b>%1</b> to process the encryption. "
148 KgpgSelectPublicKeyDlg *dialog = new KgpgSelectPublicKeyDlg(parent, parent->getModel(), encActions->goDefaultKey(), false, urls);
181 const QStringList encryptOptions = dialog->getCustomOptions().split(QLatin1Char(' '), QString::SkipEmptyParts);
208 QPointer<KIO::RenameDialog> over = new KIO::RenameDialog(m_keysmanager, i18n("File Already Exists"),
220 FolderCompressJob *trayinfo = new FolderCompressJob(m_keysmanager, urls, encryptedFile, m_kgpgfoldertmp,
434 i18n("<qt>You have not set a path to your GnuPG config file.<br />This may cause some surprising results in KGpg's execution."
446 createConfigProc->start(QLatin1String( "gpg" ), args); // start GnuPG so that it will create a config file
470 const QString gpgConfServer(KgpgInterface::getGpgSetting(QLatin1String( "keyserver" ), KGpgSettings::gpgConfigPath()));
494 return qobject_cast<KAction *>(m_keysmanager->actionCollection()->action(QLatin1String( "go_default_key" )))->shortcut();
Definition: kgpgitemmodel.h:44
output the data as printable ASCII as opposed to binary data
Definition: kgpgsigntext.h:37
void clear()
Definition: keyservers.h:51
static QString gpgConfigPath()
Get The path of the gpg configuration file.
Definition: kgpgsettings.h:288
shows a dialog to select a public key for encryption
Definition: selectpublickeydialog.h:39
QStringList selectedKeys() const
Definition: selectpublickeydialog.cpp:156
void createNewKey()
output the data as printable ASCII as opposed to binary data
Definition: kgpgencrypt.h:38
static void decryptFiles(KeysManager *parent, const KUrl::List &urls)
Definition: kgpgexternalactions.cpp:337
const KUrl::List & getFiles() const
return the files passed in the constructor
Definition: selectpublickeydialog.cpp:198
QObject * sender() const
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
bool contains(const QString &str, Qt::CaseSensitivity cs) const
static void setAutoStart(bool v)
Set Start KGpg automatically at KDE startup.
Definition: kgpgsettings.h:525
QString join(const QString &separator) const
bool exists() const
static bool pgpExtension()
Get Use *.pgp extension for encrypted files.
Definition: kgpgsettings.h:269
QString getCustomOptions() const
Definition: selectpublickeydialog.cpp:181
static void setKeyServers(const QStringList &v)
Set Key servers used by KGpg.
Definition: kgpgsettings.h:886
void chop(int n)
void openDroppedFile(const KUrl &url, const bool probe)
Definition: kgpgtextedit.cpp:82
void clear()
void append(const T &value)
Definition: detailedconsole.h:23
static void encryptFiles(KeysManager *parent, const KUrl::List &urls)
create a new object, encrypt the given files, and destroy the object
Definition: kgpgexternalactions.cpp:66
bool isNull() const
bool isEmpty() const
bool isEmpty() const
Definition: kgpgfirstassistant.h:30
KGpgExternalActions(KeysManager *parent, KGpgItemModel *model)
Definition: kgpgexternalactions.cpp:51
Definition: kgpgeditor.h:33
static const QStringList & archiveNames()
get list of supported archive names
Definition: foldercompressjob.cpp:172
Definition: keysmanager.h:66
void deleteLater()
handle actions called from outside the application
Definition: kgpgexternalactions.h:41
static void setFirstRun(bool v)
Set Is the first time the application runs.
Definition: kgpgsettings.h:335
remove anything that shows which key ids this data is encrypted to, ignored for symmetric encryption ...
Definition: kgpgencrypt.h:40
static bool useMouseSelection()
Get Use the mouse selection instead of the clipboard.
Definition: kgpgsettings.h:516
static void encryptFolders(KeysManager *parent, const KUrl::List &urls)
Definition: kgpgexternalactions.cpp:128
~KGpgExternalActions()
Definition: kgpgexternalactions.cpp:61
static void setGpgConfigPath(const QString &v)
Set The path of the gpg configuration file.
Definition: kgpgsettings.h:278
static bool allowCustomEncryptionOptions()
Get Allow custom encryption options.
Definition: kgpgsettings.h:117
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)
static QString extensionForArchive(const int archive)
query extension for archive type
Definition: foldercompressjob.cpp:151
Create an encrypted archive of the given folders.
Definition: foldercompressjob.h:33
int length() const
QStringList split(const QString &sep, const QString &str, bool allowEmptyEntries)
QString left(int n) const
bool getSymmetric() const
Definition: selectpublickeydialog.cpp:176
static void signFiles(KeysManager *parent, const KUrl::List &urls)
create a detached signature for the given files
Definition: kgpgexternalactions.cpp:292
bool getUntrusted() const
Definition: selectpublickeydialog.cpp:188
void showDroppedFile(const KUrl &file)
Definition: kgpgexternalactions.cpp:414
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void start(const QString &program, const QStringList &arguments, QFlags< QIODevice::OpenModeFlag > mode)
const QStringList & getMessages() const
get gpg info message
Definition: kgpgtextorfiletransaction.cpp:159
void updateDefault(QString)
QString getGpgSetting(const QString &name, const QString &configfile)
Definition: kgpginterface.cpp:38
Definition: kgpgtextinterface.h:24
Definition: selectsecretkey.h:23
allow encryption with untrusted keys, ignored for symmetric encryption
Definition: kgpgencrypt.h:39
bool waitForFinished(int msecs)
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.