duration.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef KCAL_DURATION_H
00022 #define KCAL_DURATION_H
00023
00024 #include <qdatetime.h>
00025
00026 namespace KCal {
00027
00031 class Duration
00032 {
00033 public:
00034 Duration();
00035 Duration( const QDateTime &start, const QDateTime &end );
00036 Duration( int seconds );
00037
00038 QDateTime end( const QDateTime &start ) const;
00039
00040 int asSeconds() const;
00041
00042 private:
00043 int mSeconds;
00044
00045 class Private;
00046 Private *d;
00047 };
00048
00049 bool operator==( const Duration&, const Duration& );
00050 inline bool operator!=( const Duration &d1, const Duration &d2 )
00051 {
00052 return !operator==( d1, d2 );
00053 }
00054
00055 }
00056
00057 #endif
This file is part of the documentation for libkcal Library Version 3.2.2.