KDGantt::DateTimeSpan Class Reference

#include <kdganttglobal.h>

Collaboration diagram for KDGantt::DateTimeSpan:

Collaboration graph
[legend]

List of all members.


Detailed Description

Definition at line 254 of file kdganttglobal.h.


Public Member Functions

 DateTimeSpan (const DateTimeSpan &other)
 DateTimeSpan (const QDateTime &start, const QDateTime &end)
 DateTimeSpan ()
QDateTime end () const
bool equals (const DateTimeSpan &other) const
bool isValid () const
DateTimeSpanoperator= (const DateTimeSpan &other)
void setEnd (const QDateTime &end)
void setStart (const QDateTime &start)
QDateTime start () const
 ~DateTimeSpan ()

Constructor & Destructor Documentation

DateTimeSpan::DateTimeSpan (  ) 

Definition at line 84 of file kdganttglobal.cpp.

00085 {
00086 }

DateTimeSpan::DateTimeSpan ( const QDateTime &  start,
const QDateTime &  end 
)

Definition at line 88 of file kdganttglobal.cpp.

00089     : m_start( start ), m_end( end )
00090 {
00091 }

DateTimeSpan::DateTimeSpan ( const DateTimeSpan other  ) 

Definition at line 93 of file kdganttglobal.cpp.

00094 {
00095     *this = other;
00096 }

DateTimeSpan::~DateTimeSpan (  ) 

Definition at line 98 of file kdganttglobal.cpp.

00099 {
00100 }


Member Function Documentation

QDateTime KDGantt::DateTimeSpan::end (  )  const

Definition at line 269 of file kdganttglobal.h.

Referenced by operator<<().

00269 { m_end=end; }

bool DateTimeSpan::equals ( const DateTimeSpan other  )  const

Definition at line 116 of file kdganttglobal.cpp.

References m_end, and m_start.

Referenced by KDGantt::operator!=().

00117 {
00118     return m_start==other.m_start && m_end==other.m_end;
00119 }

bool DateTimeSpan::isValid (  )  const

Definition at line 111 of file kdganttglobal.cpp.

Referenced by KDAB_SCOPED_UNITTEST_SIMPLE().

00112 {
00113     return m_start.isValid() && m_end.isValid();
00114 }

DateTimeSpan & DateTimeSpan::operator= ( const DateTimeSpan other  ) 

Definition at line 102 of file kdganttglobal.cpp.

References m_end, and m_start.

00103 {
00104     if ( this != &other ) {
00105         m_start = other.m_start;
00106         m_end = other.m_end;
00107     }
00108     return *this;
00109 }

void KDGantt::DateTimeSpan::setEnd ( const QDateTime &  end  ) 

Definition at line 268 of file kdganttglobal.h.

Referenced by KDAB_SCOPED_UNITTEST_SIMPLE().

00269 { m_end=end; }

void KDGantt::DateTimeSpan::setStart ( const QDateTime &  start  ) 

Definition at line 265 of file kdganttglobal.h.

Referenced by KDAB_SCOPED_UNITTEST_SIMPLE().

00266 { m_start=start; }

QDateTime KDGantt::DateTimeSpan::start (  )  const

Definition at line 266 of file kdganttglobal.h.

Referenced by operator<<().

00266 { m_start=start; }


The documentation for this class was generated from the following files:
Generated on Thu Mar 4 23:27:05 2010 for KD Chart 2 by  doxygen 1.5.4