summaryrefslogtreecommitdiff
path: root/Plugins/emoticons/sdk/m_customsmileys.h
diff options
context:
space:
mode:
authorpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2008-02-20 04:23:23 +0000
committerpescuma <pescuma@c086bb3d-8645-0410-b8da-73a8550f86e7>2008-02-20 04:23:23 +0000
commit965f0ca12bc0c090f9d25a856c36645935832072 (patch)
tree87ec2f3d7e4f74e6e0f3d36fba94d9a7d2ab3057 /Plugins/emoticons/sdk/m_customsmileys.h
Initial import of Emoticons plugin (version 0.0.1.0)
git-svn-id: http://pescuma.googlecode.com/svn/trunk/Miranda@21 c086bb3d-8645-0410-b8da-73a8550f86e7
Diffstat (limited to 'Plugins/emoticons/sdk/m_customsmileys.h')
-rw-r--r--Plugins/emoticons/sdk/m_customsmileys.h52
1 files changed, 52 insertions, 0 deletions
diff --git a/Plugins/emoticons/sdk/m_customsmileys.h b/Plugins/emoticons/sdk/m_customsmileys.h
new file mode 100644
index 0000000..afe99bd
--- /dev/null
+++ b/Plugins/emoticons/sdk/m_customsmileys.h
@@ -0,0 +1,52 @@
+#ifndef __M_CUSTOMSMILEYS_H__
+# define __M_CUSTOMSMILEYS_H__
+
+
+#define CUSTOMSMILEY_STATE_RECEIVED 1
+#define CUSTOMSMILEY_STATE_DOWNLOADED 2
+#define CUSTOMSMILEY_UNICODE 0x100
+
+#ifdef UNICODE
+# define CUSTOMSMILEY_TCHAR CUSTOMSMILEY_UNICODE
+#else
+# define CUSTOMSMILEY_TCHAR 0
+#endif
+
+typedef struct
+{
+ int cbSize;
+ HANDLE hContact;
+ union {
+ const char *pszText; // Valid only during the notification. Optional if CUSTOMSMILEY_STATE_DOWNLOADED
+ const TCHAR *ptszText; // Valid only during the notification. Optional if CUSTOMSMILEY_STATE_DOWNLOADED
+ const WCHAR *pwszText; // Valid only during the notification. Optional if CUSTOMSMILEY_STATE_DOWNLOADED
+ };
+ const char *pszFilename; // Valid only during the notification
+ int flags; // One of CUSTOMSMILEY_STATE_*
+ BOOL download; // "Return" value. Someone have to change it to TRUE for it to be downloaded
+} CUSTOMSMILEY;
+
+
+// Fired when a custom smiley is received from a contact.
+// This can is fired 2 times:
+// 1. When received the text, with flag CUSTOMSMILEY_STATE_RECEIVED. If someone hooks this message and
+// wants the custom smiley, it has to change the download field to TRUE
+// 2. If needed, when the image was downloaded, with flag CUSTOMSMILEY_STATE_DOWNLOADED
+// If the protocol receives the smiley text and image at the same time, it can fire it only once, with
+// flag (CUSTOMSMILEY_STATE_RECEIVED | CUSTOMSMILEY_STATE_DOWNLOADED)
+//
+// wParam = 0
+// lParam = CUSTOMSMILEY *
+#define ME_CUSTOMSMILEY_RECEIVED "/CustomSmileyReceived"
+
+
+
+
+
+
+
+
+
+
+
+#endif __M_CUSTOMSMILEYS_H__