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

KDECore

  • sources
  • kde-4.12
  • kdelibs
  • 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  */
38 class OrgKdeKSSLDInterface: public QDBusAbstractInterface
39 {
40  Q_OBJECT
41 public:
42  static inline const char *staticInterfaceName()
43  {
44  return "org.kde.KSSLD";
45  }
46 
47 public:
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 
58 public 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 
92 namespace org {
93  namespace kde {
94  typedef ::OrgKdeKSSLDInterface KSSLDInterface;
95  }
96 }
97 
98 
99 #endif //KSSLDINTERFACE_H
OrgKdeKSSLDInterface::staticInterfaceName
static const char * staticInterfaceName()
Definition: kssld_interface.h:42
OrgKdeKSSLDInterface
Definition: kssld_interface.h:38
QString
QObject
OrgKdeKSSLDInterface::rule
QDBusReply< KSslCertificateRule > rule(const QSslCertificate &cert, const QString &hostName)
Definition: kssld_interface.h:83
OrgKdeKSSLDInterface::setRule
Q_NOREPLY void setRule(const KSslCertificateRule &rule)
Definition: kssld_interface.h:59
OrgKdeKSSLDInterface::~OrgKdeKSSLDInterface
~OrgKdeKSSLDInterface()
Definition: kssld_interface.h:56
QDBusAbstractInterface
registerMetaTypesForKSSLD
static void registerMetaTypesForKSSLD()
Definition: kssld_dbusmetatypes.h:103
KSslCertificateRule
Definition: ksslcertificatemanager.h:37
OrgKdeKSSLDInterface::OrgKdeKSSLDInterface
OrgKdeKSSLDInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent=0)
Definition: kssld_interface.h:48
OrgKdeKSSLDInterface::clearRule
Q_NOREPLY void clearRule(const KSslCertificateRule &rule)
Definition: kssld_interface.h:67
org::kde::KSSLDInterface
::OrgKdeKSSLDInterface KSSLDInterface
Definition: ksslcertificatemanager_p.h:59
kssld_dbusmetatypes.h
QList< QVariant >
OrgKdeKSSLDInterface::clearRule
Q_NOREPLY void clearRule(const QSslCertificate &cert, const QString &hostName)
Definition: kssld_interface.h:75
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:47:09 by doxygen 1.8.7 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 API Reference

Skip menu "kdelibs 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
  • kjsembed
  •   WTF
  • KNewStuff
  • KParts
  • KPty
  • Kross
  • KUnitConversion
  • KUtils
  • Nepomuk
  • Nepomuk-Core
  • Nepomuk
  • Plasma
  • Solid
  • Sonnet
  • ThreadWeaver

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