KDECore
Go to the documentation of this file.
22 #ifndef KSSLD_DBUSMETATYPES_H
23 #define KSSLD_DBUSMETATYPES_H
25 Q_DECLARE_METATYPE(QSslCertificate)
27 Q_DECLARE_METATYPE(
QList<QSslCertificate>)
32 QDBusArgument &operator<<(QDBusArgument &argument, const QSslCertificate &cert)
34 argument.beginStructure();
35 argument << cert.toDer();
36 argument.endStructure();
41 const QDBusArgument &
operator>>(
const QDBusArgument &argument, QSslCertificate &cert)
44 argument.beginStructure();
46 argument.endStructure();
47 cert = QSslCertificate(data, QSsl::Der);
54 argument.beginStructure();
58 argument.endStructure();
70 argument.beginStructure();
71 argument >> cert >> hostName >> isRejected >> expiryStr >> ignoredErrors;
72 argument.endStructure();
85 argument.beginStructure();
86 argument << static_cast<int>(error);
87 argument.endStructure();
95 argument.beginStructure();
97 argument.endStructure();
105 qDBusRegisterMetaType<QSslCertificate>();
106 qDBusRegisterMetaType<KSslCertificateRule>();
107 qDBusRegisterMetaType<QList<QSslCertificate> >();
108 qDBusRegisterMetaType<KSslError::Error>();
109 qDBusRegisterMetaType<QList<KSslError::Error> >();
112 #endif //KSSLD_DBUSMETATYPES_H
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Apr 16 2013 20:55:43 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.