![]() |
LeechCraft Azoth
0.6.70-15082-g543737046d
Modular multiprotocol IM plugin for LeechCraft
|
Describes an entry that can have an associated avatar. More...
#include "ihaveavatars.h"
Public Types | |
enum | Size { Size::Full, Size::Thumbnail } |
The size of the avatar. More... | |
Public Member Functions | |
virtual QFuture< QImage > | RefreshAvatar (Size size)=0 |
Requests the avatar of the given size. More... | |
virtual bool | HasAvatar () const =0 |
Returns whether this exact entry has any avatar. More... | |
virtual bool | SupportsSize (Size size) const =0 |
Whether this entry has an avatar of the given size. More... | |
Protected Member Functions | |
virtual | ~IHaveAvatars () |
virtual void | avatarChanged (QObject *thisObject)=0 |
Notifies that the avatar of the entry has been changed. More... | |
Describes an entry that can have an associated avatar.
Definition at line 33 of file ihaveavatars.h.
|
strong |
The size of the avatar.
Enumerator | |
---|---|
Full | Full-size avatar. |
Thumbnail | Thumbnail avatar, possibly cropped. |
Definition at line 46 of file ihaveavatars.h.
|
inlineprotectedvirtual |
Definition at line 42 of file ihaveavatars.h.
|
protectedpure virtual |
Notifies that the avatar of the entry has been changed.
This signal should be emitted when the entry detects that the avatar has been changed.
If possible, the new avatar should not be fetched unless RefreshAvatar() is called.
[out] | thisObject | The this pointer. |
|
pure virtual |
Returns whether this exact entry has any avatar.
Requests the avatar of the given size.
This function should schedule fetching the avatar and return a future that will become ready once the avatar is fetched.
If there is no avatar, a null QImage should be returned.
No cached copies should be returned, the avatar information should be rerequested from scratch (hence refrech in the method name).
If size is not supported, an empty, cancelled future should be returned.
[in] | size | The required size of the avatar. |
|
pure virtual |
Whether this entry has an avatar of the given size.
[in] | size | The desired size of the avatar. |