KCal Library
Go to the documentation of this file.
31 #ifndef KCAL_DURATION_H
32 #define KCAL_DURATION_H
34 #include "kcal_export.h"
79 Duration(
const KDateTime &start,
const KDateTime &end );
92 Duration(
const KDateTime &start,
const KDateTime &end, Type type );
100 Duration(
int duration, Type type = Seconds );
124 operator bool()
const;
135 bool operator<(
const Duration &other )
const;
142 {
return !other.operator<( *this ); }
149 {
return other.operator<( *this ); }
156 {
return !operator<( other ); }
165 bool operator==(
const Duration &other )
const;
175 {
return !operator==( other ); }
194 {
return Duration( *
this ) += other; }
219 {
return Duration( *
this ) += other; }
234 {
return Duration( *
this ) *= value; }
249 {
return Duration( *
this ) /= value; }
258 KDateTime end(
const KDateTime &start )
const;
269 bool isDaily()
const;
274 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:29:14 by
doxygen 1.8.3.1 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.