Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

EffectiveEvent Class Reference

The EffectiveEvent class the data for a single occurance of an event. More...

#include </home/clem/local/src/opie/library/backend/event.h>

Collaboration diagram for EffectiveEvent:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Position { MidWay = 0, Start = 1, End = 2, StartEnd = 3 }

Public Member Functions

 EffectiveEvent ()
 EffectiveEvent (const Event &event, const QDate &startDate, Position pos=StartEnd)
 EffectiveEvent (const EffectiveEvent &)
EffectiveEventoperator= (const EffectiveEvent &)
 ~EffectiveEvent ()
bool operator< (const EffectiveEvent &e) const
bool operator<= (const EffectiveEvent &e) const
bool operator== (const EffectiveEvent &e) const
bool operator!= (const EffectiveEvent &e) const
bool operator> (const EffectiveEvent &e) const
bool operator>= (const EffectiveEvent &e) const
void setStart (const QTime &start)
void setEnd (const QTime &end)
void setEvent (Event e)
void setDate (const QDate &date)
void setEffectiveDates (const QDate &from, const QDate &to)
const QStringdescription () const
const QStringlocation () const
const QStringnotes () const
const Eventevent () const
const QTimestart () const
const QTimeend () const
const QDatedate () const
int length () const
int size () const
QDate startDate () const
QDate endDate () const

Private Attributes

EffectiveEventPrivated
Event mEvent
QDate mDate
QTime mStart
QTime mEnd

Detailed Description

The EffectiveEvent class the data for a single occurance of an event.

This class describes the event for a single occurance of it. For example if an Event occurs every week, the effective event might represent the third occurance of this Event.

Warning:
This class will be phased out in Qtopia 3.x

Definition at line 192 of file event.h.


Member Enumeration Documentation

enum EffectiveEvent::Position
 

For internal use only.

Enumeration values:
MidWay 
Start 
End 
StartEnd 

Definition at line 205 of file event.h.


Constructor & Destructor Documentation

EffectiveEvent::EffectiveEvent  ) 
 

For internal use only.

Definition at line 799 of file event.cpp.

References QDate::currentDate(), QTime::currentTime(), d, mDate, mEnd, and mStart.

EffectiveEvent::EffectiveEvent const Event e,
const QDate date,
Position  pos = StartEnd
 

For internal use only.

Definition at line 809 of file event.cpp.

References d, Event::end(), End, mDate, mEnd, mEvent, mStart, Event::start(), Start, and TRUE.

EffectiveEvent::EffectiveEvent const EffectiveEvent e  ) 
 

For internal use only.

Definition at line 836 of file event.cpp.

References d.

EffectiveEvent::~EffectiveEvent  ) 
 

For internal use only.

Definition at line 828 of file event.cpp.

References d.


Member Function Documentation

const QDate & EffectiveEvent::date  )  const
 

Returns the date the effective event occurs on.

Definition at line 919 of file event.cpp.

References mDate.

Referenced by DatebookAlldayDisp::beam_single_event(), DateBookWeekLstEvent::DateBookWeekLstEvent(), DateBookDay::findRealStart(), DateBookMonthTable::getEvents(), ODateBookMonthTable::getEvents(), DateBookDay::getEvents(), DateBookDayWidget::mousePressEvent(), operator<(), operator<=(), operator==(), DateBookWeekView::positionItem(), and DateBookWeek::slotShowEvent().

const QString & EffectiveEvent::description  )  const
 

Returns the description of the event for this effective event.

Definition at line 871 of file event.cpp.

References Event::description(), and mEvent.

Referenced by DatebookAlldayDisp::DatebookAlldayDisp(), DateBookDayWidget::DateBookDayWidget(), DateBookWeekLstEvent::DateBookWeekLstEvent(), and DateBookWeek::slotShowEvent().

const QTime & EffectiveEvent::end  )  const
 

For internal use only.

Definition at line 903 of file event.cpp.

References mEnd.

Referenced by DatebookAlldayDisp::beam_single_event(), DateBookDayWidget::DateBookDayWidget(), DateBookWeekLstEvent::DateBookWeekLstEvent(), DateBookDay::getEvents(), DateBookDayWidget::mousePressEvent(), operator==(), DateBookDayWidget::paintEvent(), DateBookWeekView::positionItem(), and DateBookDayWidget::setEventText().

QDate EffectiveEvent::endDate  )  const
 

For internal use only.

Definition at line 1053 of file event.cpp.

References d, Event::end(), EffectiveEventPrivate::endDate, Event::hasRepeat(), mDate, and mEvent.

Referenced by DateBookWeekLstEvent::DateBookWeekLstEvent(), DateBookWeek::generateNormalTooltext(), and DateBookDayWidget::setEventText().

const Event & EffectiveEvent::event  )  const
 

Returns the event associated with this effective event.

Definition at line 895 of file event.cpp.

References mEvent.

Referenced by DatebookAlldayDisp::beam_single_event(), DateBookWeekLstEvent::beamMe(), DateBookDayWidget::DateBookDayWidget(), DateBookWeekItem::DateBookWeekItem(), DateBookWeekLstEvent::DateBookWeekLstEvent(), DateBookWeekLstEvent::deleteMe(), DateBookWeekLstEvent::duplicateMe(), DateBookEvent::editMe(), DateBookWeekLstEvent::editMe(), DateBookDay::findRealStart(), DateBookWeek::generateNormalTooltext(), DateBookDay::getEvents(), DateBookWeekLstEvent::mousePressEvent(), DatebookAlldayDisp::mousePressEvent(), DateBookDayWidget::mousePressEvent(), operator==(), DateBookDayWidget::paintEvent(), DateBookWeekView::positionItem(), DateBookDayWidget::setEventText(), and DateBookWeek::slotShowEvent().

int EffectiveEvent::length  )  const
 

For internal use only.

Definition at line 927 of file event.cpp.

References QTime::hour(), mEnd, QTime::minute(), and mStart.

const QString & EffectiveEvent::location  )  const
 

For internal use only.

Definition at line 879 of file event.cpp.

References Event::location(), and mEvent.

Referenced by DateBookWeek::slotShowEvent().

const QString & EffectiveEvent::notes  )  const
 

For internal use only.

Definition at line 887 of file event.cpp.

References mEvent, and Event::notes().

Referenced by DateBookDayWidget::DateBookDayWidget(), and DateBookWeek::slotShowEvent().

bool EffectiveEvent::operator!= const EffectiveEvent e  )  const
 

For internal use only.

Definition at line 1000 of file event.cpp.

bool EffectiveEvent::operator< const EffectiveEvent e  )  const
 

For internal use only.

Definition at line 968 of file event.cpp.

References date(), FALSE, mDate, mStart, start(), and TRUE.

bool EffectiveEvent::operator<= const EffectiveEvent e  )  const
 

For internal use only.

Definition at line 981 of file event.cpp.

References date(), and mDate.

EffectiveEvent & EffectiveEvent::operator= const EffectiveEvent e  ) 
 

For internal use only.

Definition at line 842 of file event.cpp.

References d, EffectiveEventPrivate::endDate, mDate, mEnd, mEvent, mStart, and EffectiveEventPrivate::startDate.

bool EffectiveEvent::operator== const EffectiveEvent e  )  const
 

For internal use only.

Definition at line 989 of file event.cpp.

References date(), end(), event(), mDate, mEnd, mEvent, mStart, and start().

bool EffectiveEvent::operator> const EffectiveEvent e  )  const
 

For internal use only.

Definition at line 1008 of file event.cpp.

bool EffectiveEvent::operator>= const EffectiveEvent e  )  const
 

For internal use only.

Definition at line 1016 of file event.cpp.

void EffectiveEvent::setDate const QDate dt  ) 
 

For internal use only.

Definition at line 936 of file event.cpp.

References mDate.

Referenced by DateBookDB::getEffectiveEvents().

void EffectiveEvent::setEffectiveDates const QDate from,
const QDate to
 

For internal use only.

Definition at line 1024 of file event.cpp.

References d, EffectiveEventPrivate::endDate, QDate::isValid(), and EffectiveEventPrivate::startDate.

Referenced by DateBookDB::getEffectiveEvents().

void EffectiveEvent::setEnd const QTime end  ) 
 

For internal use only.

Definition at line 952 of file event.cpp.

References mEnd.

Referenced by DateBookDB::getEffectiveEvents().

void EffectiveEvent::setEvent Event  e  ) 
 

For internal use only.

Definition at line 960 of file event.cpp.

References mEvent.

Referenced by DatebookAlldayDisp::DatebookAlldayDisp(), and DateBookDB::getEffectiveEvents().

void EffectiveEvent::setStart const QTime start  ) 
 

For internal use only.

Definition at line 944 of file event.cpp.

References mStart.

Referenced by DateBookDB::getEffectiveEvents().

int EffectiveEvent::size  )  const
 

For internal use only.

Definition at line 1066 of file event.cpp.

References QTime::hour(), mEnd, QTime::minute(), mStart, and QTime::second().

const QTime & EffectiveEvent::start void   )  const
 

For internal use only.

Definition at line 911 of file event.cpp.

References mStart.

Referenced by DatebookAlldayDisp::beam_single_event(), DateBookDayWidget::DateBookDayWidget(), DateBookWeekLstEvent::DateBookWeekLstEvent(), DateBookDay::findRealStart(), DateBookDayWidget::mousePressEvent(), operator<(), operator==(), DateBookDayWidget::paintEvent(), DateBookWeekView::positionItem(), and DateBookDayWidget::setEventText().

QDate EffectiveEvent::startDate  )  const
 

For internal use only.

Definition at line 1040 of file event.cpp.

References d, Event::hasRepeat(), mDate, mEvent, Event::start(), and EffectiveEventPrivate::startDate.

Referenced by DateBookWeekLstEvent::DateBookWeekLstEvent(), DateBookWeek::generateNormalTooltext(), DateBookDay::getEvents(), and DateBookDayWidget::setEventText().


Member Data Documentation

class EffectiveEventPrivate* EffectiveEvent::d [private]
 

Definition at line 242 of file event.h.

Referenced by EffectiveEvent(), endDate(), operator=(), setEffectiveDates(), startDate(), and ~EffectiveEvent().

QDate EffectiveEvent::mDate [private]
 

Definition at line 244 of file event.h.

Referenced by date(), EffectiveEvent(), endDate(), operator<(), operator<=(), operator=(), operator==(), setDate(), and startDate().

QTime EffectiveEvent::mEnd [private]
 

Definition at line 245 of file event.h.

Referenced by EffectiveEvent(), end(), length(), operator=(), operator==(), setEnd(), and size().

Event EffectiveEvent::mEvent [private]
 

Definition at line 243 of file event.h.

Referenced by description(), EffectiveEvent(), endDate(), event(), location(), notes(), operator=(), operator==(), setEvent(), and startDate().

QTime EffectiveEvent::mStart [private]
 

Definition at line 245 of file event.h.

Referenced by EffectiveEvent(), length(), operator<(), operator=(), operator==(), setStart(), size(), and start().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:31:50 2005 for OPIE by  doxygen 1.4.2