• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdelibs-4.14.38 API Reference
  • KDE Home
  • Contact Us
 

KDECore

  • kdecore
  • network
  • kssld
kssld_interface.h
Go to the documentation of this file.
1/*
2 This file is part of the KDE libraries
3
4 Copyright (C) 2007 Andreas Hartmetz <ahartmetz@gmail.com>
5
6 This library is free software; you can redistribute it and/or
7 modify it under the terms of the GNU Library General Public
8 License as published by the Free Software Foundation; either
9 version 2 of the License, or (at your option) any later version.
10
11 This library is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 Library General Public License for more details.
15
16 You should have received a copy of the GNU Library General Public License
17 along with this library; see the file COPYING.LIB. If not, write to
18 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
19 Boston, MA 02110-1301, USA.
20*/
21
22#ifndef KSSLDINTERFACE_H
23#define KSSLDINTERFACE_H
24
25#include <QtCore/QObject>
26#include <QtCore/QByteArray>
27#include <QtCore/QList>
28#include <QtCore/QString>
29#include <QtCore/QVariant>
30#include <QtDBus/QtDBus>
31
32#include "kssld_dbusmetatypes.h"
33
34
35/*
36 * Proxy class for interface org.kde.KSSLD
37 */
38class OrgKdeKSSLDInterface: public QDBusAbstractInterface
39{
40 Q_OBJECT
41public:
42 static inline const char *staticInterfaceName()
43 {
44 return "org.kde.KSSLD";
45 }
46
47public:
48 OrgKdeKSSLDInterface(const QString &service, const QString &path,
49 const QDBusConnection &connection,
50 QObject *parent = 0)
51 : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
52 {
53 registerMetaTypesForKSSLD();
54 }
55
56 ~OrgKdeKSSLDInterface() {}
57
58public Q_SLOTS: // METHODS
59 Q_NOREPLY void setRule(const KSslCertificateRule &rule)
60 {
61 QList<QVariant> argumentList;
62 argumentList << qVariantFromValue(rule);
63 callWithArgumentList(QDBus::Block, QLatin1String("setRule"),
64 argumentList);
65 }
66
67 Q_NOREPLY void clearRule(const KSslCertificateRule &rule)
68 {
69 QList<QVariant> argumentList;
70 argumentList << qVariantFromValue(rule);
71 callWithArgumentList(QDBus::Block, QLatin1String("clearRule__rule"),
72 argumentList);
73 }
74
75 Q_NOREPLY void clearRule(const QSslCertificate &cert, const QString &hostName)
76 {
77 QList<QVariant> argumentList;
78 argumentList << qVariantFromValue(cert) << qVariantFromValue(hostName);
79 callWithArgumentList(QDBus::Block, QLatin1String("clearRule__certHost"),
80 argumentList);
81 }
82
83 QDBusReply<KSslCertificateRule> rule(const QSslCertificate &cert, const QString &hostName)
84 {
85 QList<QVariant> argumentList;
86 argumentList << qVariantFromValue(cert) << qVariantFromValue(hostName);
87 return callWithArgumentList(QDBus::Block, QLatin1String("rule"),
88 argumentList);
89 }
90};
91
92namespace org {
93 namespace kde {
94 typedef ::OrgKdeKSSLDInterface KSSLDInterface;
95 }
96}
97
98
99#endif //KSSLDINTERFACE_H
KSslCertificateRule
Definition: ksslcertificatemanager.h:38
OrgKdeKSSLDInterface
Definition: kssld_interface.h:39
OrgKdeKSSLDInterface::rule
QDBusReply< KSslCertificateRule > rule(const QSslCertificate &cert, const QString &hostName)
Definition: kssld_interface.h:83
OrgKdeKSSLDInterface::clearRule
Q_NOREPLY void clearRule(const KSslCertificateRule &rule)
Definition: kssld_interface.h:67
OrgKdeKSSLDInterface::setRule
Q_NOREPLY void setRule(const KSslCertificateRule &rule)
Definition: kssld_interface.h:59
OrgKdeKSSLDInterface::clearRule
Q_NOREPLY void clearRule(const QSslCertificate &cert, const QString &hostName)
Definition: kssld_interface.h:75
OrgKdeKSSLDInterface::staticInterfaceName
static const char * staticInterfaceName()
Definition: kssld_interface.h:42
OrgKdeKSSLDInterface::OrgKdeKSSLDInterface
OrgKdeKSSLDInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent=0)
Definition: kssld_interface.h:48
OrgKdeKSSLDInterface::~OrgKdeKSSLDInterface
~OrgKdeKSSLDInterface()
Definition: kssld_interface.h:56
QDBusAbstractInterface
QList
Definition: kaboutdata.h:33
QObject
QString
kssld_dbusmetatypes.h
registerMetaTypesForKSSLD
static void registerMetaTypesForKSSLD()
Definition: kssld_dbusmetatypes.h:103
org::kde::KSSLDInterface
::OrgKdeKSSLDInterface KSSLDInterface
Definition: ksslcertificatemanager_p.h:59
org
Definition: ksslcertificatemanager_p.h:58
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Feb 20 2023 00:00:00 by doxygen 1.9.6 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

KDECore

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

kdelibs-4.14.38 API Reference

Skip menu "kdelibs-4.14.38 API Reference"
  • DNSSD
  • Interfaces
  •   KHexEdit
  •   KMediaPlayer
  •   KSpeech
  •   KTextEditor
  • kconf_update
  • KDE3Support
  •   KUnitTest
  • KDECore
  • KDED
  • KDEsu
  • KDEUI
  • KDEWebKit
  • KDocTools
  • KFile
  • KHTML
  • KImgIO
  • KInit
  • kio
  • KIOSlave
  • KJS
  •   KJS-API
  •   WTF
  • kjsembed
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver
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