akonadi
#include <itiphandler.h>
Public Types | |
enum | Result { ResultError, ResultSuccess, ResultCancelled } |
Signals | |
void | informationPublished (Akonadi::ITIPHandler::Result, const QString &errorMessage) |
void | iTipMessageProcessed (Akonadi::ITIPHandler::Result result, const QString &errorMessage) |
void | iTipMessageSent (Akonadi::ITIPHandler::Result, const QString &errorMessage) |
void | sentAsICalendar (Akonadi::ITIPHandler::Result, const QString &errorMessage) |
Public Member Functions | |
ITIPHandler (QObject *parent=0) | |
~ITIPHandler () | |
Akonadi::CalendarBase::Ptr | calendar () const |
void | processiTIPMessage (const QString &receiver, const QString &iCal, const QString &type) |
void | publishInformation (const KCalCore::Incidence::Ptr &incidence, QWidget *parentWidget=0) |
void | sendAsICalendar (const KCalCore::Incidence::Ptr &incidence, QWidget *parentWidget=0) |
void | sendiTIPMessage (KCalCore::iTIPMethod method, const KCalCore::Incidence::Ptr &incidence, QWidget *parentWidget=0) |
void | setCalendar (const Akonadi::CalendarBase::Ptr &) |
void | setGroupwareUiDelegate (GroupwareUiDelegate *) |
void | setShowDialogsOnError (bool enable) |
Public Member Functions inherited from QObject | |
QObject (QObject *parent) | |
QObject (QObject *parent, const char *name) | |
bool | blockSignals (bool block) |
QObject * | child (const char *objName, const char *inheritsClass, bool recursiveSearch) const |
const QObjectList & | children () const |
const char * | className () const |
bool | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
void | deleteLater () |
void | destroyed (QObject *obj) |
bool | disconnect (const QObject *receiver, const char *method) |
bool | disconnect (const char *signal, const QObject *receiver, const char *method) |
void | dumpObjectInfo () |
void | dumpObjectTree () |
QList< QByteArray > | dynamicPropertyNames () const |
virtual bool | event (QEvent *e) |
virtual bool | eventFilter (QObject *watched, QEvent *event) |
T | findChild (const QString &name) const |
QList< T > | findChildren (const QRegExp ®Exp) const |
QList< T > | findChildren (const QString &name) const |
bool | inherits (const char *className) const |
void | insertChild (QObject *object) |
void | installEventFilter (QObject *filterObj) |
bool | isA (const char *className) const |
bool | isWidgetType () const |
void | killTimer (int id) |
virtual const QMetaObject * | metaObject () const |
void | moveToThread (QThread *targetThread) |
const char * | name () const |
const char * | name (const char *defaultName) const |
QString | objectName () const |
QObject * | parent () const |
QVariant | property (const char *name) const |
void | removeChild (QObject *object) |
void | removeEventFilter (QObject *obj) |
void | setName (const char *name) |
void | setObjectName (const QString &name) |
void | setParent (QObject *parent) |
bool | setProperty (const char *name, const QVariant &value) |
bool | signalsBlocked () const |
int | startTimer (int interval) |
QThread * | thread () const |
Additional Inherited Members | |
Static Public Member Functions inherited from QObject | |
bool | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
bool | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
bool | checkConnectArgs (const char *signal, const QObject *object, const char *method) |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const char *signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const char *signal) |
int | receivers (const char *signal) const |
QObject * | sender () const |
int | senderSignalIndex () const |
virtual void | timerEvent (QTimerEvent *event) |
Static Protected Member Functions inherited from QObject | |
QByteArray | normalizeSignalSlot (const char *signalSlot) |
Properties inherited from QObject | |
objectName | |
Detailed Description
Handles sending of iTip messages aswell as processing incoming ones.
- Since
- 4.11
Definition at line 58 of file itiphandler.h.
Member Enumeration Documentation
Enumerator | |
---|---|
ResultError |
An unexpected error occurred. |
ResultSuccess |
The invitation was successfuly handled. |
ResultCancelled |
User cancelled the operation.
|
Definition at line 62 of file itiphandler.h.
Constructor & Destructor Documentation
|
explicit |
Creates a new ITIPHandler instance.
Definition at line 62 of file itiphandler.cpp.
ITIPHandler::~ITIPHandler | ( | ) |
Destroys this instance.
Definition at line 68 of file itiphandler.cpp.
Member Function Documentation
Akonadi::CalendarBase::Ptr ITIPHandler::calendar | ( | ) | const |
Returns the calendar used by this itip handler.
Definition at line 378 of file itiphandler.cpp.
|
signal |
Signal emitted after an incidence was published with publishInformation()
|
signal |
Sent after processing an incoming iTip message.
- Parameters
-
result success of the operation. errorMessage translated error message suitable for user dialogs. Empty if the operation was successul
|
signal |
Signal emitted after an iTip message was sent through sendiTIPMessage()
void ITIPHandler::processiTIPMessage | ( | const QString & | receiver, |
const QString & | iCal, | ||
const QString & | type | ||
) |
Processes a received iTip message.
- Parameters
-
receiver iCal type
- See also
- iTipMessageProcessed()
Definition at line 73 of file itiphandler.cpp.
void ITIPHandler::publishInformation | ( | const KCalCore::Incidence::Ptr & | incidence, |
QWidget * | parentWidget = 0 |
||
) |
Publishes incidence incidence
.
A publish dialog will prompt the user to input recipients.
- See also
- rfc2446 3.2.1
Definition at line 281 of file itiphandler.cpp.
void ITIPHandler::sendAsICalendar | ( | const KCalCore::Incidence::Ptr & | incidence, |
QWidget * | parentWidget = 0 |
||
) |
Sends an e-mail with the incidence attached as iCalendar source.
A dialog will prompt the user to input recipients.
Definition at line 317 of file itiphandler.cpp.
void ITIPHandler::sendiTIPMessage | ( | KCalCore::iTIPMethod | method, |
const KCalCore::Incidence::Ptr & | incidence, | ||
QWidget * | parentWidget = 0 |
||
) |
Sends an iTip message.
- Parameters
-
method iTip method incidence Incidence for which we're sending the iTip message. Should contain a list of attendees. parentWidget
Definition at line 234 of file itiphandler.cpp.
|
signal |
Signal emitted after an incidence was sent with sendAsICalendar()
void ITIPHandler::setCalendar | ( | const Akonadi::CalendarBase::Ptr & | calendar | ) |
Sets the calendar that the itip handler should use.
The calendar should already be loaded.
If none is set, a FetchJobCalendar will be created internally.
Definition at line 366 of file itiphandler.cpp.
void ITIPHandler::setGroupwareUiDelegate | ( | GroupwareUiDelegate * | delegate | ) |
Sets the UI delegate to edit counter proposals.
Definition at line 361 of file itiphandler.cpp.
void ITIPHandler::setShowDialogsOnError | ( | bool | enable | ) |
Sets if the ITIP handler should show dialogs on error.
Default is true, for compatibility reasons, but this will change in KDE5. TODO_KDE5: use message delegates
- Since
- 4.12
Definition at line 373 of file itiphandler.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.