#include <scheduler.h>
Inherited by KCal::DummyScheduler, and KCal::IMIPScheduler.
Public Types | |
enum | Method { Publish , Request , Refresh , Cancel , Add , Reply , Counter , Declinecounter , NoMethod } |
Public Member Functions | |
Scheduler (Calendar *calendar) | |
virtual bool | publish (IncidenceBase *incidence, const TQString &recipients)=0 |
virtual bool | performTransaction (IncidenceBase *incidence, Method method)=0 |
virtual bool | performTransaction (IncidenceBase *incidence, Method method, const TQString &recipients)=0 |
virtual TQPtrList< ScheduleMessage > | retrieveTransactions ()=0 |
bool | acceptTransaction (IncidenceBase *, Method method, ScheduleMessage::Status status, const TQString &attendee=TQString()) |
virtual bool | deleteTransaction (IncidenceBase *incidence) |
virtual TQString | freeBusyDir ()=0 |
void | setFreeBusyCache (FreeBusyCache *) |
FreeBusyCache * | freeBusyCache () const |
Static Public Member Functions | |
static TQString | methodName (Method) |
static TQString | translatedMethodName (Method) |
Protected Member Functions | |
bool | acceptPublish (IncidenceBase *, ScheduleMessage::Status status, Method method) |
bool | acceptRequest (IncidenceBase *, ScheduleMessage::Status status, const TQString &attendee) |
bool | acceptAdd (IncidenceBase *, ScheduleMessage::Status status) |
TDE_DEPRECATED bool | acceptCancel (IncidenceBase *, ScheduleMessage::Status status) |
bool | acceptCancel (IncidenceBase *, ScheduleMessage::Status status, const TQString &attendee) |
bool | acceptDeclineCounter (IncidenceBase *, ScheduleMessage::Status status) |
bool | acceptReply (IncidenceBase *, ScheduleMessage::Status status, Method method) |
bool | acceptRefresh (IncidenceBase *, ScheduleMessage::Status status) |
bool | acceptCounter (IncidenceBase *, ScheduleMessage::Status status) |
bool | acceptFreeBusy (IncidenceBase *, Method method) |
Protected Attributes | |
Calendar * | mCalendar |
ICalFormat * | mFormat |
Detailed Description
This class provides an encapsulation of iTIP transactions.
It is an abstract base class for inheritance by implementations of the iTIP scheme like iMIP or iRIP.
Definition at line 97 of file scheduler.h.
Member Enumeration Documentation
◆ Method
iTIP methods.
Definition at line 103 of file scheduler.h.
Constructor & Destructor Documentation
◆ Scheduler()
Scheduler::Scheduler | ( | Calendar * | calendar | ) |
Create scheduler for calendar specified as argument.
Definition at line 74 of file scheduler.cpp.
Member Function Documentation
◆ acceptTransaction()
bool Scheduler::acceptTransaction | ( | IncidenceBase * | incidence, |
Method | method, | ||
ScheduleMessage::Status | status, | ||
const TQString & | attendee = TQString() |
||
) |
Accept transaction.
The incidence argument specifies the iCal compoennt on which the transaction acts. The status is the result of processing a iTIP message with the current calendar and specifies the action to be taken for this incidence. The attendee is the email address of the person on who's behalf this transaction is to be performed.
Definition at line 100 of file scheduler.cpp.
◆ freeBusyCache()
FreeBusyCache * Scheduler::freeBusyCache | ( | ) | const |
Return free/busy cache.
Definition at line 95 of file scheduler.cpp.
◆ freeBusyDir()
|
pure virtual |
Returns the directory where the free-busy information is stored.
◆ methodName()
|
static |
Return a machine-readable name for a iTIP method.
Definition at line 132 of file scheduler.cpp.
◆ performTransaction() [1/2]
|
pure virtual |
Perform iTIP transaction on incidence.
The method is specified as the method argument and can be any valid iTIP method.
◆ performTransaction() [2/2]
|
pure virtual |
Perform iTIP transaction on incidence to specified recipient(s).
The method is specified as the method argumanet and can be any valid iTIP method.
◆ publish()
|
pure virtual |
iTIP publish action
◆ retrieveTransactions()
|
pure virtual |
Retrieve incoming iTIP transactions.
◆ setFreeBusyCache()
void Scheduler::setFreeBusyCache | ( | FreeBusyCache * | c | ) |
Set free/busy cache used to store free/busy information.
Definition at line 90 of file scheduler.cpp.
◆ translatedMethodName()
|
static |
Return a translated human-readable name for a iTIP method.
Definition at line 156 of file scheduler.cpp.
The documentation for this class was generated from the following files: