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

OPimNotify Class Reference

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

Inheritance diagram for OPimNotify:

Inheritance graph
[legend]
Collaboration diagram for 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 20 of file opimnotify.h.


Member Typedef Documentation

typedef QValueList<OPimNotify> OPimNotify::ValueList
 

Definition at line 22 of file opimnotify.h.


Constructor & Destructor Documentation

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

Definition at line 15 of file opimnotify.cpp.

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

OPimNotify::OPimNotify const OPimNotify  ) 
 

Definition at line 21 of file opimnotify.cpp.

References data, and QShared::ref().

OPimNotify::~OPimNotify  )  [virtual]
 

Definition at line 26 of file opimnotify.cpp.

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


Member Function Documentation

void OPimNotify::copyIntern  )  [inline, private]
 

Reimplemented in OPimAlarm, and OPimReminder.

Definition at line 80 of file opimnotify.cpp.

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

Referenced by setDateTime(), Opie::OPimNotify::setDateTime(), setDuration(), Opie::OPimNotify::setDuration(), setParent(), Opie::OPimNotify::setParent(), setService(), and Opie::OPimNotify::setService().

QDateTime OPimNotify::dateTime  )  const
 

start date

Definition at line 49 of file opimnotify.cpp.

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

Referenced by save(), and OEvent::toMap().

void OPimNotify::deref  )  [private]
 

Reimplemented in OPimAlarm, and OPimReminder.

Definition at line 91 of file opimnotify.cpp.

References data, and QShared::deref().

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

int OPimNotify::duration  )  const
 

in Seconds

Definition at line 58 of file opimnotify.cpp.

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

QDateTime OPimNotify::endTime  )  const
 

Start Time + Duration

Definition at line 61 of file opimnotify.cpp.

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

OPimNotify & OPimNotify::operator= const OPimNotify  ) 
 

Definition at line 33 of file opimnotify.cpp.

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

Referenced by OPimReminder::operator=(), OPimAlarm::operator=(), Opie::OPimReminder::operator=(), and Opie::OPimAlarm::operator=().

bool OPimNotify::operator== const OPimNotify  ) 
 

Definition at line 40 of file opimnotify.cpp.

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

Referenced by OPimReminder::operator==(), OPimAlarm::operator==(), Opie::OPimReminder::operator==(), and Opie::OPimAlarm::operator==().

int OPimNotify::parent  )  const
 

RETURN the parent uid

Definition at line 55 of file opimnotify.cpp.

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

QString OPimNotify::service  )  const
 

Definition at line 52 of file opimnotify.cpp.

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

void OPimNotify::setDateTime const QDateTime  ) 
 

Definition at line 64 of file opimnotify.cpp.

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

void OPimNotify::setDuration int  dur  ) 
 

Definition at line 68 of file opimnotify.cpp.

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

void OPimNotify::setParent int  uid  ) 
 

Definition at line 72 of file opimnotify.cpp.

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

void OPimNotify::setService const QString  ) 
 

Definition at line 76 of file opimnotify.cpp.

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

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

Implemented in OPimAlarm, and OPimReminder.

Referenced by OPimNotifyManager::add().


Member Data Documentation

NotifyPrivate* OPimNotify::d [private]
 

Reimplemented in OPimAlarm, and OPimReminder.

Definition at line 64 of file opimnotify.h.

Data* OPimNotify::data [private]
 

Reimplemented in OPimAlarm, and OPimReminder.

Definition at line 60 of file opimnotify.h.

Referenced by copyIntern(), Opie::OPimNotify::copyIntern(), dateTime(), Opie::OPimNotify::dateTime(), deref(), Opie::OPimNotify::deref(), duration(), Opie::OPimNotify::duration(), endTime(), Opie::OPimNotify::endTime(), operator=(), Opie::OPimNotify::operator=(), operator==(), Opie::OPimNotify::operator==(), OPimNotify(), Opie::OPimNotify::OPimNotify(), parent(), Opie::OPimNotify::parent(), service(), Opie::OPimNotify::service(), setDateTime(), Opie::OPimNotify::setDateTime(), setDuration(), Opie::OPimNotify::setDuration(), setParent(), Opie::OPimNotify::setParent(), setService(), Opie::OPimNotify::setService(), ~OPimNotify(), and Opie::OPimNotify::~OPimNotify().


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