kalarm
dbushandler.cpp
Go to the documentation of this file.
50 static const char* REQUEST_DBUS_OBJECT = "/kalarm"; // D-Bus object path of KAlarm's request interface
88 bool DBusHandler::scheduleMessage(const QString& message, const QString& startDateTime, int lateCancel, unsigned flags,
96 if (!convertRecurrence(start, recur, startDateTime, recurrence, subRepeatInterval, subRepeatDuration))
98 return scheduleMessage(message, start, lateCancel, flags, bgColor, fgColor, font, KUrl(audioUrl), reminderMins, recur, subRepeatDuration, subRepeatCount);
101 bool DBusHandler::scheduleMessage(const QString& message, const QString& startDateTime, int lateCancel, unsigned flags,
110 return scheduleMessage(message, start, lateCancel, flags, bgColor, fgColor, font, KUrl(audioUrl), reminderMins, recur);
113 bool DBusHandler::scheduleMessage(const QString& message, const QString& startDateTime, int lateCancel, unsigned flags,
122 return scheduleMessage(message, start, lateCancel, flags, bgColor, fgColor, font, KUrl(audioUrl), reminderMins, recur);
125 bool DBusHandler::scheduleFile(const QString& url, const QString& startDateTime, int lateCancel, unsigned flags, const QString& bgColor,
132 if (!convertRecurrence(start, recur, startDateTime, recurrence, subRepeatInterval, subRepeatDuration))
134 return scheduleFile(KUrl(url), start, lateCancel, flags, bgColor, KUrl(audioUrl), reminderMins, recur, subRepeatDuration, subRepeatCount);
137 bool DBusHandler::scheduleFile(const QString& url, const QString& startDateTime, int lateCancel, unsigned flags, const QString& bgColor,
144 return scheduleFile(KUrl(url), start, lateCancel, flags, bgColor, KUrl(audioUrl), reminderMins, recur);
147 bool DBusHandler::scheduleFile(const QString& url, const QString& startDateTime, int lateCancel, unsigned flags, const QString& bgColor,
148 const QString& audioUrl, int reminderMins, int recurType, int recurInterval, const QString& endDateTime)
154 return scheduleFile(KUrl(url), start, lateCancel, flags, bgColor, KUrl(audioUrl), reminderMins, recur);
157 bool DBusHandler::scheduleCommand(const QString& commandLine, const QString& startDateTime, int lateCancel, unsigned flags,
163 if (!convertRecurrence(start, recur, startDateTime, recurrence, subRepeatInterval, subRepeatDuration))
165 return scheduleCommand(commandLine, start, lateCancel, flags, recur, subRepeatDuration, subRepeatCount);
168 bool DBusHandler::scheduleCommand(const QString& commandLine, const QString& startDateTime, int lateCancel, unsigned flags,
180 bool DBusHandler::scheduleCommand(const QString& commandLine, const QString& startDateTime, int lateCancel, unsigned flags,
190 bool DBusHandler::scheduleEmail(const QString& fromID, const QString& addresses, const QString& subject, const QString& message,
197 if (!convertRecurrence(start, recur, startDateTime, recurrence, subRepeatInterval, subRepeatDuration))
199 return scheduleEmail(fromID, addresses, subject, message, attachments, start, lateCancel, flags, recur, subRepeatDuration, subRepeatCount);
202 bool DBusHandler::scheduleEmail(const QString& fromID, const QString& addresses, const QString& subject, const QString& message,
210 return scheduleEmail(fromID, addresses, subject, message, attachments, start, lateCancel, flags, recur);
213 bool DBusHandler::scheduleEmail(const QString& fromID, const QString& addresses, const QString& subject, const QString& message,
221 return scheduleEmail(fromID, addresses, subject, message, attachments, start, lateCancel, flags, recur);
224 bool DBusHandler::scheduleAudio(const QString& audioUrl, int volumePercent, const QString& startDateTime, int lateCancel,
230 if (!convertRecurrence(start, recur, startDateTime, recurrence, subRepeatInterval, subRepeatDuration))
232 return scheduleAudio(audioUrl, volumePercent, start, lateCancel, flags, recur, subRepeatDuration, subRepeatCount);
235 bool DBusHandler::scheduleAudio(const QString& audioUrl, int volumePercent, const QString& startDateTime, int lateCancel,
247 bool DBusHandler::scheduleAudio(const QString& audioUrl, int volumePercent, const QString& startDateTime, int lateCancel,
292 bool DBusHandler::scheduleMessage(const QString& message, const KDateTime& start, int lateCancel, unsigned flags,
298 KAEvent::SubAction action = (kaEventFlags & KAEvent::DISPLAY_COMMAND) ? KAEvent::COMMAND : KAEvent::MESSAGE;
341 return theApp()->scheduleEvent(KAEvent::FILE, file.url(), start, lateCancel, kaEventFlags, bg, Qt::black, QFont(),
353 return theApp()->scheduleEvent(KAEvent::COMMAND, commandLine, start, lateCancel, kaEventFlags, Qt::black, Qt::black, QFont(),
360 bool DBusHandler::scheduleEmail(const QString& fromID, const QString& addresses, const QString& subject,
399 return theApp()->scheduleEvent(KAEvent::EMAIL, message, start, lateCancel, kaEventFlags, Qt::black, Qt::black, QFont(),
400 QString(), -1, 0, recurrence, subRepeatDuration, subRepeatCount, senderId, addrs, subject, atts);
412 return theApp()->scheduleEvent(KAEvent::AUDIO, QString(), start, lateCancel, kaEventFlags, Qt::black, Qt::black, QFont(),
535 bool DBusHandler::convertRecurrence(KDateTime& start, KARecurrence& recurrence, const QString& startDateTime,
544 bool DBusHandler::convertRecurrence(KDateTime& start, KARecurrence& recurrence, const QString& startDateTime,
564 bool DBusHandler::convertRecurrence(KARecurrence& recurrence, const KDateTime& start, int recurType,
int indexOf(QChar ch, int from, Qt::CaseSensitivity cs) const
Definition: editdlg.h:64
bool scheduleEvent(KAEvent::SubAction, const QString &text, const KDateTime &, int lateCancel, KAEvent::Flags flags, const QColor &bg, const QColor &fg, const QFont &, const QString &audioFile, float audioVolume, int reminderMinutes, const KARecurrence &recurrence, KCalCore::Duration repeatInterval, int repeatCount, uint mailFromID=0, const QList< KCal::Person > &mailAddresses=QList< KCal::Person >(), const QString &mailSubject=QString(), const QStringList &mailAttachments=QStringList())
Definition: kalarmapp.cpp:1376
Definition: editdlg.h:64
Definition: editdlg.h:64
Q_SCRIPTABLE bool scheduleFile(const QString &url, const QString &startDateTime, int lateCancel, unsigned flags, const QString &bgColor, const QString &audioUrl, int reminderMins, const QString &recurrence, int subRepeatInterval, int subRepeatCount)
Definition: dbushandler.cpp:125
time_t date() const
Q_SCRIPTABLE bool scheduleMessage(const QString &message, const QString &startDateTime, int lateCancel, unsigned flags, const QString &bgColor, const QString &fgColor, const QString &font, const QString &audioUrl, int reminderMins, const QString &recurrence, int subRepeatInterval, int subRepeatCount)
Definition: dbushandler.cpp:88
bool registerObject(const QString &path, QObject *object, QFlags< QDBusConnection::RegisterOption > options)
bool isValid() const
QTime time() const
QDBusConnection sessionBus()
QTime fromString(const QString &string, Qt::DateFormat format)
static KDateTime applyTimeZone(const QString &tzstring, const QDate &date, const QTime &time, bool haveTime, const KDateTime &defaultDt=KDateTime())
Definition: alarmtime.cpp:233
void setNamedColor(const QString &name)
the KAlarm application object
QDate fromString(const QString &string, Qt::DateFormat format)
static QString convertAddresses(const QString &addresses, QList< KCal::Person > &)
Definition: kamail.cpp:485
Q_SCRIPTABLE bool scheduleEmail(const QString &fromID, const QString &addresses, const QString &subject, const QString &message, const QString &attachments, const QString &startDateTime, int lateCancel, unsigned flags, const QString &recurrence, int subRepeatInterval, int subRepeatCount)
Definition: dbushandler.cpp:190
bool fromString(const QString &descrip)
bool isEmpty() const
bool isEmpty() const
main application window
bool isValid() const
QString subject() const
Q_SCRIPTABLE bool cancelEvent(const QString &eventId)
Definition: dbushandler.cpp:65
static QString convertAttachments(const QString &attachments, QStringList &list)
Definition: kamail.cpp:560
QDateTime fromString(const QString &string, Qt::DateFormat format)
bool isValid() const
QString mid(int position, int n) const
QDate date() const
miscellaneous functions
Q_SCRIPTABLE bool scheduleCommand(const QString &commandLine, const QString &startDateTime, int lateCancel, unsigned flags, const QString &recurrence, int subRepeatInterval, int subRepeatCount)
Definition: dbushandler.cpp:157
Q_SCRIPTABLE bool triggerEvent(const QString &eventId)
Definition: dbushandler.cpp:74
int length() const
QString left(int n) const
Definition: editdlg.h:64
Q_SCRIPTABLE bool scheduleAudio(const QString &audioUrl, int volumePercent, const QString &startDateTime, int lateCancel, unsigned flags, const QString &recurrence, int subRepeatInterval, int subRepeatCount)
Definition: dbushandler.cpp:224
bool isValid() const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:51 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.