KItinerary::DocumentUtil

KItinerary::DocumentUtil Namespace Reference

Functions

bool addDocumentId (QVariant &res, const QString &id)
 
QVariantList documentIds (const QVariant &res)
 
QString idForContent (const QByteArray &data)
 
bool removeDocumentId (QVariant &res, const QString &id)
 
void setDocumentIds (QVariant &res, const QVariantList &docIds)
 

Detailed Description

Utilities for dealing with documents attached to reservations.

Function Documentation

◆ addDocumentId()

bool KItinerary::DocumentUtil::addDocumentId ( QVariant res,
const QString id 
)

Add a document id to the reservation res.

Returns
true if the document id wasn't present yet and the reservation changed, false otherwise.

Definition at line 25 of file documentutil.cpp.

◆ documentIds()

QVariantList KItinerary::DocumentUtil::documentIds ( const QVariant res)

Returns all document identifiers associcated with reservation res.

Definition at line 55 of file documentutil.cpp.

◆ idForContent()

QString KItinerary::DocumentUtil::idForContent ( const QByteArray data)

Determine a document identifier for the given content.

Definition at line 18 of file documentutil.cpp.

◆ removeDocumentId()

bool KItinerary::DocumentUtil::removeDocumentId ( QVariant res,
const QString id 
)

Removes the document identifier id from reservation res.

Returns
true if the document id was present and the reservation changed, false otherwise.

Definition at line 40 of file documentutil.cpp.

◆ setDocumentIds()

void KItinerary::DocumentUtil::setDocumentIds ( QVariant res,
const QVariantList &  docIds 
)

Sets the list of document identifiers for reservation res.

Definition at line 63 of file documentutil.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Jun 26 2022 03:56:26 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.