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

datebookdb.cpp File Reference

#include <qasciidict.h>
#include <qmessagebox.h>
#include <qtl.h>
#include <qpe/alarmserver.h>
#include <qpe/global.h>
#include "datebookdb.h"
#include <qpe/stringutil.h>
#include <errno.h>
#include <stdlib.h>

Include dependency graph for datebookdb.cpp:

Go to the source code of this file.

Functions

static QString dateBookJournalFile ()
static QString dateBookFilename ()
bool nextOccurance (const Event &e, const QDate &from, QDateTime &next)
static bool nextAlarm (const Event &ev, QDateTime &when, int &warn)
static void addEventAlarm (const Event &ev)
static void delEventAlarm (const Event &ev)


Function Documentation

static void addEventAlarm const Event ev  )  [static]
 

Definition at line 362 of file datebookdb.cpp.

References AlarmServer::addAlarm(), and nextAlarm().

Referenced by DateBookDB::addJFEvent(), and DateBookDB::editEvent().

static QString dateBookFilename  )  [static]
 

Definition at line 49 of file datebookdb.cpp.

References Global::applicationFileName().

Referenced by DateBookDB::init(), and DateBookDB::save().

static QString dateBookJournalFile  )  [static]
 

Definition at line 43 of file datebookdb.cpp.

References str.

Referenced by DateBookDB::init(), DateBookDB::save(), and DateBookDB::saveJournalEntry().

static void delEventAlarm const Event ev  )  [static]
 

Definition at line 372 of file datebookdb.cpp.

References AlarmServer::deleteAlarm(), and nextAlarm().

Referenced by DateBookDB::editEvent(), DateBookDB::reload(), and DateBookDB::removeJFEvent().

static bool nextAlarm const Event ev,
QDateTime when,
int &  warn
[static]
 

Definition at line 337 of file datebookdb.cpp.

References QDateTime::addSecs(), Event::alarmTime(), QDateTime::currentDateTime(), QDateTime::date(), Event::hasRepeat(), nextOccurance(), and Event::start().

Referenced by addEventAlarm(), and delEventAlarm().

bool nextOccurance const Event e,
const QDate from,
QDateTime next
 

Definition at line 59 of file datebookdb.cpp.

References Event::Daily, QDateTime::date(), QDate::dayOfWeek(), QDate::daysInMonth(), diff(), FALSE, QDate::isValid(), Event::MonthlyDate, Event::MonthlyDay, Event::repeatPattern(), Event::start(), TRUE, Event::Weekly, and Event::Yearly.

Referenced by DateBook::checkEvent(), DateBookDB::getEffectiveEvents(), DateBookDB::getEvents(), nextAlarm(), and DateBook::slotDoFind().


Generated on Sat Nov 5 16:40:59 2005 for OPIE by  doxygen 1.4.2