KDAV 5.109.0
|
A helper class to store information about DAV collection. More...
#include <KDAV/DavCollection>
Public Types | |
enum | ContentType { Events = 1 , Todos = 2 , Contacts = 4 , FreeBusy = 8 , Journal = 16 , Calendar = 32 } |
Describes the possible content type of the DAV collection. More... | |
typedef QFlags< ContentType > | ContentTypes |
typedef QVector< DavCollection > | List |
Defines a list of DAV collection objects. | |
Public Member Functions | |
DavCollection () | |
Creates an empty DAV collection. | |
DavCollection (const DavCollection &other) | |
DavCollection (const DavUrl &url, const QString &displayName, ContentTypes contentTypes) | |
Creates a new DAV collection. | |
DavCollection (DavCollection &&) | |
QColor | color () const |
Return the color of the collection, or an empty string if none was provided by the backend. | |
ContentTypes | contentTypes () const |
Returns the possible content types of the collection. | |
QString | CTag () const |
Returns this collection CTag. | |
QString | displayName () const |
Returns the display name of the collection. | |
DavCollection & | operator= (const DavCollection &other) |
DavCollection & | operator= (DavCollection &&) |
Privileges | privileges () const |
Returns the privileges on this collection. | |
void | setColor (const QColor &color) |
Sets the color for this collection. | |
void | setContentTypes (ContentTypes types) |
Sets the possible content types of the collection. | |
void | setCTag (const QString &ctag) |
Sets this collection CTag. | |
void | setDisplayName (const QString &name) |
Sets the display name of the collection. | |
void | setPrivileges (Privileges privs) |
Sets the privileges on this collection. | |
void | setUrl (const DavUrl &url) |
Sets the url that identifies the collection. | |
DavUrl | url () const |
Returns the URL that identifies the collection. | |
A helper class to store information about DAV collection.
This class is used as container to transfer information about DAV collections between the Akonadi resource and the DAV jobs.
typedef QVector<DavCollection> KDAV::DavCollection::List |
Defines a list of DAV collection objects.
Describes the possible content type of the DAV collection.
KDAV::DavCollection::DavCollection | ( | ) |
Creates an empty DAV collection.
KDAV::DavCollection::DavCollection | ( | const DavUrl & | url, |
const QString & | displayName, | ||
ContentTypes | contentTypes | ||
) |
Creates a new DAV collection.
url | The URL that identifies the collection. |
displayName | The display name of the collection. |
contentTypes | The possible content types of the collection. |
QColor KDAV::DavCollection::color | ( | ) | const |
Return the color of the collection, or an empty string if none was provided by the backend.
ContentTypes KDAV::DavCollection::contentTypes | ( | ) | const |
Returns the possible content types of the collection.
QString KDAV::DavCollection::CTag | ( | ) | const |
Returns this collection CTag.
The returned value will be empty if no CTag was found.
QString KDAV::DavCollection::displayName | ( | ) | const |
Returns the display name of the collection.
Privileges KDAV::DavCollection::privileges | ( | ) | const |
Returns the privileges on this collection.
void KDAV::DavCollection::setColor | ( | const QColor & | color | ) |
Sets the color for this collection.
void KDAV::DavCollection::setContentTypes | ( | ContentTypes | types | ) |
Sets the possible content types
of the collection.
void KDAV::DavCollection::setCTag | ( | const QString & | ctag | ) |
Sets this collection CTag.
void KDAV::DavCollection::setDisplayName | ( | const QString & | name | ) |
Sets the display name
of the collection.
void KDAV::DavCollection::setPrivileges | ( | Privileges | privs | ) |
Sets the privileges on this collection.
void KDAV::DavCollection::setUrl | ( | const DavUrl & | url | ) |
Sets the url
that identifies the collection.
DavUrl KDAV::DavCollection::url | ( | ) | const |
Returns the URL that identifies the collection.