]> cgit.babelmonkeys.de Git - jubjub.git/blob - src/core/JubAvatarManager.h
Add User Avatar support
[jubjub.git] / src / core / JubAvatarManager.h
1 #import <ObjFW/ObjFW.h>
2 #import <ObjXMPP/ObjXMPP.h>
3
4 @class JubChatClient;
5 @class XMPPContact;
6
7 @protocol JubAvatarManagerDelegate
8 - (void)contact: (XMPPContact*)contact
9    didSetAvatar: (OFString*)avatarFile;
10 @end
11
12 @interface JubAvatarManager : OFObject <XMPPConnectionDelegate>
13 {
14         JubChatClient *_client;
15         id<JubAvatarManagerDelegate> _delegate;
16         OFMutableString *cachePath;
17 }
18 @property (assign) id<JubAvatarManagerDelegate> delegate;
19
20 - initWithClient: (JubChatClient*)client;
21 - (void)Jub_connection: (XMPPConnection*)connection
22       receivedAvatarIQ: (XMPPIQ*)IQ;
23 @end