• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdelibs
  • Sitemap
  • Contact Us
 

KIO

ksslsigners.cpp

Go to the documentation of this file.
00001 /* This file is part of the KDE project
00002  *
00003  * Copyright (C) 2001 George Staikos <staikos@kde.org>
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public License
00016  * along with this library; see the file COPYING.LIB.  If not, write to
00017  * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00018  * Boston, MA 02110-1301, USA.
00019  */
00020 
00021 #include "ksslsigners.h"
00022 
00023 #include <QtCore/QString>
00024 #include <QtCore/QStringList>
00025 #include <QtDBus/QtDBus>
00026 #include "ksslcertificate.h"
00027 #include <stdlib.h>
00028 #include <kdebug.h>
00029 
00030 
00031 KSSLSigners::KSSLSigners() {
00032 }
00033 
00034 
00035 KSSLSigners::~KSSLSigners() {
00036 }
00037 
00038 bool KSSLSigners::addCA(KSSLCertificate& cert,
00039                         bool ssl,
00040                         bool email,
00041                         bool code) const {
00042     return addCA(cert.toString(), ssl, email, code);
00043 }
00044 
00045 
00046 bool KSSLSigners::addCA(const QString &cert,
00047                         bool ssl,
00048                         bool email,
00049                         bool code) const {
00050      return QDBusReply<bool>(QDBusInterface("org.kde.kded", "/modules/kssld").
00051                              call("caAdd", cert, ssl, email, code));
00052 }
00053 
00054 
00055 bool KSSLSigners::regenerate() {
00056      return QDBusReply<bool>(QDBusInterface("org.kde.kded", "/modules/kssld").
00057                              call("caRegenerate"));
00058 }
00059 
00060 
00061 bool KSSLSigners::useForSSL(KSSLCertificate& cert) const {
00062     return useForSSL(cert.getSubject());
00063 }
00064 
00065 
00066 bool KSSLSigners::useForSSL(const QString &subject) const{
00067      return QDBusReply<bool>(QDBusInterface("org.kde.kded", "/modules/kssld").
00068                              call("caUseForSSL", subject));
00069 }
00070 
00071 
00072 bool KSSLSigners::useForEmail(KSSLCertificate& cert) const{
00073     return useForEmail(cert.getSubject());
00074 }
00075 
00076 
00077 bool KSSLSigners::useForEmail(const QString &subject) const{
00078      return QDBusReply<bool>(QDBusInterface("org.kde.kded", "/modules/kssld").
00079                              call("caUseForEmail", subject));
00080 }
00081 
00082 
00083 bool KSSLSigners::useForCode(KSSLCertificate& cert) const{
00084     return useForCode(cert.getSubject());
00085 }
00086 
00087 
00088 bool KSSLSigners::useForCode(const QString &subject) const{
00089      return QDBusReply<bool>(QDBusInterface("org.kde.kded", "/modules/kssld").
00090                              call("caUseForCode", subject));
00091 }
00092 
00093 
00094 bool KSSLSigners::remove(KSSLCertificate& cert) {
00095     return remove(cert.getSubject());
00096 }
00097 
00098 
00099 bool KSSLSigners::remove(const QString &subject) {
00100      return QDBusReply<bool>(QDBusInterface("org.kde.kded", "/modules/kssld").
00101                              call("caRemove", subject));
00102 }
00103 
00104 
00105 QStringList KSSLSigners::list() {
00106      return QDBusReply<QStringList>(QDBusInterface("org.kde.kded", "/modules/kssld").
00107                                     call("caList"));
00108 }
00109 
00110 
00111 QString KSSLSigners::getCert(const QString &subject) {
00112      return QDBusReply<QString>(QDBusInterface("org.kde.kded", "/modules/kssld").
00113                                 call("caGetCert", subject));
00114 }
00115 
00116 
00117 bool KSSLSigners::setUse(const QString &subject, bool ssl, bool email, bool code) {
00118      return QDBusReply<bool>(QDBusInterface("org.kde.kded", "/modules/kssld").
00119                              call("caSetUse", subject, ssl, email, code));
00120 }
00121 
00122 
00123 
00124 

KIO

Skip menu "KIO"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdelibs

Skip menu "kdelibs"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • Kate
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • Kross
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
Generated for kdelibs by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal