Akonadi
mimetypechecker.cpp
126bool MimeTypeChecker::isWantedCollection(const Collection &collection, const QString &wantedMimeType)
Helper for checking MIME types of Collections and Items.
Definition mimetypechecker.h:97
void addWantedMimeType(const QString &mimeType)
Adds another MIME type to the list of wanted MIME types this instance checks against.
Definition mimetypechecker.cpp:54
bool isWantedMimeType(const QString &mimeType) const
Checks whether a given mime type is covered by one of the wanted MIME types.
Definition mimetypechecker.cpp:160
bool hasWantedMimeTypes() const
Checks whether any wanted MIME types are set.
Definition mimetypechecker.cpp:44
bool isWantedItem(const Item &item) const
Checks whether a given item has one of the wanted MIME types.
Definition mimetypechecker.cpp:64
bool isWantedCollection(const Collection &collection) const
Checks whether a given collection has one of the wanted MIME types.
Definition mimetypechecker.cpp:78
QStringList wantedMimeTypes() const
Returns the list of wanted MIME types this instance checks against.
Definition mimetypechecker.cpp:39
MimeTypeChecker & operator=(const MimeTypeChecker &other)
Assigns the other to this checker and returns a reference to this checker.
Definition mimetypechecker.cpp:30
void removeWantedMimeType(const QString &mimeType)
Removes a MIME type from the list of wanted MIME types this instance checks against.
Definition mimetypechecker.cpp:59
bool containsWantedMimeType(const QStringList &mimeTypes) const
Checks whether any of the given MIME types is covered by one of the wanted MIME types.
Definition mimetypechecker.cpp:165
void setWantedMimeTypes(const QStringList &mimeTypes)
Sets the list of wanted MIME types this instance checks against.
Definition mimetypechecker.cpp:49
Helper integration between Akonadi and Qt.
iterator begin()
iterator end()
bool isEmpty() const const
QMimeType mimeTypeForName(const QString &nameOrAlias) const const
bool inherits(const QString &mimeTypeName) const const
bool isValid() const const
bool isEmpty() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:00:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:00:59 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.