KDAV2::DavCollection
#include <davcollection.h>
Public Types | |
enum | ContentType { Events = 1 , Todos = 2 , Contacts = 4 , FreeBusy = 8 , Journal = 16 , Calendar = 32 } |
typedef QFlags< ContentType > | ContentTypes |
typedef QVector< DavCollection > | List |
Public Member Functions | |
DavCollection () | |
DavCollection (const DavCollection &other) | |
DavCollection (const DavUrl &url, const QString &displayName, ContentTypes contentTypes) | |
QColor | color () const |
ContentTypes | contentTypes () const |
QString | CTag () const |
QString | displayName () const |
DavCollection & | operator= (const DavCollection &other) |
Privileges | privileges () const |
void | setColor (const QColor &color) |
void | setContentTypes (ContentTypes types) |
void | setCTag (const QString &ctag) |
void | setDisplayName (const QString &name) |
void | setPrivileges (Privileges privs) |
void | setUrl (const DavUrl &url) |
DavUrl | url () const |
Detailed Description
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.
Definition at line 49 of file davcollection.h.
Member Typedef Documentation
◆ ContentTypes
Definition at line 68 of file davcollection.h.
◆ List
Defines a list of DAV collection objects.
Definition at line 55 of file davcollection.h.
Member Enumeration Documentation
◆ ContentType
Describes the possible content type of the DAV collection.
Definition at line 60 of file davcollection.h.
Constructor & Destructor Documentation
◆ DavCollection() [1/3]
DavCollection::DavCollection | ( | ) |
Creates an empty DAV collection.
Definition at line 54 of file davcollection.cpp.
◆ DavCollection() [2/3]
DavCollection::DavCollection | ( | const DavUrl & | url, |
const QString & | displayName, | ||
ContentTypes | contentTypes ) |
Creates a new DAV collection.
- Parameters
-
url The url that identifies the collection. displayName The display name of the collection. contentTypes The possible content types of the collection.
Definition at line 59 of file davcollection.cpp.
◆ DavCollection() [3/3]
DavCollection::DavCollection | ( | const DavCollection & | other | ) |
Definition at line 68 of file davcollection.cpp.
◆ ~DavCollection()
DavCollection::~DavCollection | ( | ) |
Definition at line 80 of file davcollection.cpp.
Member Function Documentation
◆ color()
QColor DavCollection::color | ( | ) | const |
Return the color of the collection, or an empty string if none was provided by the backend.
Definition at line 119 of file davcollection.cpp.
◆ contentTypes()
DavCollection::ContentTypes DavCollection::contentTypes | ( | ) | const |
Returns the possible content types of the collection.
Definition at line 129 of file davcollection.cpp.
◆ CTag()
QString DavCollection::CTag | ( | ) | const |
Returns this collection CTag.
The returned value will be empty if no CTag was found.
Definition at line 89 of file davcollection.cpp.
◆ displayName()
QString DavCollection::displayName | ( | ) | const |
Returns the display name of the collection.
Definition at line 109 of file davcollection.cpp.
◆ operator=()
DavCollection & DavCollection::operator= | ( | const DavCollection & | other | ) |
Definition at line 74 of file davcollection.cpp.
◆ privileges()
Privileges DavCollection::privileges | ( | ) | const |
Returns the privileges on this collection.
Definition at line 139 of file davcollection.cpp.
◆ setColor()
void DavCollection::setColor | ( | const QColor & | color | ) |
Sets the color for this collection.
Definition at line 114 of file davcollection.cpp.
◆ setContentTypes()
void DavCollection::setContentTypes | ( | ContentTypes | types | ) |
Sets the possible content types
of the collection.
Definition at line 124 of file davcollection.cpp.
◆ setCTag()
void DavCollection::setCTag | ( | const QString & | ctag | ) |
Sets this collection CTag.
Definition at line 84 of file davcollection.cpp.
◆ setDisplayName()
void DavCollection::setDisplayName | ( | const QString & | name | ) |
Sets the display name
of the collection.
Definition at line 104 of file davcollection.cpp.
◆ setPrivileges()
void DavCollection::setPrivileges | ( | Privileges | privs | ) |
Sets the privileges on this collection.
Definition at line 134 of file davcollection.cpp.
◆ setUrl()
void DavCollection::setUrl | ( | const DavUrl & | url | ) |
Sets the url
that identifies the collection.
Definition at line 94 of file davcollection.cpp.
◆ url()
DavUrl DavCollection::url | ( | ) | const |
Returns the url that identifies the collection.
Definition at line 99 of file davcollection.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:00:37 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.