summaryrefslogtreecommitdiff
path: root/plugins/AVS/src/commonheaders.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-07-31 17:50:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-07-31 17:50:56 +0000
commit9631bfe941ed0cbba6e720b7efd92966e0c6a670 (patch)
tree7b76ef132a0afb2e7185923d368a7fc328358b76 /plugins/AVS/src/commonheaders.h
parent83a45d3e3f7bccff5b32dc0cb2d0e81340ec6ec2 (diff)
old ugly trash removed from AVS
git-svn-id: http://svn.miranda-ng.org/main/trunk@10005 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/AVS/src/commonheaders.h')
-rw-r--r--plugins/AVS/src/commonheaders.h17
1 files changed, 9 insertions, 8 deletions
diff --git a/plugins/AVS/src/commonheaders.h b/plugins/AVS/src/commonheaders.h
index c44fb6b08a..8ea2caab56 100644
--- a/plugins/AVS/src/commonheaders.h
+++ b/plugins/AVS/src/commonheaders.h
@@ -65,15 +65,16 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-struct CacheNode
+struct CacheNode : public avatarCacheEntry, public MZeroedObject
{
- CacheNode *pNextNode;
- avatarCacheEntry ace;
+ CacheNode();
+ ~CacheNode();
BOOL loaded;
- int mustLoad;
DWORD dwFlags;
int pa_format;
+
+ void wipeInfo();
};
// The same fields as avatarCacheEntry + proto name
@@ -127,18 +128,18 @@ void MakePathRelative(MCONTACT hContact, TCHAR *dest);
HBITMAP LoadPNG(struct avatarCacheEntry *ace, char *szFilename);
-void InitCache(void);
void UnloadCache(void);
int CreateAvatarInCache(MCONTACT hContact, avatarCacheEntry *ace, char *szProto);
-void DeleteAvatarFromCache(MCONTACT hContact, BOOL);
+void DeleteAvatarFromCache(MCONTACT hContact, bool bForever);
void PicLoader(LPVOID param);
void InternalDrawAvatar(AVATARDRAWREQUEST *r, HBITMAP hbm, LONG bmWidth, LONG bmHeight, DWORD dwFlags);
-int ChangeAvatar(MCONTACT hContact, BOOL fLoad, BOOL fNotifyHist = FALSE, int pa_format = 0);
+int ChangeAvatar(MCONTACT hContact, bool fLoad, bool fNotifyHist = false, int pa_format = 0);
void DeleteGlobalUserAvatar();
int FetchAvatarFor(MCONTACT hContact, char *szProto = NULL);
-CacheNode* FindAvatarInCache(MCONTACT hContact, BOOL add, BOOL findAny = FALSE);
+CacheNode* FindAvatarInCache(MCONTACT hContact, bool add, bool findAny = false);
+void PushAvatarRequest(CacheNode *cc);
int SetAvatarAttribute(MCONTACT hContact, DWORD attrib, int mode);
void SetIgnoreNotify(char *protocol, BOOL ignore);