akonadi
Akonadi::ImageProvider Class Reference
#include <imageprovider.h>
Inherits QObject.
Signals | |
void | imageLoaded (const QString &who, const KUrl &url, const QImage &image) |
Public Member Functions | |
ImageProvider (QObject *parent=0) | |
void | abortAllJobs () |
QImage | loadImage (const QString &who, const KUrl &url, bool polishImage=false, KImageCache *cache=0) |
Detailed Description
Class fetching avatars/images from network and storing them in KImageCache.
Definition at line 44 of file imageprovider.h.
Constructor & Destructor Documentation
◆ ImageProvider()
|
explicit |
Definition at line 146 of file imageprovider.cpp.
◆ ~ImageProvider()
Akonadi::ImageProvider::~ImageProvider | ( | ) |
Definition at line 155 of file imageprovider.cpp.
Member Function Documentation
◆ abortAllJobs()
void Akonadi::ImageProvider::abortAllJobs | ( | ) |
Aborts all running jobs.
Definition at line 241 of file imageprovider.cpp.
◆ imageLoaded
|
signal |
Signals image loading has finished.
- Parameters
-
who The username this picture belongs to url URL of the image image The image itself
◆ loadImage()
QImage Akonadi::ImageProvider::loadImage | ( | const QString & | who, |
const KUrl & | url, | ||
bool | polishImage = false , |
||
KImageCache * | cache = 0 |
||
) |
Starts fetching the avatar/image from network.
- Parameters
-
who The username this picture belongs to, can be some general id as well url URL of the image polishImage set to true if you want the image to have rounded corners, used for avatars mainly
Definition at line 161 of file imageprovider.cpp.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2022 The KDE developers.
Generated on Thu Jul 21 2022 00:00:00 by doxygen 1.9.5 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.