KIO

kssld_interface.h
1/*
2 This file is part of the KDE libraries
3 SPDX-FileCopyrightText: 2007 Andreas Hartmetz <ahartmetz@gmail.com>
4
5 SPDX-License-Identifier: LGPL-2.0-or-later
6*/
7
8#ifndef KSSLDINTERFACE_H
9#define KSSLDINTERFACE_H
10
11#include <QByteArray>
12#include <QDBusAbstractInterface>
13#include <QDBusConnection>
14#include <QDBusReply>
15#include <QList>
16#include <QObject>
17#include <QString>
18#include <QVariant>
19
20#include "kssld_dbusmetatypes.h"
21
22/**
23 * Proxy class for interface org.kde.KSSLD
24 */
26{
28public:
29 static inline const char *staticInterfaceName()
30 {
31 return "org.kde.KSSLD";
32 }
33
34public:
36 : QDBusAbstractInterface(service, path, staticInterfaceName(), connection, parent)
37 {
38 registerMetaTypesForKSSLD();
39 }
40
41 ~OrgKdeKSSLDInterface() override
42 {
43 }
44
45public Q_SLOTS: // METHODS
46 Q_NOREPLY void setRule(const KSslCertificateRule &rule)
47 {
48 QList<QVariant> argumentList;
49 argumentList << QVariant::fromValue(rule);
50 callWithArgumentList(QDBus::Block, QStringLiteral("setRule"), argumentList);
51 }
52
53 Q_NOREPLY void clearRule(const KSslCertificateRule &rule)
54 {
55 QList<QVariant> argumentList;
56 argumentList << QVariant::fromValue(rule);
57 callWithArgumentList(QDBus::Block, QStringLiteral("clearRule__rule"), argumentList);
58 }
59
60 Q_NOREPLY void clearRule(const QSslCertificate &cert, const QString &hostName)
61 {
62 QList<QVariant> argumentList;
63 argumentList << QVariant::fromValue(cert) << QVariant::fromValue(hostName);
64 callWithArgumentList(QDBus::Block, QStringLiteral("clearRule__certHost"), argumentList);
65 }
66
67 QDBusReply<KSslCertificateRule> rule(const QSslCertificate &cert, const QString &hostName)
68 {
69 QList<QVariant> argumentList;
70 argumentList << QVariant::fromValue(cert) << QVariant::fromValue(hostName);
71 return callWithArgumentList(QDBus::Block, QStringLiteral("rule"), argumentList);
72 }
73};
74
75namespace org
76{
77namespace kde
78{
79typedef ::OrgKdeKSSLDInterface KSSLDInterface;
80}
81}
82
83#endif // KSSLDINTERFACE_H
Proxy class for interface org.kde.KSSLD.
QDBusMessage callWithArgumentList(QDBus::CallMode mode, const QString &method, const QList< QVariant > &args)
QDBusConnection connection() const const
QString path() const const
QString service() const const
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
QVariant fromValue(T &&value)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:56:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.