kabc
24 #include "kabc_export.h"
26 #include <QtCore/QDataStream>
27 #include <QtCore/QSharedDataPointer>
36 friend KABC_EXPORT QDataStream &operator<<( QDataStream &,
const Key & );
37 friend KABC_EXPORT QDataStream &operator>>( QDataStream &,
Key & );
65 explicit Key(
const QString &text = QString(),
Type type = PGP );
80 bool operator==(
const Key & )
const;
85 bool operator!=(
const Key & )
const;
92 Key &operator=(
const Key &other );
97 void setId(
const QString &identifier );
107 void setBinaryData(
const QByteArray &data );
112 QByteArray binaryData()
const;
117 void setTextData(
const QString &data );
122 QString textData()
const;
127 bool isBinary()
const;
136 void setType(
Type type );
141 void setCustomTypeString(
const QString &type );
151 QString customTypeString()
const;
156 QString toString()
const;
166 static QString typeLabel(
Type type );
170 QSharedDataPointer<Private> d;
176 KABC_EXPORT QDataStream &operator<<( QDataStream &stream,
const Key &key );
181 KABC_EXPORT QDataStream &operator>>( QDataStream &stream,
Key &key );
QList< Key > List
List of keys.
QList< Type > TypeList
List of key types.
A class to store an encryption key.
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:05 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.