akonadi
#include <partfetcher.h>
Inherits KJob.
Public Member Functions | |
PartFetcher (const QModelIndex &index, const QByteArray &partName, QObject *parent=0) | |
virtual | ~PartFetcher () |
QModelIndex | index () const |
Item | item () const |
QByteArray | partName () const |
virtual void | start () |
Detailed Description
Convenience class for getting payload parts from an Akonadi Model.
This class can be used to retrieve individual payload parts from an EntityTreeModel, and fetch them asynchronously from the Akonadi storage if necessary.
The requested part is emitted though the partFetched signal.
Example:
- Since
- 4.4
Definition at line 73 of file partfetcher.h.
Constructor & Destructor Documentation
PartFetcher::PartFetcher | ( | const QModelIndex & | index, |
const QByteArray & | partName, | ||
QObject * | parent = 0 |
||
) |
Creates a new part fetcher.
- Parameters
-
index The index of the item to fetch the part from. partName The name of the payload part to fetch. parent The parent object.
Definition at line 105 of file partfetcher.cpp.
|
virtual |
Destroys the part fetcher.
Definition at line 111 of file partfetcher.cpp.
Member Function Documentation
QModelIndex PartFetcher::index | ( | ) | const |
Returns the index of the item the part was fetched from.
Definition at line 165 of file partfetcher.cpp.
Item PartFetcher::item | ( | ) | const |
Returns the item that contains the fetched payload part.
Definition at line 179 of file partfetcher.cpp.
QByteArray PartFetcher::partName | ( | ) | const |
Returns the name of the part that has been fetched.
Definition at line 172 of file partfetcher.cpp.
|
virtual |
Starts the fetch operation.
Definition at line 116 of file partfetcher.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:38:05 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.