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

Opie::OPimNotifyManager Class Reference

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

Collaboration diagram for Opie::OPimNotifyManager:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QValueList< OPimReminderReminders
typedef QValueList< OPimAlarmAlarms

Public Member Functions

 OPimNotifyManager (const Reminders &rems=Reminders(), const Alarms &alarms=Alarms())
 ~OPimNotifyManager ()
void add (const OPimNotify &)
void remove (const OPimNotify &)
void replace (const OPimNotify &)
Reminders reminders () const
Alarms alarms () const
OPimAlarm alarmAtDateTime (const QDateTime &when, bool &found) const
void setAlarms (const Alarms &)
void setReminders (const Reminders &)
void registerNotify (const OPimNotify &)
void deregister (const OPimNotify &)
bool isEmpty () const
QString alarmsToString () const
QString remindersToString () const
void alarmsFromString (const QString &str)
void remindersFromString (const QString &str)

Private Attributes

Reminders m_rem
Alarms m_al
Private * d

Detailed Description

The notify manager keeps track of the Notifiers....

Definition at line 43 of file opimnotifymanager.h.


Member Typedef Documentation

typedef QValueList<OPimAlarm> Opie::OPimNotifyManager::Alarms
 

Definition at line 47 of file opimnotifymanager.h.

typedef QValueList<OPimReminder> Opie::OPimNotifyManager::Reminders
 

Definition at line 46 of file opimnotifymanager.h.


Constructor & Destructor Documentation

Opie::OPimNotifyManager::OPimNotifyManager const Reminders rems = Reminders(),
const Alarms alarms = Alarms()
 

Definition at line 42 of file opimnotifymanager.cpp.

Opie::OPimNotifyManager::~OPimNotifyManager  ) 
 

Definition at line 47 of file opimnotifymanager.cpp.


Member Function Documentation

void Opie::OPimNotifyManager::add const OPimNotify  ) 
 

Definition at line 52 of file opimnotifymanager.cpp.

References QValueList< T >::append(), QString::fromLatin1(), OPimNotifyManager::m_al, OPimNotifyManager::m_rem, rem, and Opie::OPimNotify::type().

Referenced by Opie::OPimTodoAccessXML::todo().

OPimAlarm Opie::OPimNotifyManager::alarmAtDateTime const QDateTime when,
bool &  found
const
 

Return alarm at DateTime "when". If more than one is registered at this DateTime, the first one is returned. If none was found, an empty Alarm is returned.

Parameters:
when The date and time of the returned alarm
found Returns true if anything was found.
Returns:
Returns the found alarm at given DateTime. It is empty if found is false (nothing could be found at given date and time)

Definition at line 111 of file opimnotifymanager.cpp.

References QValueList< T >::begin(), empty, QValueList< T >::end(), and OPimNotifyManager::m_al.

OPimNotifyManager::Alarms Opie::OPimNotifyManager::alarms  )  const
 

Return

Definition at line 105 of file opimnotifymanager.cpp.

References OPimNotifyManager::m_al.

Referenced by Opie::OPimEvent::hasNotifiers(), Opie::Internal::testAlarmNotifiers(), and Opie::OPimTodoAccessXML::toString().

void Opie::OPimNotifyManager::alarmsFromString const QString str  ) 
 

Convert string to alarms

Parameters:
str String created by alarmsToString()

Definition at line 221 of file opimnotifymanager.cpp.

References OPimNotifyManager::add(), QValueList< T >::begin(), QValueList< T >::end(), QStringList::split(), and TRUE.

QString Opie::OPimNotifyManager::alarmsToString  )  const
 

Return all alarms as string

Definition at line 173 of file opimnotifymanager.cpp.

References OPimNotifyManager::alarms(), QValueList< T >::begin(), QValueList< T >::end(), QValueList< T >::isEmpty(), QStringList::join(), OPimNotifyManager::m_al, QString::number(), and str.

void Opie::OPimNotifyManager::deregister const OPimNotify  ) 
 

this will do the opposite..

Definition at line 160 of file opimnotifymanager.cpp.

bool Opie::OPimNotifyManager::isEmpty  )  const
 

Definition at line 165 of file opimnotifymanager.cpp.

References QValueList< T >::isEmpty(), OPimNotifyManager::m_al, and OPimNotifyManager::m_rem.

Referenced by Opie::OPimTodo::hasNotifiers().

void Opie::OPimNotifyManager::registerNotify const OPimNotify  ) 
 

This function will register the Notify to the Alarm Server or datebook depending on the type of the notify

Definition at line 149 of file opimnotifymanager.cpp.

OPimNotifyManager::Reminders Opie::OPimNotifyManager::reminders  )  const
 

Definition at line 99 of file opimnotifymanager.cpp.

References OPimNotifyManager::m_rem.

Referenced by Opie::OPimEvent::hasNotifiers(), and Opie::OPimTodoAccessXML::toString().

void Opie::OPimNotifyManager::remindersFromString const QString str  ) 
 

Convert string to reminders

Parameters:
str String created by remindersToString()

Definition at line 234 of file opimnotifymanager.cpp.

References OPimNotifyManager::add(), QValueList< T >::begin(), QValueList< T >::end(), rem, and QStringList::split().

QString Opie::OPimNotifyManager::remindersToString  )  const
 

Return all notifiers as string

Definition at line 201 of file opimnotifymanager.cpp.

References QValueList< T >::begin(), QValueList< T >::end(), QValueList< T >::isEmpty(), QStringList::join(), OPimNotifyManager::m_rem, QString::number(), OPimNotifyManager::reminders(), and str.

void Opie::OPimNotifyManager::remove const OPimNotify  ) 
 

Definition at line 67 of file opimnotifymanager.cpp.

References QString::fromLatin1(), OPimNotifyManager::m_al, OPimNotifyManager::m_rem, rem, and QValueList< T >::remove().

void Opie::OPimNotifyManager::replace const OPimNotify  ) 
 

Definition at line 82 of file opimnotifymanager.cpp.

References QValueList< T >::append(), QString::fromLatin1(), OPimNotifyManager::m_al, OPimNotifyManager::m_rem, rem, and QValueList< T >::remove().

void Opie::OPimNotifyManager::setAlarms const Alarms  ) 
 

Definition at line 129 of file opimnotifymanager.cpp.

References OPimNotifyManager::m_al.

Referenced by TaskEditorAlarms::save().

void Opie::OPimNotifyManager::setReminders const Reminders  ) 
 

Definition at line 135 of file opimnotifymanager.cpp.

References OPimNotifyManager::m_rem.


Member Data Documentation

Private* Opie::OPimNotifyManager::d [private]
 

Definition at line 117 of file opimnotifymanager.h.

Alarms Opie::OPimNotifyManager::m_al [private]
 

Definition at line 115 of file opimnotifymanager.h.

Reminders Opie::OPimNotifyManager::m_rem [private]
 

Definition at line 114 of file opimnotifymanager.h.


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