KDAV2::DavItem

KDAV2::DavItem Class Reference

#include <davitem.h>

Public Types

typedef QVector< DavItemList
 

Public Member Functions

 DavItem ()
 
 DavItem (const DavUrl &url, const QString &contentType, const QByteArray &data, const QString &etag)
 
 DavItem (const DavItem &other)
 
QString contentType () const
 
QByteArray data () const
 
QString etag () const
 
DavItemoperator= (const DavItem &other)
 
void setContentType (const QString &type)
 
void setData (const QByteArray &data)
 
void setEtag (const QString &etag)
 
void setUrl (const DavUrl &url)
 
DavUrl url () const
 

Detailed Description

A helper class to store information about DAV resources.

This class is used as container to transfer information about DAV resources between the Akonadi resource and the DAV jobs.

Note
While the DAV RFC names them DAV resource we call them items to comply to Akonadi terminology.

Definition at line 51 of file davitem.h.

Member Typedef Documentation

Defines a list of DAV item objects.

Definition at line 57 of file davitem.h.

Constructor & Destructor Documentation

DavItem::DavItem ( )

Creates an empty DAV item.

Definition at line 49 of file davitem.cpp.

DavItem::DavItem ( const DavUrl url,
const QString contentType,
const QByteArray data,
const QString etag 
)

Creates a new DAV item.

Parameters
urlThe url that identifies the item.
contentTypeThe content type of the item.
dataThe actual raw content data of the item.
etagThe etag of the item.

Definition at line 54 of file davitem.cpp.

Member Function Documentation

QString DavItem::contentType ( ) const

Returns the content type of the item.

Definition at line 94 of file davitem.cpp.

QByteArray DavItem::data ( ) const

Returns the raw content data of the item.

Definition at line 104 of file davitem.cpp.

QString DavItem::etag ( ) const

Returns the etag of the item.

Definition at line 114 of file davitem.cpp.

void DavItem::setContentType ( const QString type)

Sets the content type of the item.

Definition at line 89 of file davitem.cpp.

void DavItem::setData ( const QByteArray data)

Sets the raw content data of the item.

Definition at line 99 of file davitem.cpp.

void DavItem::setEtag ( const QString etag)

Sets the etag of the item.

Definition at line 109 of file davitem.cpp.

void DavItem::setUrl ( const DavUrl url)

Sets the url that identifies the item.

Definition at line 79 of file davitem.cpp.

DavUrl DavItem::url ( ) const

Returns the url that identifies the item.

Definition at line 84 of file davitem.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sat Jul 4 2020 23:19:26 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.