KDAV2::DavItem

Search for usage in LXR

KDAV2::DavItem Class Reference

#include <davitem.h>

Public Types

typedef QVector< DavItemList
 

Public Member Functions

 DavItem ()
 
 DavItem (const DavItem &other)
 
 DavItem (const DavUrl &url, const QString &contentType, const QByteArray &data, const QString &etag)
 
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

◆ List

Defines a list of DAV item objects.

Definition at line 57 of file davitem.h.

Constructor & Destructor Documentation

◆ DavItem() [1/3]

DavItem::DavItem ( )

Creates an empty DAV item.

Definition at line 49 of file davitem.cpp.

◆ DavItem() [2/3]

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.

◆ DavItem() [3/3]

DavItem::DavItem ( const DavItem & other)

Definition at line 63 of file davitem.cpp.

◆ ~DavItem()

DavItem::~DavItem ( )

Definition at line 75 of file davitem.cpp.

Member Function Documentation

◆ contentType()

QString DavItem::contentType ( ) const

Returns the content type of the item.

Definition at line 94 of file davitem.cpp.

◆ data()

QByteArray DavItem::data ( ) const

Returns the raw content data of the item.

Definition at line 104 of file davitem.cpp.

◆ etag()

QString DavItem::etag ( ) const

Returns the etag of the item.

Definition at line 114 of file davitem.cpp.

◆ operator=()

DavItem & DavItem::operator= ( const DavItem & other)

Definition at line 69 of file davitem.cpp.

◆ setContentType()

void DavItem::setContentType ( const QString & type)

Sets the content type of the item.

Definition at line 89 of file davitem.cpp.

◆ setData()

void DavItem::setData ( const QByteArray & data)

Sets the raw content data of the item.

Definition at line 99 of file davitem.cpp.

◆ setEtag()

void DavItem::setEtag ( const QString & etag)

Sets the etag of the item.

Definition at line 109 of file davitem.cpp.

◆ setUrl()

void DavItem::setUrl ( const DavUrl & url)

Sets the url that identifies the item.

Definition at line 79 of file davitem.cpp.

◆ url()

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-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:50:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.