KContacts
8#include "calendarurl.h"
9#include "parametermap_p.h"
15using namespace KContacts;
24 Private(
const Private &other)
27 mParamMap = other.mParamMap;
34 ParameterMap mParamMap;
45 ret = QStringLiteral(
"Unknown");
48 ret = QStringLiteral(
"FreeBusy");
51 ret = QStringLiteral(
"CalUri");
54 ret = QStringLiteral(
"Caladruri");
60CalendarUrl::CalendarUrl()
77CalendarUrl::~CalendarUrl()
81bool CalendarUrl::operator==(
const CalendarUrl &other)
const
83 return (d->mParamMap == other.d->mParamMap) && (d->type == other.type()) && (d->url == other.url());
86bool CalendarUrl::operator!=(
const CalendarUrl &other)
const
88 return !(other == *
this);
100QString CalendarUrl::toString()
const
102 QString str = QLatin1String(
"CalendarUrl {\n");
103 str += QStringLiteral(
" url: %1\n").
arg(d->url.toString());
104 str += QStringLiteral(
" type: %1\n").
arg(CalendarUrl::Private::typeToString(d->type));
105 str += d->mParamMap.toString();
106 str += QLatin1String(
"}\n");
110void CalendarUrl::setParams(
const ParameterMap ¶ms)
112 d->mParamMap = params;
115ParameterMap CalendarUrl::params()
const
120bool CalendarUrl::isValid()
const
122 return (d->type !=
Unknown) && (d->url.isValid());
135void CalendarUrl::setUrl(
const QUrl &url)
140QUrl CalendarUrl::url()
const
145QDataStream &KContacts::operator<<(QDataStream &s,
const CalendarUrl &calUrl)
147 return s << calUrl.d->mParamMap <<
static_cast<uint
>(calUrl.d->type) << calUrl.d->url;
150QDataStream &KContacts::operator>>(QDataStream &s,
CalendarUrl &calUrl)
153 s >> calUrl.d->mParamMap >>
type >> calUrl.d->url;
VehicleSection::Type type(QStringView coachNumber, QStringView coachClassification)
QString arg(Args &&... args) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Jan 24 2025 11:55:38 by
doxygen 1.13.2 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.