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

Opie::OPimNotify Class Reference

#include </home/clem/local/src/opie/libopie2/opiepim/core/opimnotify.h>

Inheritance diagram for Opie::OPimNotify:

Inheritance graph
[legend]
Collaboration diagram for Opie::OPimNotify:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QValueList< OPimNotifyValueList

Public Member Functions

 OPimNotify (const QDateTime &start=QDateTime(), int duration=0, int parent=0)
 OPimNotify (const OPimNotify &)
virtual ~OPimNotify ()
OPimNotifyoperator= (const OPimNotify &)
bool operator== (const OPimNotify &)
virtual QString type () const =0
QDateTime dateTime () const
QString service () const
int parent () const
int duration () const
QDateTime endTime () const
void setDateTime (const QDateTime &)
void setDuration (int dur)
void setParent (int uid)
void setService (const QString &)

Private Member Functions

void copyIntern ()
void deref ()

Private Attributes

Datadata
NotifyPrivate * d

Classes

struct  Data

Detailed Description

This is the base class of Notifiers. Possible notifiers would be Alarms, Reminders What they share is that they have A DateTime, Type, Duration This is what this base class takes care of on top of that it's shared

Definition at line 52 of file opimnotify.h.


Member Typedef Documentation

typedef QValueList<OPimNotify> Opie::OPimNotify::ValueList
 

Definition at line 56 of file opimnotify.h.


Constructor & Destructor Documentation

Opie::OPimNotify::OPimNotify const QDateTime start = QDateTime(),
int  duration = 0,
int  parent = 0
 

Definition at line 48 of file opimnotify.cpp.

References OPimNotify::data, Opie::OPimNotify::Data::dur, Opie::OPimNotify::Data::parent, and Opie::OPimNotify::Data::start.

Opie::OPimNotify::OPimNotify const OPimNotify  ) 
 

Definition at line 57 of file opimnotify.cpp.

References data, and QShared::ref().

Opie::OPimNotify::~OPimNotify  )  [virtual]
 

Definition at line 64 of file opimnotify.cpp.

References OPimNotify::data, QShared::deref(), and l.


Member Function Documentation

void Opie::OPimNotify::copyIntern  )  [inline, private]
 

Reimplemented in Opie::OPimAlarm, and Opie::OPimReminder.

Definition at line 154 of file opimnotify.cpp.

References Opie::OPimNotify::Data::application, QShared::count, OPimNotify::data, QShared::deref(), Opie::OPimNotify::Data::dur, Opie::OPimNotify::Data::parent, and Opie::OPimNotify::Data::start.

QDateTime Opie::OPimNotify::dateTime  )  const
 

start date

Definition at line 96 of file opimnotify.cpp.

References OPimNotify::data, and Opie::OPimNotify::Data::start.

Referenced by TaskEditorAlarms::inlineSetDate(), TaskEditorAlarms::inlineSetTime(), save(), AlarmItem::setAlarm(), and Opie::OPimEvent::toMap().

void Opie::OPimNotify::deref  )  [private]
 

Reimplemented in Opie::OPimAlarm, and Opie::OPimReminder.

Definition at line 169 of file opimnotify.cpp.

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

int Opie::OPimNotify::duration  )  const
 

in Seconds

Definition at line 114 of file opimnotify.cpp.

References OPimNotify::data, and Opie::OPimNotify::Data::dur.

QDateTime Opie::OPimNotify::endTime  )  const
 

Start Time + Duration

Definition at line 120 of file opimnotify.cpp.

References OPimNotify::data, QDateTime::date(), Opie::OPimNotify::Data::dur, Opie::OPimNotify::Data::start, and QDateTime::time().

OPimNotify & Opie::OPimNotify::operator= const OPimNotify  ) 
 

Definition at line 74 of file opimnotify.cpp.

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

bool Opie::OPimNotify::operator== const OPimNotify  ) 
 

Definition at line 84 of file opimnotify.cpp.

References Opie::OPimNotify::Data::application, data, OPimNotify::data, Opie::OPimNotify::Data::dur, Opie::OPimNotify::Data::parent, and Opie::OPimNotify::Data::start.

int Opie::OPimNotify::parent  )  const
 

RETURN the parent uid

Definition at line 108 of file opimnotify.cpp.

References OPimNotify::data, and Opie::OPimNotify::Data::parent.

QString Opie::OPimNotify::service  )  const
 

Definition at line 102 of file opimnotify.cpp.

References Opie::OPimNotify::Data::application, and OPimNotify::data.

void Opie::OPimNotify::setDateTime const QDateTime  ) 
 

Definition at line 126 of file opimnotify.cpp.

References OPimNotify::copyIntern(), OPimNotify::data, and Opie::OPimNotify::Data::start.

Referenced by TaskEditorAlarms::inlineSetDate(), and TaskEditorAlarms::inlineSetTime().

void Opie::OPimNotify::setDuration int  dur  ) 
 

Definition at line 133 of file opimnotify.cpp.

References OPimNotify::copyIntern(), OPimNotify::data, and Opie::OPimNotify::Data::dur.

void Opie::OPimNotify::setParent int  uid  ) 
 

Definition at line 140 of file opimnotify.cpp.

References OPimNotify::copyIntern(), OPimNotify::data, and Opie::OPimNotify::Data::parent.

void Opie::OPimNotify::setService const QString  ) 
 

Definition at line 147 of file opimnotify.cpp.

References Opie::OPimNotify::Data::application, OPimNotify::copyIntern(), and OPimNotify::data.

virtual QString Opie::OPimNotify::type  )  const [pure virtual]
 

Implemented in Opie::OPimAlarm, and Opie::OPimReminder.

Referenced by Opie::OPimNotifyManager::add().


Member Data Documentation

NotifyPrivate* Opie::OPimNotify::d [private]
 

Reimplemented in Opie::OPimAlarm, and Opie::OPimReminder.

Definition at line 98 of file opimnotify.h.

Data* Opie::OPimNotify::data [private]
 

Reimplemented in Opie::OPimAlarm, and Opie::OPimReminder.

Definition at line 94 of file opimnotify.h.

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


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