From 162e60d66c78bd51aa44c691fe4f4e2f1deb990f Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 19 May 2012 14:24:27 +0000 Subject: added Quotes git-svn-id: http://svn.miranda-ng.org/main/trunk@76 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Quotes/ExtraImages.h | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 plugins/Quotes/ExtraImages.h (limited to 'plugins/Quotes/ExtraImages.h') diff --git a/plugins/Quotes/ExtraImages.h b/plugins/Quotes/ExtraImages.h new file mode 100644 index 0000000000..ec8ae01e39 --- /dev/null +++ b/plugins/Quotes/ExtraImages.h @@ -0,0 +1,39 @@ +#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_onExtraImageListRebuild(WPARAM wp,LPARAM lp); +int QuotesEventFunc_onExtraImageApply(WPARAM wp,LPARAM lp); + +#endif //__9d0dac0c_12e4_46ce_809a_db6dc7d6f269_ExtraImages_h__ -- cgit v1.2.3