kgpg
kgpgoptions.cpp
Go to the documentation of this file.
53 m_fontchooser(new KFontChooser(m_page3->tabWidget3->widget(1), KFontChooser::NoDisplayFlags, QStringList())),
72 keyServer = KgpgInterface::getGpgSetting(QLatin1String( "keyserver" ), KGpgSettings::gpgConfigPath());
123 connect(m_page6->ServerBox->selectionModel(), SIGNAL(selectionChanged(QItemSelection,QItemSelection)), SLOT(slotChangeKeyServerButtonEnable()));
124 connect(m_page6->ServerBox, SIGNAL(doubleClicked(QModelIndex)), SLOT(slotEditKeyServer(QModelIndex)));
149 QString gpgHome = KFileDialog::getExistingDirectory(m_page4->gpg_home_path->text(), this, i18n("New GnuPG Home Location"));
162 i18n("No configuration file was found in the selected location.\nDo you want to create it now?\n\nWithout a configuration file, neither KGpg nor GnuPG will work properly."),
172 p << gpgbin << QLatin1String( "--homedir" ) << gpgHome << QLatin1String( "--no-tty" ) << QLatin1String( "--list-secret-keys" );
179 KMessageBox::sorry(this, i18n("Cannot create configuration file. Please check if destination media is mounted and if you have write access."));
216 const QString newServer(KInputDialog::getText(i18n("Add New Key Server"), i18n("Server URL:")));
276 alwaysKeyID = KgpgInterface::getGpgSetting(QLatin1String( "encrypt-to" ), KGpgSettings::gpgConfigPath());
320 m_page4->gpg_home_path->setText(KUrl::fromPath(gpgConfigPath).directory(KUrl::AppendTrailingSlash));
322 m_useagent = KgpgInterface::getGpgBoolSetting(QLatin1String( "use-agent" ), KGpgSettings::gpgConfigPath());
368 fileEncryptionKey = m_page1->file_key->itemData(m_page1->file_key->currentIndex(), Qt::ToolTipRole).toString();
378 alwaysKeyID = m_page1->always_key->itemData(m_page1->always_key->currentIndex(), Qt::ToolTipRole).toString();
382 KgpgInterface::setGpgSetting(QLatin1String( "encrypt-to" ), alwaysKeyID, KGpgSettings::gpgConfigPath());
396 slotInstallDecrypt(QLatin1String( "application/pgp-encrypted,application/pgp-signature,application/pgp-keys" ));
403 KgpgInterface::setGpgBoolSetting(QLatin1String( "use-agent" ), true, KGpgSettings::gpgConfigPath());
404 KgpgInterface::setGpgBoolSetting(QLatin1String( "no-use-agent" ), false, KGpgSettings::gpgConfigPath());
406 KgpgInterface::setGpgBoolSetting(QLatin1String( "use-agent" ), false, KGpgSettings::gpgConfigPath());
410 KgpgInterface::setGpgSetting(QLatin1String("keyserver"), m_serverModel->defaultServer(), KGpgSettings::gpgConfigPath());
483 const QString path(KStandardDirs::locateLocal("data", QLatin1String( "konqueror/servicemenus/decryptfile.desktop" )));
501 QString path(KStandardDirs::locateLocal("services", QLatin1String( "ServiceMenus/signfile.desktop" )));
526 if (m_page1->kcfg_EncryptFilesTo->isChecked() && (m_page1->file_key->currentText() != fileEncryptionKey))
533 (m_page1->always_key->itemData(m_page1->always_key->currentIndex(), Qt::ToolTipRole).toString()) != alwaysKeyID)
539 if (m_page4->gpg_home_path->text() != KUrl::fromPath(gpgConfigPath).directory(KUrl::AppendTrailingSlash))
Definition: conf_encryption.h:23
Definition: kgpgitemmodel.h:44
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
QString & append(QChar ch)
QString defaultServer() const
returns the URL of the default server
Definition: gpgservermodel.cpp:75
static QString gpgConfigPath()
Get The path of the gpg configuration file.
Definition: kgpgsettings.h:288
virtual void sort(int column, Qt::SortOrder order)
void setGpgBoolSetting(const QString &name, const bool enable, const QString &url)
Definition: kgpginterface.cpp:107
Definition: kgpgsettings.h:59
bool getGpgBoolSetting(const QString &name, const QString &configfile)
Definition: kgpginterface.cpp:93
void setEncryptionKeyFilter(bool b)
show only keys capable of encryption
Definition: keylistproxymodel.cpp:475
bool contains(const QString &str, Qt::CaseSensitivity cs) const
bool exists() const
void settingsUpdated()
static void setKeyServers(const QStringList &v)
Set Key servers used by KGpg.
Definition: kgpgsettings.h:886
void chop(int n)
void setKeyModel(KGpgItemModel *)
Definition: keylistproxymodel.cpp:253
void setGpgSetting(const QString &name, const QString &value, const QString &url)
Definition: kgpginterface.cpp:58
void clear()
virtual int rowCount(const QModelIndex &parent=QModelIndex()) const
Definition: kgpgitemmodel.cpp:73
bool isValid() const
QStringList stringList() const
void addWidget(QWidget *widget, int stretch, QFlags< Qt::AlignmentFlag > alignment)
KGpgKeyNode * findKeyNode(const QString &id) const
Definition: kgpgitemmodel.cpp:238
void setTrustFilter(const KgpgCore::KgpgKeyTrustFlag t)
set the minimum trust level to be shown
Definition: keylistproxymodel.cpp:466
virtual bool removeRows(int row, int count, const QModelIndex &parent)
void refreshTrust(KgpgCore::KgpgKeyTrust, QColor)
static QString gpgBinaryPath()
Get The path of the gpg binary used by KGpg.
Definition: kgpgsettings.h:307
static QString emailTemplate()
Get This is the text of the email sent by the "Sign and Mail User ID" action.
Definition: kgpgsettings.h:953
static QColor colorUltimate()
Get Color used for ultimately trusted keys.
Definition: kgpgsettings.h:801
bool isEmpty() const
static void setEmailTemplate(const QString &v)
Set This is the text of the email sent by the "Sign and Mail User ID" action.
Definition: kgpgsettings.h:943
kgpgOptions(QWidget *parent=0, KGpgItemModel *model=0)
Definition: kgpgoptions.cpp:43
bool isEmpty() const
int row() const
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
virtual QModelIndex index(int row, int column, const QModelIndex &parent=QModelIndex()) const
Definition: kgpgitemmodel.cpp:44
static void setFileEncryptionKey(const QString &v)
Set File encryption key.
Definition: kgpgsettings.h:126
QStringList & replaceInStrings(const QString &before, const QString &after, Qt::CaseSensitivity cs)
static void setLeftClick(int v)
Set Choose default left-click behavior.
Definition: kgpgsettings.h:563
int defaultRow() const
returns the row of the current default keyserver
Definition: gpgservermodel.cpp:65
static void setGpgConfigPath(const QString &v)
Set The path of the gpg configuration file.
Definition: kgpgsettings.h:278
bool contains(QChar ch, Qt::CaseSensitivity cs) const
trust value undefined (i.e. you did not set a trust level)
Definition: kgpgkey.h:59
Definition: keylistproxymodel.h:30
Definition: kgpgsettings.h:13
QString mid(int position, int n) const
static QColor colorMarginal()
Get Color used for marginally trusted keys.
Definition: kgpgsettings.h:820
int length() const
QString left(int n) const
void changeFont(QFont)
void homeChanged()
void prepend(const T &value)
QModelIndex nodeIndex(KGpgNode *node)
Definition: keylistproxymodel.cpp:492
trust value unknown (i.e. no entry in gpg's trust database)
Definition: kgpgkey.h:60
this key has highest possible level of trust (e.g. your own secret keys)
Definition: kgpgkey.h:64
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
QObject * parent() const
void setStringList(const QStringList &strings)
void setSpacing(int spacing)
QString getGpgSetting(const QString &name, const QString &configfile)
Definition: kgpginterface.cpp:38
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.