From 9631bfe941ed0cbba6e720b7efd92966e0c6a670 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 31 Jul 2014 17:50:56 +0000 Subject: old ugly trash removed from AVS git-svn-id: http://svn.miranda-ng.org/main/trunk@10005 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AVS/src/commonheaders.h | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'plugins/AVS/src/commonheaders.h') 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); -- cgit v1.2.3