KCalCore Library
Go to the documentation of this file.
31 #ifndef KCALCORE_DURATION_H
32 #define KCALCORE_DURATION_H
34 #include "kcalcore_export.h"
79 Duration(
const KDateTime &start,
const KDateTime &end );
92 Duration(
const KDateTime &start,
const KDateTime &end, Type type );
101 Duration(
int duration, Type type = Seconds );
125 operator bool()
const;
136 bool operator<(
const Duration &other )
const;
143 {
return !other.operator<( *this ); }
150 {
return other.operator<( *this ); }
157 {
return !operator<( other ); }
166 bool operator==(
const Duration &other )
const;
176 {
return !operator==( other ); }
195 {
return Duration( *
this ) += other; }
220 {
return Duration( *
this ) += other; }
235 {
return Duration( *
this ) *= value; }
250 {
return Duration( *
this ) /= value; }
259 KDateTime end(
const KDateTime &start )
const;
270 bool isDaily()
const;
275 int asSeconds()
const;
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Sat Jul 13 2013 01:24:51 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.