• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdenetwork API Reference
  • KDE Home
  • Contact Us
 

kopete/libkopete

  • Kopete
  • AvatarQueryJob
Public Member Functions | List of all members
Kopete::AvatarQueryJob Class Reference

#include <kopeteavatarmanager.h>

Inheritance diagram for Kopete::AvatarQueryJob:
Inheritance graph
[legend]

Public Member Functions

 AvatarQueryJob (QObject *parent=0)
 
 ~AvatarQueryJob ()
 
QList
< Kopete::AvatarManager::AvatarEntry > 
avatarList () const
 
void setQueryFilter (Kopete::AvatarManager::AvatarCategory category)
 
virtual void start ()
 

Detailed Description

Job to query avatar on disk.

First create the job:

Kopete::AvatarQueryJob *queryJob = new Kopete::AvatarQueryJob(parent);
queryJob->setQueryFilter(Kopete::AvatarManager::User);
connect(queryJob, SIGNAL(result(KJob*)), this, SLOT(queryResult(KJob*)));
queryJob->start();

Then get the avatar list in the resulting slot:

void SwallowAndCoconut::queryResult(KJob* job)
{
Kopete::AvatarQueryJob *queryJob = static_cast<Kopete::AvatarQueryJob*>(job);
if(queryJob && !queryJob->error())
{
QList<Kopete::AvatarManager::AvatarManager> list = queryJob->avatarList();
// Iterate over list
}
}
Author
Michaƫl Larouche larou.nosp@m.che@.nosp@m.kde.o.nosp@m.rg
See also
Kopete::AvatarManager

Definition at line 248 of file kopeteavatarmanager.h.

Constructor & Destructor Documentation

Kopete::AvatarQueryJob::AvatarQueryJob ( QObject *  parent = 0)

Definition at line 369 of file kopeteavatarmanager.cpp.

Kopete::AvatarQueryJob::~AvatarQueryJob ( )

Definition at line 375 of file kopeteavatarmanager.cpp.

Member Function Documentation

QList< Kopete::AvatarManager::AvatarEntry > Kopete::AvatarQueryJob::avatarList ( ) const

Get the avatar list based on the query.

Returns
List of AvatarManager::AvatarEntry

Definition at line 410 of file kopeteavatarmanager.cpp.

void Kopete::AvatarQueryJob::setQueryFilter ( Kopete::AvatarManager::AvatarCategory  category)

Set the filter for the avatar job.

This is used to only list the user defined avatars or contact avatar.

Definition at line 380 of file kopeteavatarmanager.cpp.

void Kopete::AvatarQueryJob::start ( )
virtual

Definition at line 385 of file kopeteavatarmanager.cpp.


The documentation for this class was generated from the following files:
  • kopeteavatarmanager.h
  • kopeteavatarmanager.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:20 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kopete/libkopete

Skip menu "kopete/libkopete"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdenetwork API Reference

Skip menu "kdenetwork API Reference"
  • kget
  • kopete
  •   kopete
  •   libkopete
  • krdc
  • krfb

Search



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