From 4294963c06cca6c22fe273a8e3366ec4159ab76c Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Fri, 24 Apr 2015 23:07:58 +0000 Subject: AvatarHistory - common project git-svn-id: http://svn.miranda-ng.org/main/trunk@13119 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/AvatarHistory/src/stdafx.h | 86 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 86 insertions(+) create mode 100644 plugins/AvatarHistory/src/stdafx.h (limited to 'plugins/AvatarHistory/src/stdafx.h') diff --git a/plugins/AvatarHistory/src/stdafx.h b/plugins/AvatarHistory/src/stdafx.h new file mode 100644 index 0000000000..f01d314e9d --- /dev/null +++ b/plugins/AvatarHistory/src/stdafx.h @@ -0,0 +1,86 @@ +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include + +#include "../utils/mir_options.h" + +#include "resource.h" +#include "Version.h" +#include "popup.h" + +// Globals +extern HINSTANCE hInst; +extern HGENMENU hMenu; +extern DWORD mirVer; +extern HANDLE hAvatarWindowsList; +extern Options opts; +extern HANDLE hFolder; +extern TCHAR basedir[]; + +#define MODULE_NAME "AvatarHistory" + +#define AVH_DEF_POPUPFG 0 +#define AVH_DEF_POPUPBG 0x2DB6FF +#define AVH_DEF_AVPOPUPS 0 +#define AVH_DEF_LOGTODISK 1 +#define AVH_DEF_LOGKEEPSAMEFOLDER 0 +#define AVH_DEF_LOGOLDSTYLE 0 +#define AVH_DEF_LOGTOHISTORY 1 +#define AVH_DEF_DEFPOPUPS 0 +#define AVH_DEF_SHOWMENU 1 + +#define DEFAULT_TEMPLATE_REMOVED LPGENT("removed his/her avatar") +#define DEFAULT_TEMPLATE_CHANGED LPGENT("changed his/her avatar") + +void LoadOptions(); + + // from icolib.cpp +void SetupIcoLib(); + +HICON createDefaultOverlayedIcon(BOOL big); +HICON createProtoOverlayedIcon(MCONTACT hContact); + +int PreBuildContactMenu(WPARAM wParam,LPARAM lParam); +int IcoLibIconsChanged(WPARAM wParam,LPARAM lParam); + +int OpenAvatarDialog(MCONTACT hContact, char* fn); + +// utils + +TCHAR* GetCachedAvatar(char *proto, TCHAR *hash); +BOOL ProtocolEnabled(const char *proto); +BOOL ContactEnabled(MCONTACT hContact, char *setting, int def); +BOOL CopyImageFile(TCHAR *old_file, TCHAR *new_file); +void ConvertToFilename(TCHAR *str, size_t size); + +void CreateOldStyleShortcut(MCONTACT hContact, TCHAR *history_filename); +BOOL CreateShortcut(TCHAR *file, TCHAR *shortcut); + +#define POPUP_ACTION_DONOTHING 0 +#define POPUP_ACTION_CLOSEPOPUP 1 +#define POPUP_ACTION_OPENAVATARHISTORY 2 +#define POPUP_ACTION_OPENHISTORY 3 + +#define POPUP_DELAY_DEFAULT 0 +#define POPUP_DELAY_CUSTOM 1 +#define POPUP_DELAY_PERMANENT 2 -- cgit v1.2.3