diff options
author | George Hazan <george.hazan@gmail.com> | 2014-01-23 20:29:14 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-01-23 20:29:14 +0000 |
commit | b9eed106e74a7725f57b8175bc580a1520e1fe24 (patch) | |
tree | 916b5aab16e50ad2a968d0b5145fc9c3447a57f1 /include | |
parent | 77ece3939612fb0133d20815883e4ed50a10230e (diff) |
patch for avatars reading optimization (by wsx22)
git-svn-id: http://svn.miranda-ng.org/main/trunk@7843 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include')
-rw-r--r-- | include/delphi/m_avatars.inc | 13 | ||||
-rw-r--r-- | include/m_avatars.h | 15 |
2 files changed, 19 insertions, 9 deletions
diff --git a/include/delphi/m_avatars.inc b/include/delphi/m_avatars.inc index d9a7bb7328..595f65dd70 100644 --- a/include/delphi/m_avatars.inc +++ b/include/delphi/m_avatars.inc @@ -41,7 +41,7 @@ have been disabled in the option dialog). It also does not actively fetch avatars for
protocols which are in invisible status mode (may cause privacy issues and some protocols
like MSN don't allow any outbound client communication when in invisible status mode)
- unless AF_FETCHALWAYS is set.
+ unless AF_FETCHIFPROTONOTVISIBLE is set.
- TODO
- maintain recent avatars (store the last hashes to avoid re-fetching)
@@ -379,11 +379,16 @@ const // return = the time, in ms
AF_DELAYAFTERFAIL = 7;
-// Fetching avatars is always possible and allowed
+// Fetching avatars is allowed when protocol's status is invisible
// lParam = 0
-// return = 1 (always) or 0 (depending on our or contacts status mode)
- AF_FETCHALWAYS = 8;
+// return = 1 (allowed) or 0 (depending on our protocol status mode)
+ AF_FETCHIFPROTONOTVISIBLE = 8;
+// Fetching avatars is allowed when contact is in offline status
+// lParam = 0
+// return = 1 (allowed) or 0 (depending on remote contact status mode)
+ AF_FETCHIFCONTACTOFFLINE = 9;
+
{
Query avatar caps for a protocol
wParam = One of AF_*
diff --git a/include/m_avatars.h b/include/m_avatars.h index ce5fd20949..a91ca7ffb4 100644 --- a/include/m_avatars.h +++ b/include/m_avatars.h @@ -43,7 +43,7 @@ protocols which do not report avatar capabilities via PF4_AVATARS or for protoco have been disabled in the option dialog). It also does not actively fetch avatars for
protocols which are in invisible status mode (may cause privacy issues and some protocols
like MSN don't allow any outbound client communication when in invisible status mode)
-unless AF_FETCHALWAYS is set.
+unless AF_FETCHIFPROTONOTVISIBLE is set.
- TODO
- maintain recent avatars (store the last hashes to avoid re-fetching)
@@ -218,7 +218,7 @@ typedef struct _contactAvatarChangedNotification { // fired when the contacts avatar is changed by the contact
// wParam = hContact
-// lParam = struct CONTACTAVATARCHANGENOTIFICATION *cacn
+// lParam = struct CONTACTAVATARCHANGEDNOTIFICATION *cacn
// the event CAN pass a NULL pointer in lParam which means that the contact deleted its avatar
#define ME_AV_CONTACTAVATARCHANGED "SV_Avatars/ContactAvatarChanged"
@@ -350,10 +350,15 @@ return=0 for sucess // return = the time, in ms
#define AF_DELAYAFTERFAIL 7
-// Fetching avatars is always possible and allowed
+// Fetching avatars is allowed when protocol's status is invisible
// lParam = 0
-// return = 1 (always) or 0 (depending on our or contacts status mode)
-#define AF_FETCHALWAYS 8
+// return = 1 (allowed) or 0 (depending on our protocol status mode)
+#define AF_FETCHIFPROTONOTVISIBLE 8
+
+// Fetching avatars is allowed when contact is in offline status
+// lParam = 0
+// return = 1 (allowed) or 0 (depending on remote contact status mode)
+#define AF_FETCHIFCONTACTOFFLINE 9
/*
|