summaryrefslogtreecommitdiff
path: root/protocols/Quotes/src/ExtraImages.h
blob: e6988cca065186e68277cabd6e83be526b9f984f (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
36
37
38
#ifndef __9d0dac0c_12e4_46ce_809a_db6dc7d6f269_ExtraImages_h__
#define __9d0dac0c_12e4_46ce_809a_db6dc7d6f269_ExtraImages_h__

#include "LightMutex.h"

class CExtraImages : private boost::noncopyable
{
public:
	enum EImageIndex
	{
		eiUp = 0,
		eiDown = 1,
		eiNotChanged = 2,
		eiEmpty = 3,
		ImageCount = 3
	};

private:
	CExtraImages();
	~CExtraImages();

public:
	static CExtraImages& GetInstance();

	void RebuildExtraImages();
	bool SetContactExtraImage(HANDLE hContact,EImageIndex nIndex)const;

private:
	mutable CLightMutex m_lmExtraImages;
	HANDLE m_ahExtraImages[ImageCount];
	HANDLE m_hExtraIcons;
	bool m_bExtraImagesInit;
	int m_nSlot;
};

int QuotesEventFunc_onExtraImageApply(WPARAM wp,LPARAM lp);

#endif //__9d0dac0c_12e4_46ce_809a_db6dc7d6f269_ExtraImages_h__