#include </home/clem/local/src/opie/library/datebookdb.h>
Inheritance diagram for DateBookDB:


Public Member Functions | |
| DateBookDB () | |
| ~DateBookDB () | |
| QValueList< Event > | getEvents (const QDate &from, const QDate &to) |
| QValueList< Event > | getEvents (const QDateTime &start) |
| QValueList< EffectiveEvent > | getEffectiveEvents (const QDate &from, const QDate &to) |
| QValueList< EffectiveEvent > | getEffectiveEvents (const QDateTime &start) |
| QValueList< Event > | getRawRepeats () const |
| QValueList< Event > | getNonRepeatingEvents (const QDate &from, const QDate &to) const |
| void | addEvent (const Event &ev, bool doalarm=TRUE) |
| void | removeEvent (const Event &ev) |
| void | editEvent (const Event &old, Event &ev) |
| void | addJFEvent (const Event &ev, bool doalarm=TRUE) |
| void | removeJFEvent (const Event &ev) |
| bool | save () |
| void | reload () |
Private Member Functions | |
| bool | origRepeat (const Event &ev, Event &orig) const |
| bool | removeRepeat (const Event &ev) |
| void | init () |
| void | loadFile (const QString &strFile) |
| void | saveJournalEntry (const Event &ev, journal_action action) |
| bool | saveJournalEntry (const Event &ev, journal_action action, int key, bool origHadRepeat=false) |
Private Attributes | |
| QValueList< Event > | eventList |
| QValueList< Event > | repeatEvents |
| DateBookDBPrivate * | d |
| QFile | journalFile |
| int | recordIdMax |
|
|
Definition at line 383 of file datebookdb.cpp. References init(). |
|
|
Definition at line 388 of file datebookdb.cpp. References QValueList< T >::clear(), d, eventList, repeatEvents, and save(). |
|
||||||||||||
|
Definition at line 591 of file datebookdb.cpp. References ACTION_ADD, addJFEvent(), DateBookDBPrivate::clean, d, and saveJournalEntry(). Referenced by DateBook::duplicateEvent(), DateBook::insertEvent(), DateBook::setDocument(), and DateBook::slotNewEntry(). |
|
||||||||||||
|
Definition at line 599 of file datebookdb.cpp. References addEventAlarm(), QValueList< T >::append(), eventList, Event::hasAlarm(), Event::hasRepeat(), and repeatEvents. Referenced by addEvent(), and loadFile(). |
|
||||||||||||
|
Definition at line 609 of file datebookdb.cpp. References ACTION_REPLACE, addEventAlarm(), QValueList< T >::append(), DateBookDBPrivate::clean, d, delEventAlarm(), QValueList< T >::end(), eventList, QValueList< T >::find(), QValueList< T >::findIndex(), origRepeat(), QValueList< T >::remove(), removeRepeat(), repeatEvents, and saveJournalEntry(). Referenced by DateBook::editEvent(). |
|
|
Reimplemented in DateBookDBHoliday. Definition at line 575 of file datebookdb.cpp. References QValueList< T >::append(), QValueList< T >::begin(), QDateTime::date(), QValueList< T >::end(), getEffectiveEvents(), and QDateTime::secsTo(). |
|
||||||||||||
|
|
Definition at line 437 of file datebookdb.cpp. References QValueList< T >::append(), QValueList< T >::begin(), QDateTime::date(), QValueList< T >::end(), getEvents(), and TRUE. |
|
||||||||||||
|
Definition at line 401 of file datebookdb.cpp. References QValueList< T >::append(), QValueList< T >::begin(), QDateTime::date(), QValueList< T >::end(), Event::RepeatPattern::endDate(), getNonRepeatingEvents(), Event::RepeatPattern::hasEndDate, nextOccurance(), qHeapSort(), repeatEvents, Event::repeatPattern(), Event::setEnd(), Event::RepeatPattern::setEndDate(), Event::setRepeat(), Event::setStart(), and TRUE. Referenced by getEvents(). |
|
||||||||||||
|
Definition at line 1104 of file datebookdb.cpp. References QDateTime::addDays(), QValueList< T >::append(), QValueList< T >::begin(), QDateTime::date(), QValueList< T >::end(), eventList, Event::setEnd(), Event::setStart(), QDateTime::setTime(), QDateTime::time(), and TRUE. Referenced by DateBookDBHack::eventByUID(), getEvents(), and DateBook::slotDoFind(). |
|
|
Definition at line 1099 of file datebookdb.cpp. References repeatEvents. Referenced by DateBookDBHack::eventByUID(), and DateBook::slotDoFind(). |
|
|
Definition at line 935 of file datebookdb.cpp. References DateBookDBPrivate::clean, d, dateBookFilename(), dateBookJournalFile(), QFile::exists(), QString::isNull(), loadFile(), save(), str, tr, and warning(). Referenced by DateBookDB(), and reload(). |
|
|
||||||||||||
|
Definition at line 1059 of file datebookdb.cpp. References QValueList< T >::begin(), QValueList< T >::end(), FALSE, repeatEvents, and TRUE. Referenced by editEvent(). |
|
|
Definition at line 1031 of file datebookdb.cpp. References QValueList< T >::begin(), QValueList< T >::clear(), delEventAlarm(), QValueList< T >::end(), eventList, init(), removeRepeat(), and repeatEvents. Referenced by DateBook::reload(). |
|
|
Definition at line 652 of file datebookdb.cpp. References ACTION_REMOVE, DateBookDBPrivate::clean, d, removeJFEvent(), and saveJournalEntry(). Referenced by DateBook::removeEvent(). |
|
|
Definition at line 660 of file datebookdb.cpp. References delEventAlarm(), QValueList< T >::end(), eventList, QValueList< T >::find(), Event::hasAlarm(), Event::hasRepeat(), QValueList< T >::remove(), and removeRepeat(). Referenced by loadFile(), and removeEvent(). |
|
|
Definition at line 1045 of file datebookdb.cpp. References QValueList< T >::begin(), QValueList< T >::end(), FALSE, QValueList< T >::remove(), repeatEvents, Event::repeatPattern(), and TRUE. Referenced by editEvent(), reload(), and removeJFEvent(). |
|
|
Definition at line 960 of file datebookdb.cpp. References QValueList< T >::begin(), buf, DateBookDBPrivate::clean, QFile::close(), d, dateBookFilename(), dateBookJournalFile(), QValueList< T >::end(), eventList, f, FALSE, IO_Raw, IO_WriteOnly, QString::latin1(), QCString::length(), QFile::open(), qWarning(), QFile::remove(), repeatEvents, str, QString::utf8(), and QFile::writeBlock(). Referenced by DateBook::closeEvent(), DateBook::flush(), init(), and ~DateBookDB(). |
|
||||||||||||||||||||
|
Definition at line 1077 of file datebookdb.cpp. References buf, QFile::close(), QString::data(), dateBookJournalFile(), f, IO_Append, IO_WriteOnly, QString::length(), QString::number(), QFile::open(), Event::save(), str, and QFile::writeBlock(). |
|
||||||||||||
|
Definition at line 1072 of file datebookdb.cpp. Referenced by addEvent(), editEvent(), and removeEvent(). |
|
|
Definition at line 79 of file datebookdb.h. Referenced by addEvent(), editEvent(), init(), removeEvent(), save(), and ~DateBookDB(). |
|
|
Definition at line 77 of file datebookdb.h. Referenced by addJFEvent(), editEvent(), getEffectiveEvents(), getNonRepeatingEvents(), loadFile(), reload(), removeJFEvent(), save(), and ~DateBookDB(). |
|
|
Definition at line 80 of file datebookdb.h. |
|
|
Definition at line 82 of file datebookdb.h. |
|
|
Definition at line 78 of file datebookdb.h. Referenced by addJFEvent(), editEvent(), getEffectiveEvents(), getEvents(), getRawRepeats(), loadFile(), origRepeat(), reload(), removeRepeat(), save(), and ~DateBookDB(). |
1.4.2