From 1eec1e5f5b57fb56fbfeb56fc57777153c14df82 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Tue, 23 Sep 2014 20:28:25 +0000 Subject: Tox: avatars support part one git-svn-id: http://svn.miranda-ng.org/main/trunk@10568 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_proto.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'protocols/Tox/src/tox_proto.cpp') diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 7106d88af6..19d830d97b 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -39,6 +39,12 @@ PROTO(protoName, userName) dbEventType.eventType = TOX_DB_EVENT_TYPE_ACTION; dbEventType.descr = "Tox action"; CallService(MS_DB_EVENT_REGISTERTYPE, 0, (LPARAM)&dbEventType); + + // avatars + /*CreateProtoService(PS_GETAVATARCAPS, &CToxProto::GetAvatarCaps); + CreateProtoService(PS_GETAVATARINFOT, &CToxProto::GetAvatarInfo); + CreateProtoService(PS_GETMYAVATART, &CToxProto::GetMyAvatar); + CreateProtoService(PS_SETMYAVATART, &CToxProto::SetMyAvatar);*/ } CToxProto::~CToxProto() @@ -57,7 +63,8 @@ DWORD_PTR __cdecl CToxProto::GetCaps(int type, MCONTACT hContact) case PFLAGNUM_2: return PF2_ONLINE | PF2_SHORTAWAY | PF2_LIGHTDND; case PFLAGNUM_4: - return PF4_IMSENDUTF | PF4_SINGLEFILEONLY | PF4_NOAUTHDENYREASON | PF4_FORCEAUTH | PF4_FORCEADDED | PF4_SUPPORTTYPING; + return PF4_IMSENDUTF | PF4_SINGLEFILEONLY | PF4_NOAUTHDENYREASON |PF4_FORCEAUTH + | PF4_FORCEADDED | PF4_SUPPORTTYPING | PF4_AVATARS; case PFLAG_UNIQUEIDTEXT: return (INT_PTR)"Tox ID"; case PFLAG_UNIQUEIDSETTING: -- cgit v1.2.3