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

kopete/libkopete

Kopete::AvatarQueryJob

Kopete::AvatarQueryJob Class Reference

#include <kopeteavatarmanager.h>

Inheritance diagram for Kopete::AvatarQueryJob:

Inheritance graph
[legend]

List of all members.


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 <larouche@kde.org>
See also:
Kopete::AvatarManager

Definition at line 234 of file kopeteavatarmanager.h.


Public Member Functions

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

Constructor & Destructor Documentation

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

Definition at line 287 of file kopeteavatarmanager.cpp.

Kopete::AvatarQueryJob::~AvatarQueryJob (  ) 

Definition at line 293 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 329 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 298 of file kopeteavatarmanager.cpp.

void Kopete::AvatarQueryJob::start (  )  [virtual]

Definition at line 303 of file kopeteavatarmanager.cpp.


The documentation for this class was generated from the following files:
  • kopeteavatarmanager.h
  • kopeteavatarmanager.cpp

kopete/libkopete

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

kdenetwork

Skip menu "kdenetwork"
  • kget
  • kopete
  •   kopete
  •   libkopete
  •       libpapillon
  • krfb
Generated for kdenetwork by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal