summaryrefslogtreecommitdiff
path: root/protocols/MRA/MraAvatars.h
blob: b46b85f4fe27bde3da8924df0bd9da046e2b3172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#if !defined(AFX_MRA_AVATARS_H__F58D13FF_F6F2_476C_B8F0_7B9E9357CF48__INCLUDED_)
#define AFX_MRA_AVATARS_H__F58D13FF_F6F2_476C_B8F0_7B9E9357CF48__INCLUDED_


#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000





DWORD			MraAvatarsQueueInitialize			(HANDLE *phAvatarsQueueHandle);
void			MraAvatarsQueueDestroy				(HANDLE hAvatarsQueueHandle);


#define PA_FORMAT_DEFAULT	255 // return file name of def avatar
#define GetContactAvatarFormat(hContact,dwDefaultFormat)	DB_Mra_GetByte(hContact,"AvatarType",dwDefaultFormat)
#define SetContactAvatarFormat(hContact,dwFormat)			DB_Mra_SetByte(hContact,"AvatarType",(BYTE)dwFormat)

DWORD			MraAvatarsGetFileName				(HANDLE hAvatarsQueueHandle,HANDLE hContact,DWORD dwFormat,LPSTR lpszPath,SIZE_T dwPathSize,SIZE_T *pdwPathSizeRet);

// mir flag: GAIF_FORCE
DWORD			MraAvatarsQueueGetAvatar			(HANDLE hAvatarsQueueHandle,DWORD dwFlags,HANDLE hContact,DWORD *pdwAvatarsQueueID,DWORD *pdwFormat,LPSTR lpszPath);
DWORD			MraAvatarsQueueGetAvatarSimple		(HANDLE hAvatarsQueueHandle,DWORD dwFlags,HANDLE hContact,DWORD dwSourceID);


INT_PTR CALLBACK MraAvatarsQueueDlgProcOpts			(HWND hWndDlg,UINT msg,WPARAM wParam,LPARAM lParam);

DWORD			MraAvatarsDeleteContactAvatarFile	(HANDLE hAvatarsQueueHandle,HANDLE hContact);




#endif // !defined(AFX_MRA_AVATARS_H__F58D13FF_F6F2_476C_B8F0_7B9E9357CF48__INCLUDED_)