akonadi
#include <freebusyproviderbase.h>
Public Member Functions | |
FreeBusyProviderBase () | |
FreeBusyProviderBase () | |
virtual | ~FreeBusyProviderBase () |
virtual | ~FreeBusyProviderBase () |
virtual void | canHandleFreeBusy (const QString &email) const =0 |
virtual void | canHandleFreeBusy (const QString &email) const =0 |
void | freeBusyRetrieved (const QString &email, const QString &freeBusy, bool success, const QString &errorText=QString()) |
void | freeBusyRetrieved (const QString &email, const QString &freeBusy, bool success, const QString &errorText=QString()) |
void | handlesFreeBusy (const QString &email, bool handles) const |
void | handlesFreeBusy (const QString &email, bool handles) const |
virtual KDateTime | lastCacheUpdate () const =0 |
virtual KDateTime | lastCacheUpdate () const =0 |
virtual void | retrieveFreeBusy (const QString &email, const KDateTime &start, const KDateTime &end)=0 |
virtual void | retrieveFreeBusy (const QString &email, const KDateTime &start, const KDateTime &end)=0 |
Detailed Description
Base class for resources providing free-busy information.
This class must be inherited by resources that are able to provide free-busy information for a given contact on request. A resource will thus inherit from ResourceBase and FreeBusyProvider.
Resources that provide FB info must declare it by adding 'FreeBusyProvider' in the X-Akonadi-Capabilities field of their .desktop file:
Resource inheriting from this class must implement lastCacheUpdate(), canHandleFreeBusy() and retrieveFreeBusy().
- Since
- 4.7
Definition at line 54 of file calendar/freebusyproviderbase.h.
Constructor & Destructor Documentation
FreeBusyProviderBase::FreeBusyProviderBase | ( | ) |
Creates a new FreeBusyProvider.
Definition at line 56 of file calendar/freebusyproviderbase.cpp.
|
virtual |
Destroys a FreeBusyProvider.
Definition at line 61 of file calendar/freebusyproviderbase.cpp.
Akonadi::FreeBusyProviderBase::FreeBusyProviderBase | ( | ) |
Creates a new FreeBusyProvider.
|
virtual |
Destroys a FreeBusyProvider.
Member Function Documentation
|
pure virtual |
This method is called to find out is the resource handle free-busy information for the contact with email address email
.
The caller will not wait for the result. Once the decision is known, the resource must call handlesFreeBusy().
- Parameters
-
email The email address of the contact we want the free-busy info. This is a simple email address, in the form foo@b (no display name or quoting). ar.c om
- See also
- handlesFreeBusy()
|
pure virtual |
This method is called to find out is the resource handle free-busy information for the contact with email address email
.
The caller will not wait for the result. Once the decision is known, the resource must call handlesFreeBusy().
- Parameters
-
email The email address of the contact we want the free-busy info. This is a simple email address, in the form foo@b (no display name or quoting). ar.c om
- See also
- handlesFreeBusy()
void FreeBusyProviderBase::freeBusyRetrieved | ( | const QString & | email, |
const QString & | freeBusy, | ||
bool | success, | ||
const QString & | errorText = QString() |
||
) |
Derivate classes must call this method to notify the requestor that the result is here.
The freeBusy
is expected to be an iTIP request containing the free-busy data. The simplest way to generate this is to use KCalCore::ICalFormat::createScheduleMessage() with the method KCalCore::iTIPRequest.
- Parameters
-
email The email address of the contact we give the response for. This is a simple email address, in the form foo@b (no display name or quoting). ar.c om freeBusy The free-busy data. success Whether the retrieval was successful or not. errorText An optional error message that can be displayed back to the user.
Definition at line 71 of file calendar/freebusyproviderbase.cpp.
void Akonadi::FreeBusyProviderBase::freeBusyRetrieved | ( | const QString & | email, |
const QString & | freeBusy, | ||
bool | success, | ||
const QString & | errorText = QString() |
||
) |
Derivate classes must call this method to notify the requestor that the result is here.
The freeBusy
is expected to be an iTIP request containing the free-busy data. The simplest way to generate this is to use KCalCore::ICalFormat::createScheduleMessage() with the method KCalCore::iTIPRequest.
- Parameters
-
email The email address of the contact we give the response for. This is a simple email address, in the form foo@b (no display name or quoting). ar.c om freeBusy The free-busy data. success Whether the retrieval was successful or not. errorText An optional error message that can be displayed back to the user.
void Akonadi::FreeBusyProviderBase::handlesFreeBusy | ( | const QString & | email, |
bool | handles | ||
) | const |
Derivate classes must call this method once they know if they handle free-busy information for the contact with email address email
.
- Parameters
-
email The email address of the contact we give the response for. This is a simple email address, in the form foo@b (no display name or quoting). ar.c om handles Whether this resource handles free-busy (true) or not (false).
void FreeBusyProviderBase::handlesFreeBusy | ( | const QString & | email, |
bool | handles | ||
) | const |
Derivate classes must call this method once they know if they handle free-busy information for the contact with email address email
.
- Parameters
-
email The email address of the contact we give the response for. This is a simple email address, in the form foo@b (no display name or quoting). ar.c om handles Whether this resource handles free-busy (true) or not (false).
Definition at line 66 of file calendar/freebusyproviderbase.cpp.
|
pure virtual |
Returns the last time the free-busy information was fetched from the server.
This can be used for example to issue a warning to the user that this information may not be accurate and must be refreshed; pretty useful when the resource was offline for too long.
- Returns
- The date and time the cache was last updated.
|
pure virtual |
Returns the last time the free-busy information was fetched from the server.
This can be used for example to issue a warning to the user that this information may not be accurate and must be refreshed; pretty useful when the resource was offline for too long.
- Returns
- The date and time the cache was last updated.
|
pure virtual |
This method is called when the resource must do the real work and fetch the free-busy information for the contact with email address email
.
As with canHandleFreeBusy() the caller will not wait for the result and the resource must call freeBusyRetrieved() once done.
- Parameters
-
email The email address of the contact we want the free-busy info. This is a simple email address, in the form foo@b (no display name or quoting). ar.c om start The start of the period the free-busy request covers end The end of the free-busy period
- See also
- freeBusyRetrieved()
|
pure virtual |
This method is called when the resource must do the real work and fetch the free-busy information for the contact with email address email
.
As with canHandleFreeBusy() the caller will not wait for the result and the resource must call freeBusyRetrieved() once done.
- Parameters
-
email The email address of the contact we want the free-busy info. This is a simple email address, in the form foo@b (no display name or quoting). ar.c om start The start of the period the free-busy request covers end The end of the free-busy period
- See also
- freeBusyRetrieved()
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 23:00:29 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.