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

OEffectiveEvent Class Reference

#include </home/clem/local/src/opie/noncore/unsupported/libopie/pim/oevent.h>

Collaboration diagram for OEffectiveEvent:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QValueList< OEffectiveEventValueList
enum  Position { MidWay, Start, End, StartEnd }

Public Member Functions

 OEffectiveEvent ()
 OEffectiveEvent (const OEvent &event, const QDate &startDate, Position pos=StartEnd)
 OEffectiveEvent (const OEffectiveEvent &)
OEffectiveEventoperator= (const OEffectiveEvent &)
 ~OEffectiveEvent ()
void setStartTime (const QTime &)
void setEndTime (const QTime &)
void setEvent (const OEvent &)
void setDate (const QDate &)
void setEffectiveDates (const QDate &from, const QDate &to)
QString description () const
QString location () const
QString note () const
OEvent event () const
QTime startTime () const
QTime endTime () const
QDate date () const
int length () const
int size () const
QDate startDate () const
QDate endDate () const
bool operator< (const OEffectiveEvent &e) const
bool operator<= (const OEffectiveEvent &e) const
bool operator== (const OEffectiveEvent &e) const
bool operator!= (const OEffectiveEvent &e) const
bool operator> (const OEffectiveEvent &e) const
bool operator>= (const OEffectiveEvent &e) const

Private Member Functions

void deref ()
void changeOrModify ()

Private Attributes

Private * priv
Datadata

Classes

struct  Data

Detailed Description

AN Event can span through multiple days. We split up a multiday eve

Definition at line 178 of file oevent.h.


Member Typedef Documentation

typedef QValueList<OEffectiveEvent> OEffectiveEvent::ValueList
 

Definition at line 180 of file oevent.h.


Member Enumeration Documentation

enum OEffectiveEvent::Position
 

Enumeration values:
MidWay 
Start 
End 
StartEnd 

Definition at line 181 of file oevent.h.


Constructor & Destructor Documentation

OEffectiveEvent::OEffectiveEvent  ) 
 

Definition at line 557 of file oevent.cpp.

References QDate::currentDate(), QTime::currentTime(), data, OEffectiveEvent::Data::date, OEffectiveEvent::Data::dates, OEffectiveEvent::Data::end, and OEffectiveEvent::Data::start.

OEffectiveEvent::OEffectiveEvent const OEvent event,
const QDate startDate,
Position  pos = StartEnd
 

Definition at line 563 of file oevent.cpp.

References data, OEffectiveEvent::Data::date, OEffectiveEvent::Data::dates, OEffectiveEvent::Data::end, End, OEvent::endDateTime(), OEffectiveEvent::Data::event, OEffectiveEvent::Data::start, Start, and OEvent::startDateTime().

OEffectiveEvent::OEffectiveEvent const OEffectiveEvent  ) 
 

Definition at line 580 of file oevent.cpp.

References data, and QShared::ref().

OEffectiveEvent::~OEffectiveEvent  ) 
 

Definition at line 584 of file oevent.cpp.

References data, and QShared::deref().


Member Function Documentation

void OEffectiveEvent::changeOrModify  )  [inline, private]
 

Definition at line 678 of file oevent.cpp.

References QShared::count, data, OEffectiveEvent::Data::date, OEffectiveEvent::Data::dates, QShared::deref(), OEffectiveEvent::Data::end, OEffectiveEvent::Data::endDate, OEffectiveEvent::Data::event, OEffectiveEvent::Data::start, and OEffectiveEvent::Data::startDate.

Referenced by setDate(), setEndTime(), setEvent(), and setStartTime().

QDate OEffectiveEvent::date  )  const
 

Definition at line 644 of file oevent.cpp.

References data, and OEffectiveEvent::Data::date.

Referenced by operator<(), operator<=(), and operator==().

void OEffectiveEvent::deref  )  [private]
 

Definition at line 672 of file oevent.cpp.

References data, and QShared::deref().

Referenced by operator=().

QString OEffectiveEvent::description  )  const
 

Definition at line 626 of file oevent.cpp.

References data, OEvent::description(), and OEffectiveEvent::Data::event.

QDate OEffectiveEvent::endDate  )  const
 

Definition at line 664 of file oevent.cpp.

References data, OEffectiveEvent::Data::date, OEffectiveEvent::Data::dates, OEffectiveEvent::Data::endDate, OEvent::endDateTime(), OEffectiveEvent::Data::event, and OEvent::hasRecurrence().

QTime OEffectiveEvent::endTime  )  const
 

Definition at line 641 of file oevent.cpp.

References data, and OEffectiveEvent::Data::end.

Referenced by operator==().

OEvent OEffectiveEvent::event  )  const
 

Definition at line 635 of file oevent.cpp.

References data, and OEffectiveEvent::Data::event.

Referenced by operator==().

int OEffectiveEvent::length  )  const
 

Definition at line 647 of file oevent.cpp.

References data, OEffectiveEvent::Data::end, QTime::hour(), QTime::minute(), and OEffectiveEvent::Data::start.

QString OEffectiveEvent::location  )  const
 

Definition at line 629 of file oevent.cpp.

References data, OEffectiveEvent::Data::event, and OEvent::location().

QString OEffectiveEvent::note  )  const
 

Definition at line 632 of file oevent.cpp.

References data, OEffectiveEvent::Data::event, and OEvent::note().

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

Definition at line 709 of file oevent.cpp.

bool OEffectiveEvent::operator< const OEffectiveEvent e  )  const
 

Definition at line 692 of file oevent.cpp.

References data, date(), OEffectiveEvent::Data::date, FALSE, startTime(), and TRUE.

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

Definition at line 700 of file oevent.cpp.

References data, date(), and OEffectiveEvent::Data::date.

OEffectiveEvent & OEffectiveEvent::operator= const OEffectiveEvent  ) 
 

Definition at line 590 of file oevent.cpp.

References data, deref(), and QShared::ref().

bool OEffectiveEvent::operator== const OEffectiveEvent e  )  const
 

Definition at line 703 of file oevent.cpp.

References date(), endTime(), event(), and startTime().

bool OEffectiveEvent::operator> const OEffectiveEvent e  )  const
 

Definition at line 712 of file oevent.cpp.

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

Definition at line 715 of file oevent.cpp.

void OEffectiveEvent::setDate const QDate  ) 
 

Definition at line 612 of file oevent.cpp.

References changeOrModify(), data, and OEffectiveEvent::Data::date.

Referenced by events(), and repeat().

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

Definition at line 616 of file oevent.cpp.

References data, OEffectiveEvent::Data::dates, OEffectiveEvent::Data::endDate, QDate::isValid(), and OEffectiveEvent::Data::startDate.

Referenced by repeat().

void OEffectiveEvent::setEndTime const QTime  ) 
 

Definition at line 604 of file oevent.cpp.

References changeOrModify(), data, and OEffectiveEvent::Data::end.

Referenced by events(), and repeat().

void OEffectiveEvent::setEvent const OEvent  ) 
 

Definition at line 608 of file oevent.cpp.

References changeOrModify(), data, and OEffectiveEvent::Data::event.

Referenced by events(), and repeat().

void OEffectiveEvent::setStartTime const QTime  ) 
 

Definition at line 600 of file oevent.cpp.

References changeOrModify(), data, and OEffectiveEvent::Data::start.

Referenced by events(), and repeat().

int OEffectiveEvent::size  )  const
 

Definition at line 651 of file oevent.cpp.

References data, OEffectiveEvent::Data::end, QTime::hour(), QTime::minute(), QTime::second(), and OEffectiveEvent::Data::start.

QDate OEffectiveEvent::startDate  )  const
 

Definition at line 656 of file oevent.cpp.

References data, OEffectiveEvent::Data::date, OEffectiveEvent::Data::dates, OEffectiveEvent::Data::event, OEvent::hasRecurrence(), OEffectiveEvent::Data::startDate, and OEvent::startDateTime().

QTime OEffectiveEvent::startTime  )  const
 

Definition at line 638 of file oevent.cpp.

References data, and OEffectiveEvent::Data::start.

Referenced by operator<(), and operator==().


Member Data Documentation

Data* OEffectiveEvent::data [private]
 

Definition at line 232 of file oevent.h.

Referenced by changeOrModify(), date(), deref(), description(), endDate(), endTime(), event(), length(), location(), note(), OEffectiveEvent(), operator<(), operator<=(), operator=(), setDate(), setEffectiveDates(), setEndTime(), setEvent(), setStartTime(), size(), startDate(), startTime(), and ~OEffectiveEvent().

Private* OEffectiveEvent::priv [private]
 

Definition at line 230 of file oevent.h.


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