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

OPimNotifyManager Class Reference

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

Collaboration diagram for 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 11 of file opimnotifymanager.h.


Member Typedef Documentation

typedef QValueList<OPimAlarm> OPimNotifyManager::Alarms
 

Definition at line 14 of file opimnotifymanager.h.

typedef QValueList<OPimReminder> OPimNotifyManager::Reminders
 

Definition at line 13 of file opimnotifymanager.h.


Constructor & Destructor Documentation

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

Definition at line 7 of file opimnotifymanager.cpp.

OPimNotifyManager::~OPimNotifyManager  ) 
 

Definition at line 10 of file opimnotifymanager.cpp.


Member Function Documentation

void OPimNotifyManager::add const OPimNotify  ) 
 

Definition at line 13 of file opimnotifymanager.cpp.

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

Referenced by alarmsFromString(), Opie::OPimNotifyManager::alarmsFromString(), remindersFromString(), Opie::OPimNotifyManager::remindersFromString(), and OTodoAccessXML::todo().

OPimAlarm 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 48 of file opimnotifymanager.cpp.

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

OPimNotifyManager::Alarms OPimNotifyManager::alarms  )  const
 

Return

Definition at line 45 of file opimnotifymanager.cpp.

References m_al.

Referenced by alarmsToString(), Opie::OPimNotifyManager::alarmsToString(), OEvent::hasNotifiers(), and OTodoAccessXML::toString().

void OPimNotifyManager::alarmsFromString const QString str  ) 
 

Convert string to alarms

Parameters:
str String created by alarmsToString()

Definition at line 139 of file opimnotifymanager.cpp.

References add(), QValueList< T >::begin(), OConversion::dateTimeFromString(), QValueList< T >::end(), QStringList::join(), qWarning(), QStringList::split(), and TRUE.

Referenced by OTodoAccessBackendSQL::todo().

QString OPimNotifyManager::alarmsToString  )  const
 

Return all alarms as string

Definition at line 98 of file opimnotifymanager.cpp.

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

void OPimNotifyManager::deregister const OPimNotify  ) 
 

this will do the opposite..

Definition at line 87 of file opimnotifymanager.cpp.

bool OPimNotifyManager::isEmpty  )  const
 

Definition at line 91 of file opimnotifymanager.cpp.

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

Referenced by OTodo::hasNotifiers().

void 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 78 of file opimnotifymanager.cpp.

OPimNotifyManager::Reminders OPimNotifyManager::reminders  )  const
 

Definition at line 42 of file opimnotifymanager.cpp.

References m_rem.

Referenced by OEvent::hasNotifiers(), remindersToString(), Opie::OPimNotifyManager::remindersToString(), and OTodoAccessXML::toString().

void OPimNotifyManager::remindersFromString const QString str  ) 
 

Convert string to reminders

Parameters:
str String created by remindersToString()

Definition at line 153 of file opimnotifymanager.cpp.

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

Referenced by OTodoAccessBackendSQL::todo().

QString OPimNotifyManager::remindersToString  )  const
 

Return all notifiers as string

Definition at line 122 of file opimnotifymanager.cpp.

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

void OPimNotifyManager::remove const OPimNotify  ) 
 

Definition at line 22 of file opimnotifymanager.cpp.

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

void OPimNotifyManager::replace const OPimNotify  ) 
 

Definition at line 31 of file opimnotifymanager.cpp.

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

void OPimNotifyManager::setAlarms const Alarms  ) 
 

Definition at line 64 of file opimnotifymanager.cpp.

References m_al.

void OPimNotifyManager::setReminders const Reminders  ) 
 

Definition at line 67 of file opimnotifymanager.cpp.

References m_rem.


Member Data Documentation

Private* OPimNotifyManager::d [private]
 

Definition at line 86 of file opimnotifymanager.h.

Alarms OPimNotifyManager::m_al [private]
 

Definition at line 84 of file opimnotifymanager.h.

Referenced by add(), Opie::OPimNotifyManager::add(), alarmAtDateTime(), Opie::OPimNotifyManager::alarmAtDateTime(), alarms(), Opie::OPimNotifyManager::alarms(), alarmsToString(), Opie::OPimNotifyManager::alarmsToString(), isEmpty(), Opie::OPimNotifyManager::isEmpty(), remove(), Opie::OPimNotifyManager::remove(), replace(), Opie::OPimNotifyManager::replace(), setAlarms(), and Opie::OPimNotifyManager::setAlarms().

Reminders OPimNotifyManager::m_rem [private]
 

Definition at line 83 of file opimnotifymanager.h.

Referenced by add(), Opie::OPimNotifyManager::add(), isEmpty(), Opie::OPimNotifyManager::isEmpty(), reminders(), Opie::OPimNotifyManager::reminders(), remindersToString(), Opie::OPimNotifyManager::remindersToString(), remove(), Opie::OPimNotifyManager::remove(), replace(), Opie::OPimNotifyManager::replace(), setReminders(), and Opie::OPimNotifyManager::setReminders().


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