• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.14.10 API Reference
  • KDE Home
  • Contact Us
 

akonadi

  • Akonadi
  • ImageProvider
Signals | Public Member Functions | List of all members
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()

Akonadi::ImageProvider::ImageProvider ( QObject *  parent = 0)
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

void Akonadi::ImageProvider::imageLoaded ( const QString &  who,
const KUrl &  url,
const QImage &  image 
)
signal

Signals image loading has finished.

Parameters
whoThe username this picture belongs to
urlURL of the image
imageThe 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
whoThe username this picture belongs to, can be some general id as well
urlURL of the image
polishImageset 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:
  • imageprovider.h
  • imageprovider.cpp
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

KDE's Doxygen guidelines are available online.

akonadi

Skip menu "akonadi"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • Modules
  • Related Pages

kdepimlibs-4.14.10 API Reference

Skip menu "kdepimlibs-4.14.10 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal