KItinerary::DocumentUtil

KItinerary::DocumentUtil Namespace Reference

Functions

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

Detailed Description

Utilities for dealing with documents attached to objects.

See also
https://schema.org/subjectOf

Function Documentation

◆ addDocumentId()

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

Add a document id to the object obj.

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

Definition at line 24 of file documentutil.cpp.

◆ documentIds()

QVariantList KItinerary::DocumentUtil::documentIds ( const QVariant & obj)

Returns all document identifiers associated with object obj.

Definition at line 46 of file documentutil.cpp.

◆ idForContent()

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

Determine a document identifier for the given content.

Definition at line 17 of file documentutil.cpp.

◆ removeDocumentId()

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

Removes the document identifier id from object res.

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

Definition at line 35 of file documentutil.cpp.

◆ setDocumentIds()

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

Sets the list of document identifiers for object obj.

Definition at line 51 of file documentutil.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sun Feb 25 2024 18:40:33 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.