• 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
kgpgsettings_addons.h
Go to the documentation of this file.
1 /***************************************************************************
2  kgpgsettings_addons.h - description
3  -------------------
4  begin : Mon Jul 8 2002
5  copyright : (C) 2003Waldo Bastian
6  email : bastian@kde.org
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef KGPGSETTINGS_ADDONS_H
19 #define KGPGSETTINGS_ADDONS_H
20 
21 public:
22  static
23  QString defaultKey()
24  {
25  if (self()->mDefaultKey.isEmpty())
26  {
27  self()->mDefaultKey = KgpgInterface::getGpgSetting(QLatin1String( "default-key" ), gpgConfigPath());
28  }
29  return self()->mDefaultKey;
30  }
31 
32  static
33  void setDefaultKey(const QString &_defaultKey)
34  {
35  self()->mDefaultKey = _defaultKey;
36  KgpgInterface::setGpgSetting(QLatin1String( "default-key" ), _defaultKey, gpgConfigPath());
37  }
38 
39 private:
40  QString mDefaultKey;
41 
42 #endif //KGPGSETTINGS_ADDONS_H
mDefaultKey
QString mDefaultKey
Definition: kgpgsettings_addons.h:40
setDefaultKey
static void setDefaultKey(const QString &_defaultKey)
Definition: kgpgsettings_addons.h:33
KgpgInterface::setGpgSetting
void setGpgSetting(const QString &name, const QString &value, const QString &url)
Definition: kgpginterface.cpp:58
QString::isEmpty
bool isEmpty() const
QString
QLatin1String
defaultKey
static QString defaultKey()
Definition: kgpgsettings_addons.h:23
KgpgInterface::getGpgSetting
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

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