diff options
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/jabber.cpp | 10 | ||||
-rw-r--r-- | protocols/JabberG/jabber_10.vcxproj | 8 | ||||
-rw-r--r-- | protocols/JabberG/jabber_events.cpp | 2 | ||||
-rw-r--r-- | protocols/JabberG/jabber_menu.cpp | 2 | ||||
-rw-r--r-- | protocols/JabberG/jabber_misc.cpp | 2 | ||||
-rw-r--r-- | protocols/JabberG/jabber_opt.cpp | 4 | ||||
-rw-r--r-- | protocols/JabberG/jabber_proto.cpp | 4 | ||||
-rw-r--r-- | protocols/JabberG/jabber_svc.cpp | 2 | ||||
-rw-r--r-- | protocols/JabberG/jabber_xstatus.cpp | 4 | ||||
-rw-r--r-- | protocols/JabberG/sdk/m_assocmgr.h | 301 | ||||
-rw-r--r-- | protocols/JabberG/sdk/m_extraicons.h | 158 | ||||
-rw-r--r-- | protocols/JabberG/sdk/m_folders.h | 282 | ||||
-rw-r--r-- | protocols/JabberG/sdk/m_modernopt.h | 112 | ||||
-rw-r--r-- | protocols/JabberG/sdk/m_proto_listeningto.h | 144 | ||||
-rw-r--r-- | protocols/JabberG/sdk/m_toolbar.h | 75 | ||||
-rw-r--r-- | protocols/JabberG/sdk/m_wizard.h | 90 |
16 files changed, 19 insertions, 1181 deletions
diff --git a/protocols/JabberG/jabber.cpp b/protocols/JabberG/jabber.cpp index 4c81717d8a..1ab12a6449 100644 --- a/protocols/JabberG/jabber.cpp +++ b/protocols/JabberG/jabber.cpp @@ -35,11 +35,11 @@ Last change by : $Author: borkra $ #include <m_fontservice.h>
#include <m_icolib.h>
-#include "sdk/m_assocmgr.h"
-#include "sdk/m_folders.h"
-#include "sdk/m_wizard.h"
-#include "sdk/m_toolbar.h"
-#include "sdk/m_extraicons.h"
+#include "m_assocmgr.h"
+#include "m_folders.h"
+#include "m_wizard.h"
+#include "m_toolbar.h"
+#include "m_extraicons.h"
HINSTANCE hInst;
PLUGINLINK *pluginLink;
diff --git a/protocols/JabberG/jabber_10.vcxproj b/protocols/JabberG/jabber_10.vcxproj index a142eaddb6..49589694a4 100644 --- a/protocols/JabberG/jabber_10.vcxproj +++ b/protocols/JabberG/jabber_10.vcxproj @@ -105,7 +105,7 @@ <IntrinsicFunctions>true</IntrinsicFunctions>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<WholeProgramOptimization>true</WholeProgramOptimization>
- <AdditionalIncludeDirectories>../../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;JABBER_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<ExceptionHandling>false</ExceptionHandling>
@@ -155,7 +155,7 @@ <IntrinsicFunctions>true</IntrinsicFunctions>
<FavorSizeOrSpeed>Size</FavorSizeOrSpeed>
<WholeProgramOptimization>true</WholeProgramOptimization>
- <AdditionalIncludeDirectories>../../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;_USRDLL;JABBER_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>true</StringPooling>
<ExceptionHandling>false</ExceptionHandling>
@@ -201,7 +201,7 @@ </Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>../../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;JABBER_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>false</StringPooling>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
@@ -240,7 +240,7 @@ </Midl>
<ClCompile>
<Optimization>Disabled</Optimization>
- <AdditionalIncludeDirectories>../../include;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
+ <AdditionalIncludeDirectories>../../include;../../plugins/ExternalAPI;%(AdditionalIncludeDirectories)</AdditionalIncludeDirectories>
<PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;_USRDLL;JABBER_EXPORTS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
<StringPooling>false</StringPooling>
<BasicRuntimeChecks>EnableFastChecks</BasicRuntimeChecks>
diff --git a/protocols/JabberG/jabber_events.cpp b/protocols/JabberG/jabber_events.cpp index 806bb07f54..7e26de73d9 100644 --- a/protocols/JabberG/jabber_events.cpp +++ b/protocols/JabberG/jabber_events.cpp @@ -38,7 +38,7 @@ Last change by : $Author: borkra $ #include "m_file.h"
#include "m_addcontact.h"
#include "jabber_disco.h"
-#include "sdk/m_proto_listeningto.h"
+#include "m_proto_listeningto.h"
/////////////////////////////////////////////////////////////////////////////////////////
// OnContactDeleted - processes a contact deletion
diff --git a/protocols/JabberG/jabber_menu.cpp b/protocols/JabberG/jabber_menu.cpp index 24dda93adb..6d7616db10 100644 --- a/protocols/JabberG/jabber_menu.cpp +++ b/protocols/JabberG/jabber_menu.cpp @@ -36,7 +36,7 @@ Last change by : $Author: borkra $ #include <m_hotkeys.h>
#include <m_icolib.h>
-#include "sdk/m_toolbar.h"
+#include "m_toolbar.h"
#define MENUITEM_LASTSEEN 1
#define MENUITEM_SERVER 2
diff --git a/protocols/JabberG/jabber_misc.cpp b/protocols/JabberG/jabber_misc.cpp index dadbe21673..972542ea71 100644 --- a/protocols/JabberG/jabber_misc.cpp +++ b/protocols/JabberG/jabber_misc.cpp @@ -30,7 +30,7 @@ Last change by : $Author: borkra $ #include "jabber_caps.h"
#include <m_popup.h>
-#include "sdk/m_folders.h"
+#include "m_folders.h"
///////////////////////////////////////////////////////////////////////////////
// JabberAddContactToRoster() - adds a contact to the roster
diff --git a/protocols/JabberG/jabber_opt.cpp b/protocols/JabberG/jabber_opt.cpp index 63f96a1814..884fe0f077 100644 --- a/protocols/JabberG/jabber_opt.cpp +++ b/protocols/JabberG/jabber_opt.cpp @@ -30,8 +30,8 @@ Last change by : $Author: borkra $ #include "jabber_caps.h"
#include "jabber_opttree.h"
-#include "sdk/m_wizard.h"
-#include "sdk/m_modernopt.h"
+#include "m_wizard.h"
+#include "m_modernopt.h"
static BOOL (WINAPI *pfnEnableThemeDialogTexture)(HANDLE, DWORD) = 0;
diff --git a/protocols/JabberG/jabber_proto.cpp b/protocols/JabberG/jabber_proto.cpp index ca849c5df3..21f067e12e 100644 --- a/protocols/JabberG/jabber_proto.cpp +++ b/protocols/JabberG/jabber_proto.cpp @@ -42,8 +42,8 @@ Last change by : $Author: m_mluhov $ #include "jabber_caps.h"
#include "jabber_disco.h"
-#include "sdk/m_proto_listeningto.h"
-#include "sdk/m_modernopt.h"
+#include "m_proto_listeningto.h"
+#include "m_modernopt.h"
#pragma warning(disable:4355)
diff --git a/protocols/JabberG/jabber_svc.cpp b/protocols/JabberG/jabber_svc.cpp index 016b2d463c..86fa4eeacc 100644 --- a/protocols/JabberG/jabber_svc.cpp +++ b/protocols/JabberG/jabber_svc.cpp @@ -38,7 +38,7 @@ Last change by : $Author: george.hazan $ #include "m_file.h"
#include "m_addcontact.h"
#include "jabber_disco.h"
-#include "sdk/m_proto_listeningto.h"
+#include "m_proto_listeningto.h"
/////////////////////////////////////////////////////////////////////////////////////////
// GetMyAwayMsg - obtain the current away message
diff --git a/protocols/JabberG/jabber_xstatus.cpp b/protocols/JabberG/jabber_xstatus.cpp index 70101cccc2..f49a7f7c3d 100644 --- a/protocols/JabberG/jabber_xstatus.cpp +++ b/protocols/JabberG/jabber_xstatus.cpp @@ -34,9 +34,9 @@ Last change by : $Author: Michael.Kunz@s2005.TU-Chemnitz.de $ #include <m_cluiframes.h>
-#include "sdk/m_proto_listeningto.h"
+#include "m_proto_listeningto.h"
#include "sdk/m_skin_eng.h"
-#include "sdk/m_extraicons.h"
+#include "m_extraicons.h"
///////////////////////////////////////////////////////////////////////////////
// Simple dialog with timer and ok/cancel buttons
diff --git a/protocols/JabberG/sdk/m_assocmgr.h b/protocols/JabberG/sdk/m_assocmgr.h deleted file mode 100644 index 4e15168643..0000000000 --- a/protocols/JabberG/sdk/m_assocmgr.h +++ /dev/null @@ -1,301 +0,0 @@ -/*
-
-'File Association Manager'-Plugin for
-Miranda IM: the free IM client for Microsoft* Windows*
-
-Copyright (C) 2005-2007 H. Herkenrath
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program (AssocMgr-License.txt); if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-*/
-
-#ifndef M_ASSOCMGR_H__
-#define M_ASSOCMGR_H__
-
-#if defined (_MSC_VER) && (_MSC_VER >= 1020)
- #pragma once
-#endif
-
-#if !defined(_TCHAR_DEFINED)
- #include <tchar.h>
-#endif
-
-#if defined(_MSC_VER)
-#pragma warning(push) /* save warning settings */
-#pragma warning(disable:4201) /* nonstandard extension used : nameless struct/union */
-#endif
-
-/*
- File Association Manager v0.1.1.0
-*/
-
-/* interface id */
-#if !defined(MIID_ASSOCMGR)
- #define MIID_ASSOCMGR {0xa05b56c0,0xcf7b,0x4389,{0xa1,0xe9,0xf1,0x3d,0xb9,0x36,0xe,0xf1}}
-#endif
-#if !defined(MIID_AUTORUN)
- #define MIID_AUTORUN {0xeb0465e2,0xceee,0x11db,{0x83,0xef,0xc1,0xbf,0x55,0xd8,0x95,0x93}}
-#endif
-
-/* Add a new file type v0.1.0.0+
-Add a new file type to be registered with Windows.
-You probably want to call this event when
-ME_SYSTEM_MODULESLOADED is fired.
- wParam=0
- lParam=(LPARAM)(FILETYPEDESC*)ftd
-Returns 0 on success, nonzero otherwise.
-*/
-#define MS_ASSOCMGR_ADDNEWFILETYPE "AssocMgr/AddNewFileType"
-
-typedef struct {
- int cbSize; // set to sizeof(FILETYPEDESC), in bytes
- union {
- const char *pszDescription; // description for options dialog and in registry.
- const TCHAR *ptszDescription; // please Translate(), use singular form here.
- const WCHAR *pwszDescription;
- };
- HINSTANCE hInstance; // instance of the calling module and where the icon
- // resource is located.
- // always be sure you set this to your own hInstance even if
- // you use the generic default icon
-
- UINT nIconResID; // resource id of an icon to use for the file type.
- // this icon should contain icons of all sizes and color depths
- // needed by Windows.
- // set this to 0 to use the generic 'miranda file' icon
- // provided by assocmgr.
-
- const char *pszService; // service to call when a file is opened
- // this service will be called with lParam set to
- // the file name being opened including path.
- // it can be assumed that the provided file name
- // is always the long path name.
- // return zero on suceess, nonzero on error.
- // Note: set this to NULL to pass the file name as
- // commandline argument to miranda32.exe (db file).
-
- DWORD flags; // see FTDF_* flags below
-
- const char *pszFileExt; // file extension, e.g. ".ext"
- // first character must be a dot, assumed to be all lower case.
- // may only consist of ascii characters.
-
- const char *pszMimeType; // MIME type of the file, e.g. "application/x-icq"
- // may only consist of ascii characters.
- union {
- const char *pszVerbDesc; // description for the open verb e.g. "&Install".
- const TCHAR *ptszVerbDesc; // set this to NULL to use the default description.
- const WCHAR *pwszVerbDesc; // include an ampersand (&) character for a mnemonic key.
- }; // please Translate().
-} FILETYPEDESC;
-
-#define FTDF_UNICODE 0x0001 // pszDescription and pszVerbDesc in struct are Unicode.
- // the specified service is called with Unicode parameters.
-
-#define FTDF_DEFAULTDISABLED 0x0002 // file type is not registered by default, it needs to be
- // enabled explicitly on the options page.
-
-#define FTDF_BROWSERAUTOOPEN 0x0004 // tells the browser to download and open the file directly
- // without prompt (currently IE and Opera6+) - be careful!
- // use only in conjunction with pszMimeType set.
- // this tells Windows that open can be safely invoked for
- // downloaded files.
- // Note that this flag may create a security risk,
- // because downloaded files could contain malicious content.
- // you need to protect against such an exploit.
-
-#define FTDF_ISTEXT 0x0008 // tells Windows that this file can be opened
- // as a text file using e.g Notepad.
- // only has an effect on Windows XP and higher.
-
-#define FTDF_ISSHORTCUT 0x0010 // file type behaves as shortcut, this means a
- // small overlay arrow is applied and the extension is never shown
-
-#if defined(_UNICODE)
- #define FTDF_TCHAR FTDF_UNICODE // strings in struct are WCHAR*, service accepts WCHAR*
-#else
- #define FTDF_TCHAR 0 // strings in struct are char*, service accepts char*
-#endif
-
-#if !defined(ASSOCMGR_NOHELPERFUNCTIONS)
-__inline static int AssocMgr_AddNewFileType(const char *ext,const char *mime,const char *desc,const char *verb,HINSTANCE hinst,UINT iconid,const char *service,DWORD flags)
-{
- FILETYPEDESC ftd;
- ftd.cbSize=sizeof(FILETYPEDESC);
- ftd.pszFileExt=ext;
- ftd.pszMimeType=mime;
- ftd.pszDescription=desc;
- ftd.pszVerbDesc=verb;
- ftd.hInstance=hinst;
- ftd.nIconResID=iconid;
- ftd.pszService=service;
- ftd.flags=flags&~FTDF_UNICODE;
- return CallService(MS_ASSOCMGR_ADDNEWFILETYPE,0,(LPARAM)&ftd);
-}
-__inline static int AssocMgr_AddNewFileTypeW(const char *ext,const char *mime,const WCHAR *desc,const WCHAR *verb,HINSTANCE hinst,UINT iconid,const char *service,DWORD flags)
-{
- FILETYPEDESC ftd;
- ftd.cbSize=sizeof(FILETYPEDESC);
- ftd.pszFileExt=ext;
- ftd.pszMimeType=mime;
- ftd.pwszDescription=desc;
- ftd.pwszVerbDesc=verb;
- ftd.hInstance=hinst;
- ftd.nIconResID=iconid;
- ftd.pszService=service;
- ftd.flags=flags|FTDF_UNICODE;
- return CallService(MS_ASSOCMGR_ADDNEWFILETYPE,0,(LPARAM)&ftd);
-}
-#if defined(_UNICODE)
- #define AssocMgr_AddNewFileTypeT AssocMgr_AddNewFileTypeW
-#else
- #define AssocMgr_AddNewFileTypeT AssocMgr_AddNewFileType
-#endif
-#endif
-
-/* Remove a file type v0.1.0.0+
-Remove a file type registered previously using
-MS_ASSOCMGR_ADDNEWFILETYPE.
-This removes all settings in database and in registry
-associated with the file type.
- wParam=0
- lParam=(WPARAM)(char*)pszFileExt
-Returns 0 on success, nonzero otherwise.
-*/
-#define MS_ASSOCMGR_REMOVEFILETYPE "AssocMgr/RemoveFileType"
-
-/* Add a new url protocol type v0.1.0.0+
-Add a new url type to be registered with Windows.
-You probably want to call this event when
-ME_SYSTEM_MODULESLOADED is fired.
- wParam=0
- lParam=(LPARAM)(URLTYPEDESC*)utd
-Returns 0 on success, nonzero otherwise.
-*/
-#define MS_ASSOCMGR_ADDNEWURLTYPE "AssocMgr/AddNewUrlType"
-
-typedef struct {
- int cbSize; // set to sizeof(URLTYPEDESC), in bytes
- union {
- const char *pszDescription; // description for options dialog and in registry.
- const TCHAR *ptszDescription; // please Translate(), use singular form here.
- const WCHAR *pwszDescription;
- };
- HINSTANCE hInstance; // instance of the calling module and where the icon
- // resource is located.
- // always be sure you set this to your own hInstance even if
- // you use the generic default icon
-
- UINT nIconResID; // resource id of an icon to use for the url type.
- // only a small one (16x16) is needed by Windows,
- // e.g. proto icon as used in Miranda.
- // set this to 0 to use the default miranda icon.
-
- const char *pszService; // service to call when a url is opened (can't be NULL)
- // this service will be called with lParam set to
- // the url being opened including the prefix.
- // return zero on suceess, nonzero on error.
-
- DWORD flags; // see UTDF_* flags below
-
- const char *pszProtoPrefix; // protocol prefix, e.g. "http:"
- // last character must be a colon, assumed to be all lower case.
- // may only consist of ascii characters.
-} URLTYPEDESC;
-
-#define UTDF_UNICODE 0x0001 // pszDescription in struct is Unicode.
- // the specified service is called with Unicode parameters.
-
-#define UTDF_DEFAULTDISABLED 0x0002 // url type is not registered by default, it needs to be
- // enabled explicitly on the options page.
-#if defined(_UNICODE)
- #define UTDF_TCHAR UTDF_UNICODE // strings in struct are WCHAR*, service accepts WCHAR*
-#else
- #define UTDF_TCHAR 0 // strings in struct are char*, service accepts char*
-#endif
-
-#if !defined(ASSOCMGR_NOHELPERFUNCTIONS)
-static int __inline AssocMgr_AddNewUrlType(const char *prefix,const char *desc,HINSTANCE hinst,UINT iconid,const char *service,DWORD flags)
-{
- URLTYPEDESC utd;
- utd.cbSize=sizeof(URLTYPEDESC);
- utd.pszProtoPrefix=prefix;
- utd.pszDescription=desc;
- utd.hInstance=hinst;
- utd.nIconResID=iconid;
- utd.pszService=service;
- utd.flags=flags&~UTDF_UNICODE;
- return CallService(MS_ASSOCMGR_ADDNEWURLTYPE,0,(LPARAM)&utd);
-}
-static int __inline AssocMgr_AddNewUrlTypeW(const char *prefix,const WCHAR *desc,HINSTANCE hinst,UINT iconid,const char *service,DWORD flags)
-{
- URLTYPEDESC utd;
- utd.cbSize=sizeof(URLTYPEDESC);
- utd.pszProtoPrefix=prefix;
- utd.pwszDescription=desc;
- utd.hInstance=hinst;
- utd.nIconResID=iconid;
- utd.pszService=service;
- utd.flags=flags|UTDF_UNICODE;
- return CallService(MS_ASSOCMGR_ADDNEWURLTYPE,0,(LPARAM)&utd);
-}
-#if defined(_UNICODE)
- #define AssocMgr_AddNewUrlTypeT AssocMgr_AddNewUrlTypeW
-#else
- #define AssocMgr_AddNewUrlTypeT AssocMgr_AddNewUrlType
-#endif
-#endif
-
-/* Remove an url protocol type v0.1.0.0+
-Remove an url registered previously using
-MS_ASSOCMGR_ADDNEWURLTYPE.
-This removes all settings in database and in registry
-associated with the url type.
- wParam=0
- lParam=(WPARAM)(char*)pszProtoPrefix
-Returns 0 on success, nonzero otherwise.
-*/
-#define MS_ASSOCMGR_REMOVEURLTYPE "AssocMgr/RemoveUrlType"
-
-/* utility which should be moved as service into m_netlib.h (MS_NETLIB_URLENCODE already exists) */
-#if defined(MoveMemory) && defined(lstrlen)
-static __inline char *Netlib_UrlDecode(char *str)
-{
- char *psz=str;
- for(;*psz;++psz)
- switch(*psz) {
- case '+':
- *psz=' ';
- break;
- case '%':
- if(!psz[1] || !psz[2]) break;
- MoveMemory(psz,&psz[1],2);
- psz[2]=0;
- *psz=(char)strtol(psz,NULL,16);
- MoveMemory(&psz[1],&psz[3],lstrlenA(&psz[3])+1);
- break;
- }
- return str;
-}
-#endif
-
-#if defined(_MSC_VER)
-#pragma warning(pop) /* restore warning settings */
-#endif
-
-#ifndef ASSOCMGR_NOSETTINGS
-#define SETTING_ONLYWHILERUNNING_DEFAULT 0
-#endif
-
-#endif // M_ASSOCMGR_H
\ No newline at end of file diff --git a/protocols/JabberG/sdk/m_extraicons.h b/protocols/JabberG/sdk/m_extraicons.h deleted file mode 100644 index 589d040cef..0000000000 --- a/protocols/JabberG/sdk/m_extraicons.h +++ /dev/null @@ -1,158 +0,0 @@ -/*
- Copyright (C) 2009 Ricardo Pescuma Domenecci
-
- This is free software; you can redistribute it and/or
- modify it under the terms of the GNU Library General Public
- License as published by the Free Software Foundation; either
- version 2 of the License, or (at your option) any later version.
-
- This is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Library General Public License for more details.
-
- You should have received a copy of the GNU Library General Public
- License along with this file; see the file license.txt. If
- not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
- Boston, MA 02111-1307, USA.
- */
-
-#ifndef __M_EXTRAICONS_H__
-#define __M_EXTRAICONS_H__
-
-#define MIID_EXTRAICONSSERVICE { 0x62d80749, 0xf169, 0x4592, { 0xb4, 0x4d, 0x3d, 0xd6, 0xde, 0x9d, 0x50, 0xc5 } }
-
-
-#define EXTRAICON_TYPE_CALLBACK 0 // Similar to old clist callbacks, it fires 2 notifications
-#define EXTRAICON_TYPE_ICOLIB 1 // This extra icon will use only icons registered with icolib. No callbacks
- // needed. Just call MS_EXTRAICON_SET_ICON passing the name of the extraicon to set one.
-
-
-typedef struct {
- int cbSize;
- int type; // One of EXTRAICON_TYPE_*
- const char *name; // Internal name. More than one plugin can register extra icons with the same name
- // if both have the same type. In this case, both will be handled as one.
- // This is usefull for ex for extra status, where icq and jabber can share the same slot.
- // If the types are different the second one will be denied.
- const char *description; // [Translated by plugin] Description to be used in GUI
- const char *descIcon; // [Optional] Name of an icon registered with icolib to be used in GUI.
-
- // If type == EXTRAICON_TYPE_CALLBACK this two must be set
-
- // Callback to add icons to clist, calling MS_CLIST_EXTRA_ADD_ICON
- // wParam=lParam=0
- MIRANDAHOOK RebuildIcons;
-
- // Callback to set the icon to clist, calling MS_CLIST_EXTRA_SET_ICON or MS_EXTRAICON_SET_ICON
- // wParam = HANDLE hContact
- // lParam = int slot
- MIRANDAHOOK ApplyIcon;
-
- // Other optional callbacks
-
- // [Optional] Callback called when extra icon was clicked
- // wParam = HANDLE hContact
- // lParam = int slot
- // param = onClickParam
- MIRANDAHOOKPARAM OnClick;
-
- LPARAM onClickParam;
-
-} EXTRAICON_INFO;
-
-
-// Register an extra icon
-// wParam = (EXTRAICON_INFO *) Extra icon info
-// lParam = 0
-// Return: (HANDLE) id of extra icon on success, 0 on error
-#define MS_EXTRAICON_REGISTER "ExtraIcon/Register"
-
-
-typedef struct {
- int cbSize;
- HANDLE hExtraIcon; // Value returned by MS_EXTRAICON_REGISTER
- HANDLE hContact; // Contact to set the extra icon
- union { // The icon to be set. This depends on the type of the extra icon:
- HANDLE hImage; // Value returned by MS_CLIST_EXTRA_ADD_ICON (if EXTRAICON_TYPE_CALLBACK)
- const char *icoName; // Name of the icon registered with icolib (if EXTRAICON_TYPE_ICOLIB)
- };
-} EXTRAICON;
-
-// Set an extra icon icon
-// wParam = (EXTRAICON *) Extra icon
-// Return: 0 on success
-#define MS_EXTRAICON_SET_ICON "ExtraIcon/SetIcon"
-
-
-
-#ifndef _NO_WRAPPERS
-#ifdef __cplusplus
-
-static HANDLE ExtraIcon_Register(const char *name, const char *description, const char *descIcon,
- MIRANDAHOOK RebuildIcons,
- MIRANDAHOOK ApplyIcon,
- MIRANDAHOOKPARAM OnClick = NULL, LPARAM onClickParam = NULL)
-{
- if (!ServiceExists(MS_EXTRAICON_REGISTER))
- return NULL;
-
- EXTRAICON_INFO ei = {0};
- ei.cbSize = sizeof(ei);
- ei.type = EXTRAICON_TYPE_CALLBACK;
- ei.name = name;
- ei.description = description;
- ei.descIcon = descIcon;
- ei.RebuildIcons = RebuildIcons;
- ei.ApplyIcon = ApplyIcon;
- ei.OnClick = OnClick;
- ei.onClickParam = onClickParam;
-
- return (HANDLE) CallService(MS_EXTRAICON_REGISTER, (WPARAM) &ei, 0);
-}
-
-static HANDLE ExtraIcon_Register(const char *name, const char *description, const char *descIcon = NULL,
- MIRANDAHOOKPARAM OnClick = NULL, LPARAM onClickParam = NULL)
-{
- if (!ServiceExists(MS_EXTRAICON_REGISTER))
- return NULL;
-
- EXTRAICON_INFO ei = {0};
- ei.cbSize = sizeof(ei);
- ei.type = EXTRAICON_TYPE_ICOLIB;
- ei.name = name;
- ei.description = description;
- ei.descIcon = descIcon;
- ei.OnClick = OnClick;
- ei.onClickParam = onClickParam;
-
- return (HANDLE) CallService(MS_EXTRAICON_REGISTER, (WPARAM) &ei, 0);
-}
-
-static int ExtraIcon_SetIcon(HANDLE hExtraIcon, HANDLE hContact, HANDLE hImage)
-{
- EXTRAICON ei = {0};
- ei.cbSize = sizeof(ei);
- ei.hExtraIcon = hExtraIcon;
- ei.hContact = hContact;
- ei.hImage = hImage;
-
- return CallService(MS_EXTRAICON_SET_ICON, (WPARAM) &ei, 0);
-}
-
-static int ExtraIcon_SetIcon(HANDLE hExtraIcon, HANDLE hContact, const char *icoName)
-{
- EXTRAICON ei = {0};
- ei.cbSize = sizeof(ei);
- ei.hExtraIcon = hExtraIcon;
- ei.hContact = hContact;
- ei.icoName = icoName;
-
- return CallService(MS_EXTRAICON_SET_ICON, (WPARAM) &ei, 0);
-}
-
-#endif
-#endif
-
-
-#endif // __M_EXTRAICONS_H__
diff --git a/protocols/JabberG/sdk/m_folders.h b/protocols/JabberG/sdk/m_folders.h deleted file mode 100644 index d1f58f95d4..0000000000 --- a/protocols/JabberG/sdk/m_folders.h +++ /dev/null @@ -1,282 +0,0 @@ -/*
-Custom profile folders plugin for Miranda IM
-
-Copyright © 2005 Cristian Libotean
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-*/
-
-#ifndef M_CUSTOM_FOLDERS_H
-#define M_CUSTOM_FOLDERS_H
-
-#define FOLDERS_API 501 //dunno why it's here but it is :)
-
-#define PROFILE_PATH "%profile_path%"
-#define CURRENT_PROFILE "%current_profile%"
-#define MIRANDA_PATH "%miranda_path%"
-#define PLUGINS_PATH "%miranda_path%" "\\plugins"
-
-#define TO_WIDE(x) L ## x
-
-#define PROFILE_PATHW L"%profile_path%"
-#define CURRENT_PROFILEW L"%current_profile%"
-#define MIRANDA_PATHW L"%miranda_path%"
-
-#define FOLDER_AVATARS PROFILE_PATH "\\" CURRENT_PROFILE "\\avatars"
-#define FOLDER_VCARDS PROFILE_PATH "\\" CURRENT_PROFILE "\\vcards"
-#define FOLDER_LOGS PROFILE_PATH "\\" CURRENT_PROFILE "\\logs"
-#define FOLDER_RECEIVED_FILES PROFILE_PATH "\\" CURRENT_PROFILE "\\received files"
-#define FOLDER_DOCS MIRANDA_PATH "\\" "docs"
-
-#define FOLDER_CONFIG PLUGINS_PATH "\\" "config"
-
-#define FOLDER_SCRIPTS MIRANDA_PATH "\\" "scripts"
-
-#define FOLDER_UPDATES MIRANDA_PATH "\\" "updates"
-
-#define FOLDER_CUSTOMIZE MIRANDA_PATH "\\" "customize"
-#define FOLDER_CUSTOMIZE_SOUNDS FOLDER_CUSTOMIZE "\\sounds"
-#define FOLDER_CUSTOMIZE_ICONS FOLDER_CUSTOMIZE "\\icons"
-#define FOLDER_CUSTOMIZE_SMILEYS FOLDER_CUSTOMIZE "\\smileys"
-#define FOLDER_CUSTOMIZE_SKINS FOLDER_CUSTOMIZE "\\skins"
-#define FOLDER_CUSTOMIZE_THEMES FOLDER_CUSTOMIZE "\\themes"
-
-
-#define FOLDERS_NAME_MAX_SIZE 64 //maximum name and section size
-
-#define FF_UNICODE 0x00000001
-
-#if defined (UNICODE)
- #define FF_TCHAR FF_UNICODE
-#else
- #define FF_TCHAR 0
-#endif
-
-typedef struct{
- int cbSize; //size of struct
- char szSection[FOLDERS_NAME_MAX_SIZE]; //section name, if it doesn't exist it will be created otherwise it will just add this entry to it
- char szName[FOLDERS_NAME_MAX_SIZE]; //entry name - will be shown in options
- union{
- const char *szFormat; //default string format. Fallback string in case there's no entry in the database for this folder. This should be the initial value for the path, users will be able to change it later.
- const wchar_t *szFormatW; //String is dup()'d so you can free it later. If you set the unicode string don't forget to set the flag accordingly.
- const TCHAR *szFormatT;
- };
- DWORD flags; //FF_* flags
-} FOLDERSDATA;
-
-/*Folders/Register/Path service
- wParam - not used, must be 0
- lParam - (LPARAM) (const FOLDERDATA *) - Data structure filled with
- the necessary information.
- Returns a handle to the registered path or 0 on error.
- You need to use this to call the other services.
-*/
-#define MS_FOLDERS_REGISTER_PATH "Folders/Register/Path"
-
-/*Folders/Get/PathSize service
- wParam - (WPARAM) (int) - handle to registered path
- lParam - (LPARAM) (int *) - pointer to the variable that receives the size of the path
- string (not including the null character). Depending on the flags set when creating the path
- it will either call strlen() or wcslen() to get the length of the string.
- Returns the size of the buffer.
-*/
-#define MS_FOLDERS_GET_SIZE "Folders/Get/PathSize"
-
-typedef struct{
- int cbSize;
- int nMaxPathSize; //maximum size of buffer. This represents the number of characters that can be copied to it (so for unicode strings you don't send the number of bytes but the length of the string).
- union{
- char *szPath; //pointer to the buffer that receives the path without the last "\\"
- wchar_t *szPathW; //unicode version of the buffer.
- TCHAR *szPathT;
- };
-} FOLDERSGETDATA;
-
-/*Folders/Get/Path service
- wParam - (WPARAM) (int) - handle to registered path
- lParam - (LPARAM) (FOLDERSGETDATA *) pointer to a FOLDERSGETDATA that has all the relevant fields filled.
- Should return 0 on success, or nonzero otherwise.
-*/
-#define MS_FOLDERS_GET_PATH "Folders/Get/Path"
-
-typedef struct{
- int cbSize;
- union{
- char **szPath; //address of a string variable (char *) or (wchar_t*) where the path should be stored (the last \ won't be copied).
- wchar_t **szPathW; //unicode version of string.
- TCHAR **szPathT;
- };
-} FOLDERSGETALLOCDATA;
-
-/*Folders/GetRelativePath/Alloc service
- wParam - (WPARAM) (int) - Handle to registered path
- lParam - (LPARAM) (FOLDERSALLOCDATA *) data
- This service is the same as MS_FOLDERS_GET_PATH with the difference that this service
- allocates the needed space for the buffer. It uses miranda's memory functions for that and you need
- to use those to free the resulting buffer.
- Should return 0 on success, or nonzero otherwise. Currently it only returns 0.
-*/
-#define MS_FOLDERS_GET_PATH_ALLOC "Folders/Get/Path/Alloc"
-
-
-/*Folders/On/Path/Changed
- wParam - (WPARAM) 0
- lParam - (LPARAM) 0
- Triggered when the folders change, you should reget the paths you registered.
-*/
-#define ME_FOLDERS_PATH_CHANGED "Folders/On/Path/Changed"
-
-#ifndef FOLDERS_NO_HELPER_FUNCTIONS
-
-#ifndef M_UTILS_H__
-#error The helper functions require that m_utils.h be included in the project. Please include that file if you want to use the helper functions. If you don''t want to use the functions just define FOLDERS_NO_HELPER_FUNCTIONS.
-#endif
-//#include "../../../include/newpluginapi.h"
-
-__inline static HANDLE FoldersRegisterCustomPath(const char *section, const char *name, const char *defaultPath)
-{
- FOLDERSDATA fd = {0};
- if (!ServiceExists(MS_FOLDERS_REGISTER_PATH)) return 0;
- fd.cbSize = sizeof(FOLDERSDATA);
- strncpy(fd.szSection, section, FOLDERS_NAME_MAX_SIZE);
- fd.szSection[FOLDERS_NAME_MAX_SIZE - 1] = '\0';
- strncpy(fd.szName, name, FOLDERS_NAME_MAX_SIZE);
- fd.szName[FOLDERS_NAME_MAX_SIZE - 1] = '\0';
- fd.szFormat = defaultPath;
- return (HANDLE) CallService(MS_FOLDERS_REGISTER_PATH, 0, (LPARAM) &fd);
-}
-
-__inline static HANDLE FoldersRegisterCustomPathW(const char *section, const char *name, const wchar_t *defaultPathW)
-{
- FOLDERSDATA fd = {0};
- if (!ServiceExists(MS_FOLDERS_REGISTER_PATH)) return 0;
- fd.cbSize = sizeof(FOLDERSDATA);
- strncpy(fd.szSection, section, FOLDERS_NAME_MAX_SIZE);
- fd.szSection[FOLDERS_NAME_MAX_SIZE - 1] = '\0'; //make sure it's NULL terminated
- strncpy(fd.szName, name, FOLDERS_NAME_MAX_SIZE);
- fd.szName[FOLDERS_NAME_MAX_SIZE - 1] = '\0'; //make sure it's NULL terminated
- fd.szFormatW = defaultPathW;
- fd.flags = FF_UNICODE;
- return (HANDLE) CallService(MS_FOLDERS_REGISTER_PATH, 0, (LPARAM) &fd);
-}
-
-__inline static int FoldersGetCustomPath(HANDLE hFolderEntry, char *path, const int size, char *notFound)
-{
- FOLDERSGETDATA fgd = {0};
- int res;
- fgd.cbSize = sizeof(FOLDERSGETDATA);
- fgd.nMaxPathSize = size;
- fgd.szPath = path;
- res = CallService(MS_FOLDERS_GET_PATH, (WPARAM) hFolderEntry, (LPARAM) &fgd);
- if (res)
- {
- char buffer[MAX_PATH];
- CallService(MS_UTILS_PATHTOABSOLUTE, (WPARAM) notFound, (LPARAM) buffer);
- mir_snprintf(path, size, "%s", buffer);
- }
-
- return res;
-}
-
-__inline static int FoldersGetCustomPathW(HANDLE hFolderEntry, wchar_t *pathW, const int count, wchar_t *notFoundW)
-{
- FOLDERSGETDATA fgd = {0};
- int res;
- fgd.cbSize = sizeof(FOLDERSGETDATA);
- fgd.nMaxPathSize = count;
- fgd.szPathW = pathW;
- res = CallService(MS_FOLDERS_GET_PATH, (WPARAM) hFolderEntry, (LPARAM) &fgd);
- if (res)
- {
- wcsncpy(pathW, notFoundW, count);
- pathW[count - 1] = '\0';
- }
-
- return res;
-}
-
-__inline static int FoldersGetCustomPathEx(HANDLE hFolderEntry, char *path, const int size, char *notFound, char *fileName)
-{
- FOLDERSGETDATA fgd = {0};
- int res;
- fgd.cbSize = sizeof(FOLDERSGETDATA);
- fgd.nMaxPathSize = size;
- fgd.szPath = path;
- res = CallService(MS_FOLDERS_GET_PATH, (WPARAM) hFolderEntry, (LPARAM) &fgd);
- if (res)
- {
- char buffer[MAX_PATH];
- CallService(MS_UTILS_PATHTOABSOLUTE, (WPARAM) notFound, (LPARAM) buffer);
- mir_snprintf(path, size, "%s", buffer);
- }
- if (strlen(path) > 0)
- {
- strcat(path, "\\");
- }
- else{
- path[0] = '\0';
- }
-
- if (fileName)
- {
- strcat(path, fileName);
- }
-
- return res;
-}
-
-__inline static int FoldersGetCustomPathExW(HANDLE hFolderEntry, wchar_t *pathW, const int count, wchar_t *notFoundW, wchar_t *fileNameW)
-{
- FOLDERSGETDATA fgd = {0};
- int res;
- fgd.cbSize = sizeof(FOLDERSGETDATA);
- fgd.nMaxPathSize = count;
- fgd.szPathW = pathW;
- res = CallService(MS_FOLDERS_GET_PATH, (WPARAM) hFolderEntry, (LPARAM) &fgd);
- if (res)
- {
- wcsncpy(pathW, notFoundW, count);
- pathW[count - 1] = '\0';
- }
-
- if (wcslen(pathW) > 0)
- {
- wcscat(pathW, L"\\");
- }
- else{
- pathW[0] = L'\0';
- }
-
- if (fileNameW)
- {
- wcscat(pathW, fileNameW);
- }
-
- return res;
-}
-
-# ifdef _UNICODE
-# define FoldersGetCustomPathT FoldersGetCustomPathW
-# define FoldersGetCustomPathExT FoldersGetCustomPathExW
-# define FoldersRegisterCustomPathT FoldersRegisterCustomPathW
-#else
-# define FoldersGetCustomPathT FoldersGetCustomPath
-# define FoldersGetCustomPathExT FoldersGetCustomPath
-# define FoldersRegisterCustomPathT FoldersRegisterCustomPath
-#endif
-
-#endif
-
-#endif //M_CUSTOM_FOLDERS_H
diff --git a/protocols/JabberG/sdk/m_modernopt.h b/protocols/JabberG/sdk/m_modernopt.h deleted file mode 100644 index 6013ba68d5..0000000000 --- a/protocols/JabberG/sdk/m_modernopt.h +++ /dev/null @@ -1,112 +0,0 @@ -/*
-
-Miranda IM: the free IM client for Microsoft* Windows*
-
-Copyright 2007 Artem Shpynov
-Copyright 2000-2008 Miranda ICQ/IM project,
-
-all portions of this codebase are copyrighted to the people
-listed in contributors.txt.
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-*/
-
-#ifndef M_MODERNOPT_H__
-#define M_MODERNOPT_H__ 1
-
-/*
- 260x210 - subsection
- 368x210 - section
-*/
-
-#define MS_MODERNOPT_SHOW "ModernOpt/Show"
-
-#define ME_MODERNOPT_INITIALIZE "ModernOpt/Initialize"
-
-#define MODEROPT_FLG_UNICODE 0x01
-#ifdef UNICODE
- #define MODEROPT_FLG_TCHAR MODEROPT_FLG_UNICODE
-#else
- #define MODEROPT_FLG_TCHAR 0
-#endif
-
-typedef enum {
- MODERNOPT_TYPE_SECTIONPAGE,
- MODERNOPT_TYPE_SUBSECTIONPAGE,
- MODERNOPT_TYPE_IGNOREOBJECT,
- MODERNOPT_TYPE_COUNT
-};
-
-typedef enum {
- MODERNOPT_PAGE_HOME,
- MODERNOPT_PAGE_ACCOUNTS,
- MODERNOPT_PAGE_SKINS,
- MODERNOPT_PAGE_CLIST,
- MODERNOPT_PAGE_MSGS,
- MODERNOPT_PAGE_IGNORE,
- MODERNOPT_PAGE_STATUS,
- MODERNOPT_PAGE_ADVANCED,
- MODERNOPT_PAGE_MODULES,
- MODERNOPT_PAGE_COUNT
-};
-
-#define MODERNOPT_CTRL_LAST 0
-
-typedef struct {
- int cbSize;
- DWORD dwFlags;
- int iType;
- int iSection;
-
- HICON hIcon;
- union {
- TCHAR *lptzSubsection;
- char *lpzSubsection;
- WCHAR *lpwzSubsection;
- };
-
- HINSTANCE hInstance;
- char *lpzTemplate;
- DLGPROC pfnDlgProc;
- int *iBoldControls;
-
- char *lpszClassicGroup;
- char *lpszClassicPage;
- char *lpszClassicTab;
- char *lpszHelpUrl;
-
- union {
- struct {
- HICON hIcon;
- union {
- TCHAR *lptzName;
- char *lpzName;
- WCHAR *lpwzName;
- };
-
- char *lpzModule;
- char *lpzSetting;
- DWORD dwBit;
- } objIgnore;
- };
-} MODERNOPTOBJECT;
-
-#define MS_MODERNOPT_ADDOBJECT "ModernOpt/AddObject"
-
-#define MS_MODERNOPT_SELECTPAGE "ModernOpt/SelectPage"
-
-#define ME_MODERNINGORE_RELOAD "ModernOpt/Ignore/Reload"
-
-#endif // M_MODERNOPT_H__
diff --git a/protocols/JabberG/sdk/m_proto_listeningto.h b/protocols/JabberG/sdk/m_proto_listeningto.h deleted file mode 100644 index 53e1184961..0000000000 --- a/protocols/JabberG/sdk/m_proto_listeningto.h +++ /dev/null @@ -1,144 +0,0 @@ -/*
-
-Miranda IM: the free IM client for Microsoft* Windows*
-
-Copyright 2000-2006 Miranda ICQ/IM project,
-all portions of this codebase are copyrighted to the people
-listed in contributors.txt.
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-*/
-
-//this module was created in v0.6.0.0
-
-#ifndef M_PROTO_LISTENINGTO_H__
-#define M_PROTO_LISTENINGTO_H__ 1
-
-
-// Protocol Services /////////////////////////////////////////////////////////////////
-
-// This is the services a protocol have to support to support listening info
-
-typedef struct {
- int cbSize;
-
- union {
- char* pszType; // Media type: Music, Video, etc...
- TCHAR* ptszType;
- };
- union {
- char* pszArtist; // Artist name
- TCHAR* ptszArtist;
- };
- union {
- char* pszAlbum; // Algum name
- TCHAR* ptszAlbum;
- };
- union {
- char* pszTitle; // Song name
- TCHAR* ptszTitle;
- };
- union {
- char* pszTrack; // Track number
- TCHAR* ptszTrack;
- };
- union {
- char* pszYear; // Song year
- TCHAR* ptszYear;
- };
- union {
- char* pszGenre; // Song genre
- TCHAR* ptszGenre;
- };
- union {
- char* pszLength; // Song length
- TCHAR* ptszLength;
- };
- union {
- char* pszPlayer; // Player name
- TCHAR* ptszPlayer;
- };
-
- DWORD dwFlags;
-
-} LISTENINGTOINFO;
-
-#define LTI_UNICODE 1
-
-#ifdef UNICODE
- #define LTI_TCHAR LTI_UNICODE
-#else
- #define LTI_TCHAR 0
-#endif
-
-// Set the listening info for the protocol.
-// Pass NULL to remove it.
-// wParam = NULL
-// lParam = LISTENINGTOINFO *
-#define PS_SET_LISTENINGTO "/SetListeningTo"
-
-// Get the listening info for the protocol
-// wParam = NULL
-// lParam = LISTENINGTOINFO *
-// The strings inside the struct need to be free using miranda free.
-#define PS_GET_LISTENINGTO "/GetListeningTo"
-
-// Also the protocol have to save a string with the text the other user is (probabily)
-// seeing under the main db key: <protocol>/ListeningTo
-
-// For a contact, the protocol should store the listening info as an string inside
-// the contact db key: <protocol>/ListeningTo
-
-
-// ListeningTo configuration plugin //////////////////////////////////////////////////
-
-// One plugin can be used to set some options relative to the listening to information.
-// But protocols should not assume this plugin exists. If it does not exist, protocols
-// have to decide what default to use.
-// This plugin have to support the following services:
-
-// Get the text format the user wants him / his contacts to see. Some strings represents
-// the text information:
-// %artist%, %album%, %title%, %track%, %year%, %genre%, %length%, %player%, %type%
-// This service is optional
-// wParam = TCHAR* - default text for this protocol
-// lParam = 0
-// Returns a TCHAR* containg the user setting. This need to be free using miranda free.
-#define MS_LISTENINGTO_GETTEXTFORMAT "ListeningTo/GetTextFormat"
-
-// Get the text the user wants him / his contacts to see, parsed with the info sent to
-// this service. Uses the same variables as the above service to the default text.
-// wParam = TCHAR* - default text for this protocol
-// lParam = LISTENINGTOINFO *
-// Returns a TCHAR* containg the parsed text. This need to be free using miranda free.
-#define MS_LISTENINGTO_GETPARSEDTEXT "ListeningTo/GetParsedText"
-
-// Get if the contact options about how to show the music info should be overriten or
-// not.
-// wParam = NULL
-// lParam = hContact
-// Returns a BOOL
-#define MS_LISTENINGTO_OVERRIDECONTACTOPTION "ListeningTo/OverrideContactOption"
-
-// Get the text to show if some info of the contact is empty.
-// wParam = NULL
-// lParam = NULL
-// Returns a TCHAR *. Don't free
-#define MS_LISTENINGTO_GETUNKNOWNTEXT "ListeningTo/GetUnknownText"
-
-
-#endif // M_PROTO_LISTENINGTO_H__
-
-
diff --git a/protocols/JabberG/sdk/m_toolbar.h b/protocols/JabberG/sdk/m_toolbar.h deleted file mode 100644 index 1eff4c19bf..0000000000 --- a/protocols/JabberG/sdk/m_toolbar.h +++ /dev/null @@ -1,75 +0,0 @@ -#ifndef M_TOOLBAR_H
-#define M_TOOLBAR_H
-
-#define TOOLBARBUTTON_ICONIDPREFIX "MTB_"
-#define TOOLBARBUTTON_ICONIDPRIMARYSUFFIX "_Primary"
-#define TOOLBARBUTTON_ICONIDSECONDARYSUFFIX "_Secondary"
-#define TOOLBARBUTTON_ICONNAMEPRESSEDSUFFIX "Pressed"
-
-//button flags
-#define TBBF_DISABLED (1<<0)
-#define TBBF_VISIBLE (1<<1)
-#define TBBF_PUSHED (1<<2)
-#define TBBF_SHOWTOOLTIP (1<<3)
-#define TBBF_ISSEPARATOR (1<<5)
-#define TBBF_ISLBUTTON (1<<6)
-#define TBBF_FLEXSIZESEPARATOR (TBBF_ISSEPARATOR|TBBF_PUSHED)
-typedef struct _tagTBButton
-{
- int cbSize; // size of structure
- char * pszButtonID; // char id of button used to store button info in DB and know about icon
- char * pszButtonName; // name of button (not translated)
- char * pszServiceName; // service name to be executed
- LPARAM lParam; // param of service to be called
- char * pszTooltipUp, *pszTooltipDn;
- DWORD defPos; // default order pos of button (less values are nearer to edge).. please use values greater that 100. the default buttons has pos: 10,20..90
- DWORD tbbFlags; // combine of TBBF_ flags above
- void (*ParamDestructor)(void *); //will be called on parameters deletion
- HANDLE hPrimaryIconHandle;
- HANDLE hSecondaryIconHandle;
-}TBButton;
-
-//////////////////////////////////////////////////////////////////////////
-// Events
-// Only after this event module subscribers should register their buttons
-// wparam=lparam=0
-// don't forget to return 0 to continue processing
-#define ME_TB_MODULELOADED "ToolBar/ModuleLoaded"
-
-//////////////////////////////////////////////////////////////////////////
-// Services
-//
-//////////////////////////////////////////////////////////////////////////
-// Adding a button
-// WPARAM = 0
-// LPARAM = (TBButton *) &description
-// LRESULT = (HANDLE) hButton
-// in order to correctly process default icons via iconlib it should be
-// registered icolib icon with id named:
-// 'TBButton_'+pszButtonID+ 'Up' or +'Down' for Push (2-state) buttons
-#define MS_TB_ADDBUTTON "ToolBar/AddButton"
-
-//////////////////////////////////////////////////////////////////////////
-// Remove button
-// WPARAM = (HANLDE) hButton;
-// LPARAM = 0;
-#define MS_TB_REMOVEBUTTON "ToolBar/RemoveButton"
-
-//////////////////////////////////////////////////////////////////////////
-// SetState
-// WPARAM = (char *) szButtonID;
-// LPARAM = one of below TBST_ states
-// LRESULT= old state
-#define TBST_PUSHED 1
-#define TBST_RELEASED 0
-#define MS_TB_SETBUTTONSTATE "ToolBar/SetButtonState"
-
-//////////////////////////////////////////////////////////////////////////
-// GetState
-// WPARAM = (HANLDE) hButton;
-// LPARAM = 0
-// LRESULT= current state
-#define MS_TB_GETBUTTONSTATE "ToolBar/GetButtonState"
-
-
-#endif
diff --git a/protocols/JabberG/sdk/m_wizard.h b/protocols/JabberG/sdk/m_wizard.h deleted file mode 100644 index 4b37c3a4ab..0000000000 --- a/protocols/JabberG/sdk/m_wizard.h +++ /dev/null @@ -1,90 +0,0 @@ -/*
-
-Miranda IM: the free IM client for Microsoft* Windows*
-
-Copyright 2000-2008 Miranda ICQ/IM project,
-all portions of this codebase are copyrighted to the people
-listed in contributors.txt.
-
-This program is free software; you can redistribute it and/or
-modify it under the terms of the GNU General Public License
-as published by the Free Software Foundation; either version 2
-of the License, or (at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program; if not, write to the Free Software
-Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
-*/
-
-#ifndef M_WIZARD_H__
-#define M_WIZARD_H__ 1
-
-#include "m_options.h"
-
-#define MWF_UNICODE 0x01
-#define MWF_ICOLIB 0x02
-#ifdef _UNICODE
- #define MWF_TCHAR MWF_UNICODE
-#else
- #define MWF_TCHAR 0
-#endif
-
-typedef struct
-{
- DWORD dwFlags;
- HANDLE hContact;
- char *pszWizardName;
- union
- {
- HICON hIcon;
- HANDLE hIcolibItem;
- };
- union
- {
- char *pszTitle;
- WCHAR *pwszTitle;
- TCHAR *ptszTitle;
- };
-} WIZARDINFO;
-
-//show the User Details dialog box
-//wParam=0
-//lParam=(WPARAM)(WIZARDINFO *)wizardInfo
-#define MS_WIZARD_SHOW "Wizard/Show"
-
-// Predefined wizards
-#define MW_MIRANDA_STARTUP "Miranda/Startup"
-#define MW_MIRANDA_CONFIG "Miranda/Config"
-
-/* Wizard/Initialise
-The user opened a details dialog. Modules should do whatever initialisation
-they need and call wizard/addpage one or more times if they want pages
-displayed in the options dialog
-wParam=addInfo
-lParam=(WIZARDINFO *)wizardInfo
-addInfo should be passed straight to the wParam of wizard/addpage
-*/
-#define ME_WIZARD_INITIALISE "Wizard/Initialise"
-
-/* Wizard/AddPage
-Must only be called during an userinfo/initialise hook
-Adds a page to the details dialog
-wParam=addInfo
-lParam=(LPARAM)(OPTIONSDIALOGPAGE*)odp
-addInfo must have come straight from the wParam of userinfo/initialise
-Pages in the details dialog operate just like pages in property sheets. See the
-Microsoft documentation for info on how they operate.
-When the pages receive WM_INITDIALOG, lParam=(LPARAM)(WIZARDINFO *)wizardInfo
-Strings in the structure can be released as soon as the service returns, but
-icons must be kept around. This is not a problem if you're loading them from a
-resource
-*/
-#define MS_WIZARD_ADDPAGE "Wizard/AddPage"
-
-#endif // M_WIZARD_H__
-
|