libopie PIM API Documentation

OPimNotifyManager Class Reference

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

#include <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
 Return.

OPimAlarm alarmAtDateTime (const QDateTime &when, bool &found) const
 Return alarm at DateTime "when".

void setAlarms (const Alarms &)
void setReminders (const Reminders &)
void registerNotify (const OPimNotify &)
 This function will register the Notify to the Alarm Server or datebook depending on the type of the notify.

void deregister (const OPimNotify &)
 this will do the opposite..

bool isEmpty () const
QString alarmsToString () const
 Return all alarms as string.

QString remindersToString () const
 Return all notifiers as string.

void alarmsFromString (const QString &str)
 Convert string to alarms.

void remindersFromString (const QString &str)
 Convert string to reminders.


Detailed Description

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

Definition at line 11 of file opimnotifymanager.h.


Member Typedef Documentation

typedef QValueList<OPimReminder> OPimNotifyManager::Reminders
 

Definition at line 13 of file opimnotifymanager.h.

Referenced by OPimNotifyManager(), reminders(), remindersToString(), and setReminders().

typedef QValueList<OPimAlarm> OPimNotifyManager::Alarms
 

Definition at line 14 of file opimnotifymanager.h.

Referenced by alarms(), alarmsToString(), OPimNotifyManager(), and setAlarms().


Constructor & Destructor Documentation

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

Definition at line 7 of file opimnotifymanager.cpp.

References Alarms, and Reminders.

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::append(), QString::fromLatin1(), and OPimNotify::type().

Referenced by alarmsFromString(), OEvent::fromMap(), and remindersFromString().

void OPimNotifyManager::remove const OPimNotify  ) 
 

Definition at line 22 of file opimnotifymanager.cpp.

References QString::fromLatin1(), QValueList::remove(), and OPimNotify::type().

void OPimNotifyManager::replace const OPimNotify  ) 
 

Definition at line 31 of file opimnotifymanager.cpp.

References QValueList::append(), QString::fromLatin1(), QValueList::remove(), and OPimNotify::type().

OPimNotifyManager::Reminders OPimNotifyManager::reminders  )  const
 

Definition at line 42 of file opimnotifymanager.cpp.

References Reminders.

Referenced by remindersToString().

OPimNotifyManager::Alarms OPimNotifyManager::alarms  )  const
 

Return.

Definition at line 45 of file opimnotifymanager.cpp.

References Alarms.

Referenced by alarmsToString(), and save().

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::begin(), and QValueList::end().

void OPimNotifyManager::setAlarms const Alarms  ) 
 

Definition at line 64 of file opimnotifymanager.cpp.

References Alarms.

void OPimNotifyManager::setReminders const Reminders  ) 
 

Definition at line 67 of file opimnotifymanager.cpp.

References Reminders.

void OPimNotifyManager::registerNotify const OPimNotify  ) 
 

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

Qtopia1.6 services would be kewl to have here....

Definition at line 78 of file opimnotifymanager.cpp.

void OPimNotifyManager::deregister const OPimNotify  ) 
 

this will do the opposite..

Also implement Url model have a MainWindow....

Definition at line 87 of file opimnotifymanager.cpp.

bool OPimNotifyManager::isEmpty  )  const
 

Definition at line 91 of file opimnotifymanager.cpp.

QString OPimNotifyManager::alarmsToString  )  const
 

Return all alarms as string.

Definition at line 98 of file opimnotifymanager.cpp.

References alarms(), Alarms, QValueList::begin(), OConversion::dateTimeToString(), QValueList::end(), QValueList::isEmpty(), QStringList::join(), and QString::number().

QString OPimNotifyManager::remindersToString  )  const
 

Return all notifiers as string.

Definition at line 122 of file opimnotifymanager.cpp.

References QValueList::begin(), QValueList::end(), QValueList::isEmpty(), QStringList::join(), QString::number(), reminders(), and Reminders.

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::begin(), QValueList::end(), QStringList::join(), and QStringList::split().

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::begin(), QValueList::end(), and QStringList::split().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for OPIE Version 1.1.
Documentation copyright © 1997-2003 the KDE developers. 2003 OPIE developers
Generated on Tue Feb 10 20:26:23 2004 by doxygen 1.3.5 written by Dimitri van Heesch, © 1997-2001