kabc
23#include <QtCore/QDataStream>
24#include <QtCore/QSharedData>
28class TimeZone::Private :
public QSharedData
31 Private(
int offset = 0,
bool valid =
false )
32 : mOffset(
offset ), mValid( valid )
36 Private(
const Private &other )
37 : QSharedData( other )
39 mOffset = other.mOffset;
40 mValid = other.mValid;
53 : d( new Private( offset, true ) )
82bool TimeZone::operator==(
const TimeZone &t )
const
92 if ( t.d->mOffset == d->mOffset ) {
99bool TimeZone::operator!=(
const TimeZone &t )
const
101 return !( *
this == t );
106 if (
this != &other ) {
117 str += QString::fromLatin1(
"TimeZone {\n" );
118 str += QString::fromLatin1(
" Offset: %1\n" ).arg( d->mOffset );
119 str += QString::fromLatin1(
"}\n" );
126 return s << zone.d->mOffset << zone.d->mValid;
131 s >> zone.d->mOffset >> zone.d->mValid;
void setOffset(int offset)
Set time zone offset relative to UTC.
int offset() const
Return offset in minutes relative to UTC.
TimeZone()
Construct invalid time zone.
QString toString() const
Return string representation of time zone offset.
~TimeZone()
Destroys the time zone.
bool isValid() const
Return, if this time zone object is valid.
Class that holds a Calendar Url (FBURL/CALADRURI/CALURI)
QDataStream & operator<<(QDataStream &stream, const Address &address)
Serializes the address object into the stream.
QDataStream & operator>>(QDataStream &stream, Address &address)
Initializes the address object from the stream.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by
doxygen 1.9.5 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.