kalarm

KAlarm Namespace Reference


Enumerations

enum  FileType {
  Unknown, TextPlain, TextFormatted, TextApplication,
  Image
}
enum  UpdateStatus { UPDATE_OK, UPDATE_ERROR, UPDATE_KORG_ERR }
enum  UpdateError { KORG_ERR_ADD, KORG_ERR_MODIFY, KORG_ERR_DELETE }

Functions

MainWindowdisplayMainWindowSelected (const QString &eventID=QString::null)
KAction * createNewAlarmAction (const QString &label, QObject *receiver, const char *slot, KActionCollection *, const char *name)
TemplateMenuActioncreateNewFromTemplateAction (const QString &label, QObject *receiver, const char *slot, KActionCollection *, const char *name)
UpdateStatus addEvent (KAEvent &event, AlarmListView *selectionView, bool useEventID, bool allowKOrgUpdate)
bool addExpiredEvent (KAEvent &event)
bool addTemplate (KAEvent &event, TemplateListView *selectionView)
UpdateStatus modifyEvent (KAEvent &oldEvent, const KAEvent &newEvent, AlarmListView *selectionView)
void updateEvent (KAEvent &event, AlarmListView *selectionView, bool archiveOnDelete, bool incRevision)
void updateTemplate (const KAEvent &event, TemplateListView *selectionView)
UpdateStatus deleteEvent (KAEvent &event, bool archive)
void deleteTemplate (const KAEvent &event)
void deleteDisplayEvent (const QString &eventID)
UpdateStatus reactivateEvent (KAEvent &event, AlarmListView *selectionView, bool useEventID)
void enableEvent (KAEvent &event, AlarmListView *selectionView, bool enable)
void displayKOrgUpdateError (QWidget *parent, UpdateError code, int nAlarms)
bool edit (const QString &eventID)
bool editNew (const QString &templateName)
QValueList< KAEventtemplateList ()
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 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 weekDay_to_localeDayInWeek (int weekDay)
int localeDayInWeek_to_weekDay (int index)

Enumeration Type Documentation

Return codes from fileType().

Definition at line 47 of file functions.h.

Return codes from calendar update functions.

Definition at line 49 of file functions.h.

Error codes supplied as parameter to displayKOrgUpdateError().

Definition at line 55 of file functions.h.


Function Documentation

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.

KAction * KAlarm::createNewAlarmAction ( const QString &  label,
QObject *  receiver,
const char *  slot,
KActionCollection *  actions,
const char *  name 
)

Create a "New Alarm" KAction.

Definition at line 110 of file functions.cpp.

TemplateMenuAction * KAlarm::createNewFromTemplateAction ( const QString &  label,
QObject *  receiver,
const char *  slot,
KActionCollection *  actions,
const char *  name 
)

Create a "New From Template" KAction.

Definition at line 118 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 520 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 733 of file functions.cpp.

KDE Home | KDE Accessibility Home | Description of Access Keys