Akonadi::ITIPHandlerDialogDelegate Class
Ui delegate for dialogs raised by the ITIPHandler and IncidenceChanger. More...
| Header: | #include <itiphandler.h> |
| CMake: | find_package(KPim6AkonadiCalendar REQUIRED)target_link_libraries(mytarget PRIVATE KPim6::AkonadiCalendar) |
| Inherits: | QObject |
Public Functions
| ITIPHandlerDialogDelegate(const KCalendarCore::Incidence::Ptr &incidence, KCalendarCore::iTIPMethod method, QWidget *parent = nullptr) | |
| virtual void | openDialogIncidenceCreated(Akonadi::ITIPHandlerDialogDelegate::Recipient recipient, const QString &question, Akonadi::ITIPHandlerDialogDelegate::Action action = ActionAsk, const KGuiItem &buttonYes, const KGuiItem &buttonNo) |
| virtual void | openDialogIncidenceDeleted(Akonadi::ITIPHandlerDialogDelegate::Recipient recipient, const QString &question, Akonadi::ITIPHandlerDialogDelegate::Action action = ActionAsk, const KGuiItem &buttonYes, const KGuiItem &buttonNo) |
| virtual void | openDialogIncidenceModified(bool attendeeStatusChanged, Akonadi::ITIPHandlerDialogDelegate::Recipient recipient, const QString &question, Akonadi::ITIPHandlerDialogDelegate::Action action = ActionAsk, const KGuiItem &buttonYes, const KGuiItem &buttonNo) |
| virtual void | openDialogSchedulerFinished(const QString &question, Akonadi::ITIPHandlerDialogDelegate::Action action = ActionAsk, const KGuiItem &buttonYes, const KGuiItem &buttonNo) |
| virtual int | warningContinueCancel(const QString &text, const QString &title, const KGuiItem &buttonContinue = KStandardGuiItem::cont(), const KGuiItem &buttonCancel = KStandardGuiItem::cancel()) |
| virtual int | warningTwoActionsCancel(const QString &text, const QString &title, const KGuiItem &primaryAction, const KGuiItem &secondaryAction, const KGuiItem &cancelAction = KStandardGuiItem::cancel()) |
Signals
| void | dialogClosed(int answer, KCalendarCore::iTIPMethod method, const KCalendarCore::Incidence::Ptr &incidence) |
Protected Functions
| int | askUserIfNeeded(const QString &question, Akonadi::ITIPHandlerDialogDelegate::Action action, const KGuiItem &buttonYes, const KGuiItem &buttonNo) const |
Detailed Description
Member Function Documentation
[explicit] ITIPHandlerDialogDelegate::ITIPHandlerDialogDelegate(const KCalendarCore::Incidence::Ptr &incidence, KCalendarCore::iTIPMethod method, QWidget *parent = nullptr)
Creates a new AskDelegator
[protected] int ITIPHandlerDialogDelegate::askUserIfNeeded(const QString &question, Akonadi::ITIPHandlerDialogDelegate::Action action, const KGuiItem &buttonYes, const KGuiItem &buttonNo) const
Opens a KMessageBox::questionYesNo with the question
Returns KMessageBox::Yes or KMessageBox::No
question: dialog's question action: Should the dialog been shown or should a default answer be returned buttonYes: dialog's yes answer buttonNo: dialog's no answer
[signal] void ITIPHandlerDialogDelegate::dialogClosed(int answer, KCalendarCore::iTIPMethod method, const KCalendarCore::Incidence::Ptr &incidence)
Signal is emitted, when the user has answered the dialog or the defaultAction is used answer: answer should be part of KMessageBox:ButtonCode, keep in mind that it is a YesNoDialog so normally it should be KMessageBox::Yes or KMessageBox::No method: itip method incidence: purpose of the dialog
[virtual] void ITIPHandlerDialogDelegate::openDialogIncidenceCreated(Akonadi::ITIPHandlerDialogDelegate::Recipient recipient, const QString &question, Akonadi::ITIPHandlerDialogDelegate::Action action = ActionAsk, const KGuiItem &buttonYes, const KGuiItem &buttonNo)
Opens a Dialog, when an incidence is created The function must emit a dialogClosed signal with the user's answer
recipient: to who the mail will be sent afterwards question: dialog's question action: Should the dialog been shown or should a default answer be returned buttonYes: dialog's yes answer buttonNo: dialog's no answer
[virtual] void ITIPHandlerDialogDelegate::openDialogIncidenceDeleted(Akonadi::ITIPHandlerDialogDelegate::Recipient recipient, const QString &question, Akonadi::ITIPHandlerDialogDelegate::Action action = ActionAsk, const KGuiItem &buttonYes, const KGuiItem &buttonNo)
Opens a Dialog, when an incidence is deleted The function must emit a dialogClosed signal with the user's answer
recipient: to who the mail will be sent afterwards question: dialog's question action: Should the dialog been shown or should a default answer be returned buttonYes: dialog's yes answer buttonNo: dialog's no answer
[virtual] void ITIPHandlerDialogDelegate::openDialogIncidenceModified(bool attendeeStatusChanged, Akonadi::ITIPHandlerDialogDelegate::Recipient recipient, const QString &question, Akonadi::ITIPHandlerDialogDelegate::Action action = ActionAsk, const KGuiItem &buttonYes, const KGuiItem &buttonNo)
Opens a Dialog, when an incidence is modified The function must emit a dialogClosed signal with the user's answer
attendeeStatusChanged: Only the status of the own attendeeStatus is changed recipient: to who the mail will be sent afterwards question: dialog's question action: Should the dialog been shown or should a default answer be returned buttonYes: dialog's yes answer buttonNo: dialog's no answer
[virtual] void ITIPHandlerDialogDelegate::openDialogSchedulerFinished(const QString &question, Akonadi::ITIPHandlerDialogDelegate::Action action = ActionAsk, const KGuiItem &buttonYes, const KGuiItem &buttonNo)
Opens a Dialog, when mail was sended The function must emit a dialogClosed signal with the user's answer
question: dialog's question action: Should the dialog been shown or should a default answer be returned buttonYes: dialog's yes answer buttonNo: dialog's no answer
[virtual] int ITIPHandlerDialogDelegate::warningContinueCancel(const QString &text, const QString &title, const KGuiItem &buttonContinue = KStandardGuiItem::cont(), const KGuiItem &buttonCancel = KStandardGuiItem::cancel())
Opens a warning message box with a Continue and Cancel actions text: dialog's text title: dialog's title buttonContinue: dialog's continue answer buttonCancel: dialog's cancel answer. Returns The button clicked by the user (KMessageBox::ButtonCode)
[virtual] int ITIPHandlerDialogDelegate::warningTwoActionsCancel(const QString &text, const QString &title, const KGuiItem &primaryAction, const KGuiItem &secondaryAction, const KGuiItem &cancelAction = KStandardGuiItem::cancel())
Opens a warning message box with two accept actions and cancel action. text: dialog's text title: dialog's title primaryAction: dialog's primary action secondaryAction: dialog's secondary action cancelAction: dialog's cancel action Returns The button clicked by the user (KMessageBox::ButtonCode)