114 return static_cast<uint
> (size);
120 "org.LeechCraft.Azoth.IHaveAvatars/1.0");
Describes an entry that can have an associated avatar.
virtual bool SupportsSize(Size size) const =0
Whether this entry has an avatar of the given size.
Thumbnail avatar, possibly cropped.
virtual void avatarChanged(QObject *thisObject)=0
Notifies that the avatar of the entry has been changed.
Q_DECLARE_INTERFACE(LeechCraft::Azoth::IHaveAvatars,"org.LeechCraft.Azoth.IHaveAvatars/1.0")
Size
The size of the avatar.
virtual bool HasAvatar() const =0
Returns whether this exact entry has any avatar.
virtual QFuture< QImage > RefreshAvatar(Size size)=0
Requests the avatar of the given size.
uint qHash(IHaveAvatars::Size size)
Defines a hashing function for avatar sizes.