summaryrefslogtreecommitdiff
path: root/protocols/Yahoo/src/avatar.h
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-10-14 08:19:21 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-10-14 08:19:21 +0000
commite179ffc995c96568bfdce46ac73f58d569166f05 (patch)
treeee2dfd530b75ef4ae06cb7079c923fe7e2fbafa8 /protocols/Yahoo/src/avatar.h
parentd722261be7a0cd3aa259aa285aea7f936c0e2f0e (diff)
Yahoo: folders restructurization
git-svn-id: http://svn.miranda-ng.org/main/trunk@1918 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Yahoo/src/avatar.h')
-rw-r--r--protocols/Yahoo/src/avatar.h60
1 files changed, 60 insertions, 0 deletions
diff --git a/protocols/Yahoo/src/avatar.h b/protocols/Yahoo/src/avatar.h
new file mode 100644
index 0000000000..57bf6e6e8f
--- /dev/null
+++ b/protocols/Yahoo/src/avatar.h
@@ -0,0 +1,60 @@
+/*
+ * $Id: avatar.h 8461 2008-10-23 14:39:20Z gena01 $
+ *
+ * myYahoo Miranda Plugin
+ *
+ * Authors: Gennady Feldman (aka Gena01)
+ * Laurent Marechal (aka Peorth)
+ *
+ * This code is under GPL and is based on AIM, MSN and Miranda source code.
+ * I want to thank Robert Rainwater and George Hazan for their code and support
+ * and for answering some of my questions during development of this plugin.
+ */
+#ifndef _YAHOO_AVATAR_H_
+#define _YAHOO_AVATAR_H_
+
+#include <m_avatars.h>
+
+void YAHOO_request_avatar(const char* who);
+void GetAvatarFileName(HANDLE hContact, char* pszDest, int cbLen, int type);
+
+void YAHOO_SendAvatar(const char *szFile);
+
+void YAHOO_set_avatar(int buddy_icon);
+
+int YAHOO_SaveBitmapAsAvatar( HBITMAP hBitmap, const char* szFileName );
+
+HBITMAP YAHOO_StretchBitmap( HBITMAP hBitmap );
+
+void yahoo_reset_avatar(HANDLE hContact);
+
+HBITMAP YAHOO_SetAvatar(const char *szFile);
+
+void YAHOO_get_avatar(const char *who, const char *pic_url, long cksum);
+
+/**
+ * AVS Services - loadavatars.dll uses these to get the info from us
+ */
+int YahooGetAvatarCaps(WPARAM wParam, LPARAM lParam);
+
+int YahooGetAvatarInfo(WPARAM wParam,LPARAM lParam);
+
+int YahooGetMyAvatar(WPARAM wParam, LPARAM lParam);
+
+int YahooSetMyAvatar(WPARAM wParam, LPARAM lParam);
+
+/**
+ * Callbacks for libyahoo2
+ */
+void ext_yahoo_got_picture(int id, const char *me, const char *who, const char *pic_url, int cksum, int type);
+
+void ext_yahoo_got_picture_checksum(int id, const char *me, const char *who, int cksum);
+
+void ext_yahoo_got_picture_update(int id, const char *me, const char *who, int buddy_icon);
+
+void ext_yahoo_got_picture_status(int id, const char *me, const char *who, int buddy_icon);
+
+void ext_yahoo_got_picture_upload(int id, const char *me, const char *url,unsigned int ts);
+
+void ext_yahoo_got_avatar_share(int id, int buddy_icon);
+#endif