CAvatar

#include "Avatar.h"


Description

Avatar class. Used in CContact class.


Private variables

Type Name Description
PPluginAvatar PluginAvatar Variable used to communicate with AQQ
CContact* Contact Parent contact

Public variables

Type Name Description
UnicodeString Filename Path to avatar file
bool XEPEmpty Update avatar if exists?
bool SilientMode Update avatar without asking?
UnicodeString AccountJID JID of account that contains contact

Public methods

Type Name Description
CAvatar(CContact* Contact) Constructor
~CAvatar() Destructor
PPluginAvatar AQQFormat() Function converts this object to AQQ structure
void SDKFormat(PPluginAvatar PluginAvatar) Function converts AQQ structure to this object
int SetAvatar() Functions sets avatar. Returns 0 in case of error else returns 1
void SetWebAvatar(UnicodeString URL) Function sets avatar specified by URL.

Example

Example plugin that sets avatar for a contact you may find here.