• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

kabc

KABC::TimeZone

KABC::TimeZone Class Reference

Time zone information. More...

#include <timezone.h>

List of all members.

Public Member Functions

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

Friends

QDataStream & operator<< (QDataStream &, const TimeZone &)
QDataStream & operator>> (QDataStream &, TimeZone &)

Detailed Description

Time zone information.

This class stores information about a time zone.

Definition at line 35 of file timezone.h.


Constructor & Destructor Documentation

TimeZone::TimeZone (  ) 

Construct invalid time zone.

Definition at line 47 of file timezone.cpp.

TimeZone::TimeZone ( int  offset  ) 

Construct time zone.

Parameters:
offset Offset in minutes relative to UTC.

Definition at line 52 of file timezone.cpp.

TimeZone::TimeZone ( const TimeZone &  other  ) 

Copy constructor.

Definition at line 57 of file timezone.cpp.

TimeZone::~TimeZone (  ) 

Destroys the time zone.

Definition at line 62 of file timezone.cpp.


Member Function Documentation

bool TimeZone::isValid (  )  const

Return, if this time zone object is valid.

Definition at line 77 of file timezone.cpp.

int TimeZone::offset (  )  const

Return offset in minutes relative to UTC.

Definition at line 72 of file timezone.cpp.

void TimeZone::setOffset ( int  offset  ) 

Set time zone offset relative to UTC.

Parameters:
offset Offset in minutes.

Definition at line 66 of file timezone.cpp.

QString TimeZone::toString (  )  const

Return string representation of time zone offset.

Definition at line 113 of file timezone.cpp.


Friends And Related Function Documentation

QDataStream& operator<< ( QDataStream &  ,
const TimeZone &   
) [friend]

Serializes the timezone object into the stream.

QDataStream& operator>> ( QDataStream &  ,
TimeZone &   
) [friend]

Initializes the timezone object from the stream.


The documentation for this class was generated from the following files:
  • timezone.h
  • timezone.cpp

kabc

Skip menu "kabc"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.6.2-20100208
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal