24 #include <tqvaluelist.h>
26 #include <tdelibs_export.h>
35 friend KABC_EXPORT TQDataStream &
operator<<( TQDataStream &,
const Key & );
36 friend KABC_EXPORT TQDataStream &operator>>( TQDataStream &,
Key & );
39 typedef TQValueList<Key> List;
40 typedef TQValueList<int> TypeList;
61 Key(
const TQString &text = TQString::null,
int type = PGP );
68 bool operator==(
const Key & )
const;
69 bool operator!=(
const Key & )
const;
74 void setId(
const TQString &
id );
84 void setBinaryData(
const TQByteArray &binary );
89 TQByteArray binaryData()
const;
94 void setTextData(
const TQString &text );
99 TQString textData()
const;
104 bool isBinary()
const;
109 void setType(
int type );
114 void setCustomTypeString(
const TQString &custom );
124 TQString customTypeString()
const;
129 static TypeList typeList();
134 static TQString typeLabel(
int type );
137 TQByteArray mBinaryData;
140 TQString mCustomTypeString;
146 KABC_EXPORT TQDataStream &
operator<<( TQDataStream &,
const Key & );
147 KABC_EXPORT TQDataStream &operator>>( TQDataStream &, Key & );
A class to store an encryption key.
kdbgstream & operator<<(const TQValueList< T > &list)
static data, shared by ALL addressee objects