kalarm
KAlarm Namespace Reference
Enumerations | |
enum | FileType { Unknown, TextPlain, TextFormatted, TextApplication, Image } |
enum | UpdateStatus { UPDATE_OK, UPDATE_KORG_ERR, UPDATE_ERROR, UPDATE_FAILED, SAVE_FAILED } |
enum | UpdateError { ERR_ADD, ERR_DELETE, ERR_REACTIVATE, ERR_TEMPLATE } |
enum | KOrgUpdateError { KORG_ERR_ADD, KORG_ERR_MODIFY, KORG_ERR_DELETE } |
Functions | |
MainWindow * | displayMainWindowSelected (const QString &eventID=QString::null) |
KAction * | createNewAlarmAction (const QString &label, QObject *receiver, const char *slot, KActionCollection *, const char *name) |
TemplateMenuAction * | createNewFromTemplateAction (const QString &label, QObject *receiver, const char *slot, KActionCollection *, const char *name) |
UpdateStatus | addEvent (KAEvent &event, AlarmListView *selectionView, QWidget *errmsgParent, bool useEventID, bool allowKOrgUpdate) |
bool | addExpiredEvent (KAEvent &event) |
UpdateStatus | addTemplate (KAEvent &event, TemplateListView *selectionView, QWidget *errmsgParent) |
UpdateStatus | modifyEvent (KAEvent &oldEvent, const KAEvent &newEvent, AlarmListView *selectionView, QWidget *errmsgParent) |
UpdateStatus | updateEvent (KAEvent &event, AlarmListView *selectionView, QWidget *errmsgParent, bool archiveOnDelete, bool incRevision) |
UpdateStatus | updateTemplate (const KAEvent &event, TemplateListView *selectionView, QWidget *errmsgParent) |
UpdateStatus | deleteEvent (KAEvent &event, bool archive, QWidget *errmsgParent) |
UpdateStatus | deleteTemplate (const KAEvent &event) |
void | deleteDisplayEvent (const QString &eventID) |
UpdateStatus | reactivateEvent (KAEvent &event, AlarmListView *selectionView, bool useEventID) |
UpdateStatus | enableEvent (KAEvent &event, AlarmListView *selectionView, bool enable) |
void | displayUpdateError (QWidget *parent, UpdateStatus, UpdateError code, int nAlarms) |
void | displayKOrgUpdateError (QWidget *parent, KOrgUpdateError code, int nAlarms) |
bool | edit (const QString &eventID) |
bool | editNew (const QString &templateName) |
QValueList< KAEvent > | templateList () |
void | outputAlarmWarnings (QWidget *parent, const KAEvent *event) |
void | resetDaemon () |
void | resetDaemonIfQueued () |
QString | runKMail (bool minimise) |
bool | runProgram (const QCString &program, const QCString &windowName, QCString &dcopName, QString &errorMessage) |
bool | readConfigWindowSize (const char *window, QSize &result) |
void | writeConfigWindowSize (const char *window, const QSize &size) |
int | Version () |
int | getVersionNumber (const QString &version, QString *subVersion) |
FileType | fileType (const QString &mimetype) |
QString | browseFile (const QString &caption, QString &defaultDir, const QString &initialFile, const QString &filter, int mode, QWidget *parent, const char *name) |
int | localeFirstDayOfWeek () |
QString | stripAccel (const QString &text) |
int | Version (int major, int minor, int rev) |
int | currentCalendarVersion () |
QString | currentCalendarVersionString () |
int | weekDay_to_localeDayInWeek (int weekDay) |
int | localeDayInWeek_to_weekDay (int index) |
Enumeration Type Documentation
enum KAlarm::FileType |
Error codes supplied as parameter to displayKOrgUpdateError().
Definition at line 61 of file functions.h.
enum KAlarm::UpdateError |
Error codes supplied as parameter to displayUpdateError().
Definition at line 59 of file functions.h.
enum KAlarm::UpdateStatus |
Return codes from calendar update functions.
The codes are ordered by severity.
Definition at line 51 of file functions.h.
Function Documentation
KAction * KAlarm::createNewAlarmAction | ( | const QString & | label, | |
QObject * | receiver, | |||
const char * | slot, | |||
KActionCollection * | actions, | |||
const char * | name | |||
) |
TemplateMenuAction * KAlarm::createNewFromTemplateAction | ( | const QString & | label, | |
QObject * | receiver, | |||
const char * | slot, | |||
KActionCollection * | actions, | |||
const char * | name | |||
) |
int KAlarm::currentCalendarVersion | ( | ) | [inline] |
Return which version of KAlarm was the first to use the current calendar/event format.
Definition at line 77 of file functions.h.
MainWindow * KAlarm::displayMainWindowSelected | ( | const QString & | eventID = QString::null |
) |
Display a main window with the specified event selected.
Definition at line 80 of file functions.cpp.
FileType KAlarm::fileType | ( | const QString & | mimetype | ) |
Check from its mime type whether a file appears to be a text or image file.
If a text file, its type is distinguished.
Definition at line 829 of file functions.cpp.
QValueList< KAEvent > KAlarm::templateList | ( | ) |
Returns a list of all alarm templates.
If shell commands are disabled, command alarm templates are omitted.
Definition at line 605 of file functions.cpp.
int KAlarm::Version | ( | ) |