Akonadi
item.cpp
26 Q_GLOBAL_STATIC(Akonadi::Collection, s_defaultParentCollection) // NOLINT(readability-redundant-member-init)
439 qCCritical(AKONADICORE_LOG, "conversion threw something not derived from std::exception: fix the program!");
465 qCDebug(AKONADICORE_LOG) << "Throwing PayloadException: Wrong payload type (requested:" << format_type(spid, mtid)
467 throw PayloadException(QStringLiteral("Wrong payload type (requested: %1; present: %2)").arg(format_type(spid, mtid), format_types(d_ptr->mPayloads)));
476 void Item::addPayloadBaseVariant(int spid, int mtid, std::unique_ptr<Internal::PayloadBase> &p) const
const T * attribute() const
Returns the attribute of the requested type or 0 if it is not available.
Definition: item.h:758
Collection::List virtualReferences() const
Lists virtual collections that this item is linked to.
Definition: item.cpp:367
bool hasFlag(const QByteArray &name) const
Returns whether the flag with the given name is set in the item.
Definition: item.cpp:230
QString number(int n, int base)
bool removeOne(const T &t)
void setPayloadFromData(const QByteArray &data)
Sets the payload based on the canonical representation normally used for data of this mime type.
Definition: item.cpp:301
QSet::iterator erase(QSet::iterator pos)
QString scheme() const const
QVector::iterator begin()
static const char FullPayload[]
Describes the part name that is used to fetch the full payload of an item.
Definition: item.h:132
void insert(int i, T &&value)
QSet::iterator find(const T &value)
qlonglong toLongLong(bool *ok, int base) const const
QDateTime modificationTime() const
Returns the timestamp of the last modification of this item.
Definition: item.cpp:220
void setParentCollection(const Collection &parent)
Set the parent collection of this object.
Definition: item.cpp:170
bool operator!=(const Item &other) const
Returns whether the item's id does not equal the id of the other item.
Definition: item.cpp:99
void setVirtualReferences(const Collection::List &collections)
Sets the virtual collections that this item is linked into.
Definition: item.cpp:362
void setMimeType(const QString &mimeType)
Sets the mime type of the item to mimeType.
Definition: item.cpp:347
void push_back(const T &value)
bool hasAttribute() const
Returns whether the item has an attribute of the requested type.
Definition: item.h:778
Q_GLOBAL_STATIC(Internal::StaticControl, s_instance) class ControlPrivate
Definition: control.cpp:28
void setScheme(const QString &scheme)
bool operator==(const Item &other) const
Returns whether this item's id equals the id of the other item.
Definition: item.cpp:93
void reserve(int alloc)
Attribute::List attributes() const
Returns a list of all attributes of the item.
Definition: item.cpp:133
void setModificationTime(const QDateTime &datetime)
Sets the timestamp of the last modification of this item.
Definition: item.cpp:225
Collection::Id storageCollectionId() const
Returns the unique identifier of the collection this item is stored in.
Definition: item.cpp:321
const char * typeName(int typeId)
QByteArray toUtf8() const const
Collection parentCollection() const
Returns the parent collection of this object.
Definition: item.cpp:153
bool contains(const T &value) const const
Item & operator=(const Item &other)
Assigns the other to this item and returns a reference to this item.
Definition: item.cpp:104
QString join(const QString &separator) const const
void removeAttribute()
Removes and deletes the attribute of the requested type.
Definition: item.h:772
void reserve(int size)
QString payloadPath() const
Returns path to the payload file set by setPayloadPath()
Definition: item.cpp:516
void setPayloadPath(const QString &filePath)
Sets a path to a file with full payload.
Definition: item.cpp:507
void setQuery(const QString &query, QUrl::ParsingMode mode)
void setRemoteRevision(const QString &revision)
Sets the remote revision of the item.
Definition: item.cpp:78
QVector::iterator end()
QString arg(qlonglong a, int fieldWidth, int base, QChar fillChar) const const
unsigned int version()
void clearPayload()
Marks that the payload shall be cleared from the cache when this item is passed to an ItemModifyJob t...
Definition: item.cpp:306
QSet< QByteArray > availablePayloadParts() const
Returns the parts available for this item.
Definition: item.cpp:491
QSet::iterator end()
QSet< QByteArray > cachedPayloadParts() const
Returns the parts available for this item in the cache.
Definition: item.cpp:481
QByteArray payloadData() const
Returns the full payload in its canonical representation, e.g.
Definition: item.cpp:293
QString queryItemValue(const QString &key, QUrl::ComponentFormattingOptions encoding) const const
void setFlags(const Flags &flags)
Overwrites all flags of the item by the given flags.
Definition: item.cpp:208
QSet< QByteArray > loadedPayloadParts() const
Returns the list of loaded payload parts.
Definition: item.cpp:288
void clearFlag(const QByteArray &name)
Removes the flag with the given name from the item.
Definition: item.cpp:194
void setFlag(const QByteArray &name)
Sets the flag with the given name in the item.
Definition: item.cpp:180
QVector< int > availablePayloadMetaTypeIds() const
Returns a list of metatype-ids, describing the different variants of payload that are currently conta...
Definition: item.cpp:496
Helper integration between Akonadi and Qt.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Feb 5 2023 03:58:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2023 The KDE developers.
Generated on Sun Feb 5 2023 03:58:30 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.