kopete/libkopete
kopeteavatarmanager.cpp
Go to the documentation of this file.
99 Kopete::AvatarManager::AvatarEntry AvatarManager::add(Kopete::AvatarManager::AvatarEntry newEntry)
235 KConfigGroup avatarConfig(KSharedConfig::openConfig( configUrl.toLocalFile(), KConfig::SimpleConfig), newEntry.name );
271 KConfigGroup avatarConfig ( KSharedConfig::openConfig( configUrl.toLocalFile(), KConfig::SimpleConfig ), entryToRemove.name );
296 KConfigGroup avatarConfig ( KSharedConfig::openConfig( configUrl.toLocalFile(), KConfig::SimpleConfig ), avatarName );
436 listedEntry.category = static_cast<Kopete::AvatarManager::AvatarCategory>( cg.readEntry("Category", 0) );
AvatarQueryJob(QObject *parent=0)
Definition: kopeteavatarmanager.cpp:369
bool loadFromData(const uchar *data, int len, const char *format)
Kopete::Contact * contact
contact is used when adding a new contact avatar. AvatarManager use it to create the final url...
Definition: kopeteavatarmanager.h:134
AvatarManager::AvatarCategory category
category in which the avatar belong
Definition: kopeteavatarmanager.h:135
QImage image
image is used when adding a new avatar, AvatarManager will write the image on disk.
Definition: kopeteavatarmanager.h:131
struct Kopete::AvatarManager::AvatarEntry AvatarEntry
A single entry in AvatarManager.
void avatarRemoved(Kopete::AvatarManager::AvatarEntry entryRemoved)
An avatar was removed from storage.
bool save(const QString &fileName, const char *format, int quality) const
bool isNull() const
Account * account() const
Get the account that this contact belongs to.
Definition: kopetecontact.cpp:538
bool isNull() const
bool exists() const
QChar separator()
int width() const
bool isEmpty() const
QByteArray readAll()
bool remove(Kopete::AvatarManager::AvatarEntry entryToRemove)
Remove an avatar from the storage.
Definition: kopeteavatarmanager.cpp:252
virtual bool open(QFlags< QIODevice::OpenModeFlag > flags)
static AvatarManager * self()
Get the only instance of AvatarManager.
Definition: kopeteavatarmanager.cpp:51
static const QString AvatarConfig("avatarconfig.rc")
virtual bool open(QFlags< QIODevice::OpenModeFlag > mode)
void avatarAdded(Kopete::AvatarManager::AvatarEntry newEntry)
An avatar was added into the storage.
virtual void close()
QList< Kopete::AvatarManager::AvatarEntry > avatarList() const
Get the avatar list based on the query.
Definition: kopeteavatarmanager.cpp:410
A single entry in AvatarManager.
Definition: kopeteavatarmanager.h:127
Kopete::AvatarManager::AvatarEntry add(Kopete::AvatarManager::AvatarEntry newEntry)
Add an new avatar to the storage.
Definition: kopeteavatarmanager.cpp:99
static const QString ContactDir("Contacts")
static const QString UserDir("User")
void setQueryFilter(Kopete::AvatarManager::AvatarCategory category)
Set the filter for the avatar job.
Definition: kopeteavatarmanager.cpp:380
bool exists(Kopete::AvatarManager::AvatarEntry avatarToCheck)
Check if an avatar exists.
Definition: kopeteavatarmanager.cpp:283
int height() const
Definition: networkstatuscommon.h:11
QByteArray format() const
QImage scaled(int width, int height, Qt::AspectRatioMode aspectRatioMode, Qt::TransformationMode transformMode) const
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:29:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.