• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepimlibs API Reference
  • KDE Home
  • Contact Us
 

kabc

  • KABC
  • TimeZone
Public Member Functions | Friends | List of all members
KABC::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 &) 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
offsetOffset 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
offsetOffset 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
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:01:06 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kabc

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

kdepimlibs API Reference

Skip menu "kdepimlibs API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kldap
  • kmbox
  • kmime
  • kpimidentities
  • kpimtextedit
  • kresources
  • ktnef
  • kxmlrpcclient
  • microblog

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal