KContacts
8 #ifndef KCONTACTS_KEY_H
9 #define KCONTACTS_KEY_H
11 #include "kcontacts_export.h"
13 #include <QDataStream>
14 #include <QSharedDataPointer>
21 class KCONTACTS_EXPORT
Key
67 Q_REQUIRED_RESULT
bool operator==(
const Key &other)
const;
72 Q_REQUIRED_RESULT
bool operator!=(
const Key &other)
const;
79 Key &operator=(
const Key &other);
84 void setId(
const QString &identifier);
89 Q_REQUIRED_RESULT
QString id()
const;
99 Q_REQUIRED_RESULT
QByteArray binaryData()
const;
104 void setTextData(
const QString &data);
109 Q_REQUIRED_RESULT
QString textData()
const;
114 Q_REQUIRED_RESULT
bool isBinary()
const;
123 void setType(
Type type);
128 void setCustomTypeString(
const QString &type);
133 Q_REQUIRED_RESULT
Type type()
const;
138 Q_REQUIRED_RESULT
QString customTypeString()
const;
143 Q_REQUIRED_RESULT
QString toString()
const;
148 Q_REQUIRED_RESULT
static TypeList typeList();
153 Q_REQUIRED_RESULT
static QString typeLabel(
Type type);
KCALENDARCORE_EXPORT QDataStream & operator<<(QDataStream &out, const KCalendarCore::Alarm::Ptr &)
KCALENDARCORE_EXPORT QDataStream & operator>>(QDataStream &in, const KCalendarCore::Alarm::Ptr &)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sat Dec 2 2023 03:51:38 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.