KContacts::TimeZone

KContacts::TimeZone Class Reference

#include <timezone.h>

Public Member Functions

 TimeZone ()
 
 TimeZone (int offset)
 
 TimeZone (const TimeZone &other)
 
 ~TimeZone ()
 
bool isValid () const
 
int offset () const
 
bool operator!= (const TimeZone &other) const
 
TimeZoneoperator= (const TimeZone &other)
 
bool operator== (const TimeZone &other) const
 
void setOffset (int offset)
 
QString toString () const
 

Friends

KCONTACTS_EXPORT QDataStreamoperator<< (QDataStream &, const TimeZone &)
 
KCONTACTS_EXPORT QDataStreamoperator>> (QDataStream &, TimeZone &)
 

Detailed Description

Time zone information.

This class stores information about a time zone.

Definition at line 34 of file timezone.h.

Constructor & Destructor Documentation

TimeZone::TimeZone ( )

Construct invalid time zone.

Definition at line 48 of file timezone.cpp.

TimeZone::TimeZone ( int  offset)

Construct time zone.

Parameters
offsetOffset in minutes relative to UTC.

Definition at line 53 of file timezone.cpp.

TimeZone::TimeZone ( const TimeZone other)

Copy constructor.

Definition at line 58 of file timezone.cpp.

TimeZone::~TimeZone ( )

Destroys the time zone.

Definition at line 63 of file timezone.cpp.

Member Function Documentation

bool TimeZone::isValid ( ) const

Return, if this time zone object is valid.

Definition at line 78 of file timezone.cpp.

int TimeZone::offset ( ) const

Return offset in minutes relative to UTC.

Definition at line 73 of file timezone.cpp.

void TimeZone::setOffset ( int  offset)

Set time zone offset relative to UTC.

Parameters
offsetOffset in minutes.

Definition at line 67 of file timezone.cpp.

QString TimeZone::toString ( ) const

Return string representation of time zone offset.

Definition at line 114 of file timezone.cpp.

Friends And Related Function Documentation

KCONTACTS_EXPORT QDataStream& operator<< ( QDataStream ,
const TimeZone  
)
friend

Serializes the timezone object into the stream.

KCONTACTS_EXPORT QDataStream& operator>> ( QDataStream ,
TimeZone  
)
friend

Initializes the timezone object from the stream.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun May 31 2020 23:02:39 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.