User:Wishmaster: Difference between revisions

From Miranda NG
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
== Changes for Plugin developers==
==List of Shortcuts==
In Miranda NG, we made some changes, that made the plugins from Miranda IM incompatible. These are just the major changes:
<pre>
[&Add]
[&User menu]
[User &details]
[&History]


# '''PLUGININFOEX:''' The old PLUGININFO struct from Miranda IM was removed from all sources. Basically, it was also deprecated in Miranda IM, but Miranda IM continued to load plugins with only PLUGININFO support for legacy plugin support. Our PLUGININFOEX is almost the same as Miranda IM, but we removed the member <tt>int replacesDefaultModule;</tt> (in Miranda IM headers it says "WILL BE DEPRECATED in 0.8" in the documentation of the member). The compiler should warn you anyways if you do not remove it in your code.
[&Emoticons]
 
[&Bold]
<pre>typedef struct PLUGININFOEX_tag
[&Italic]
{
[&Underline]
int cbSize;
[&Color]
char *shortName;
[&Background color]
DWORD version;
[&History]
char *description;
[&Filter]
char *author;
[&Room Settings]
char *authorEmail;
[&Show/hide nicklist]
char *copyright;
</pre>
char *homepage;
BYTE flags;   // right now the only flag, UNICODE_AWARE, is recognized here
MUUID uuid;    // plugin's unique identifier
}
PLUGININFOEX;</pre>
# '''PLUGINLINK''' is gone. The CallService macros using the PLUGINLINK are now replaced with the functions in <tt>m_core.h</tt> (like CallService, HookEvent etc.). The compiler should not complain about it. As a result, the <tt>Load</tt> function does not take any parameter.
# The <tt>DBGetContactSetting</tt>/<tt>DBWriteContactSetting</tt> functions are renamed with the <tt>db_get</tt>/<tt>db_set</tt> functions from the <tt>m_core.h</tt>.

Revision as of 20:48, 9 November 2013

List of Shortcuts

[&Add]
[&User menu]
[User &details]
[&History]

[&Emoticons]
[&Bold]
[&Italic]
[&Underline]
[&Color]
[&Background color]
[&History]
[&Filter]
[&Room Settings]
[&Show/hide nicklist]