diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-26 13:48:24 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-26 13:48:24 +0300 |
commit | 42706272085db04de11ba586e3e2c8a507e7af0d (patch) | |
tree | 5c6c22ffa6239dc672488bf91c65095944d4dab6 /plugins | |
parent | 0b0d9f28696294beed32d5cdc3f5e93cd996f08e (diff) |
fixes #1212 (virtual protocols contacts)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/NewsAggregator/Src/NewsAggregator.cpp | 2 | ||||
-rw-r--r-- | plugins/Non-IM Contact/src/main.cpp | 2 | ||||
-rw-r--r-- | plugins/Quotes/src/Forex.cpp | 15 | ||||
-rw-r--r-- | plugins/Weather/src/weather.cpp | 2 | ||||
-rw-r--r-- | plugins/YAMN/src/main.cpp | 2 |
5 files changed, 23 insertions, 0 deletions
diff --git a/plugins/NewsAggregator/Src/NewsAggregator.cpp b/plugins/NewsAggregator/Src/NewsAggregator.cpp index e30d9b7f02..ab1ac2f830 100644 --- a/plugins/NewsAggregator/Src/NewsAggregator.cpp +++ b/plugins/NewsAggregator/Src/NewsAggregator.cpp @@ -48,6 +48,8 @@ bool WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) return TRUE;
}
+extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST };
+
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfoEx;
diff --git a/plugins/Non-IM Contact/src/main.cpp b/plugins/Non-IM Contact/src/main.cpp index 209967923b..43123d7a3f 100644 --- a/plugins/Non-IM Contact/src/main.cpp +++ b/plugins/Non-IM Contact/src/main.cpp @@ -83,6 +83,8 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) return &pluginInfoEx;
}
+extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST };
+
//=====================================================
// Name : WINAPI DllMain
// Parameters: HINSTANCE hinst,DWORD fdwReason,LPVOID lpvReserved
diff --git a/plugins/Quotes/src/Forex.cpp b/plugins/Quotes/src/Forex.cpp index c8eb6d0a04..28e645cdea 100644 --- a/plugins/Quotes/src/Forex.cpp +++ b/plugins/Quotes/src/Forex.cpp @@ -236,6 +236,18 @@ int QuotesEventFunc_OnContactDeleted(WPARAM wParam, LPARAM) return 0;
}
+INT_PTR QuoteProtoFunc_GetCaps(WPARAM wParam, LPARAM)
+{
+ switch (wParam) {
+ case PFLAG_UNIQUEIDTEXT:
+ return (INT_PTR)Translate("Quote Symbol");
+ case PFLAG_UNIQUEIDSETTING:
+ return (INT_PTR)DB_STR_QUOTE_SYMBOL;
+ }
+
+ return 0;
+}
+
INT_PTR QuoteProtoFunc_GetStatus(WPARAM, LPARAM)
{
return g_bAutoUpdate ? ID_STATUS_ONLINE : ID_STATUS_OFFLINE;
@@ -286,6 +298,8 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) return TRUE;
}
+EXTERN_C __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST };
+
EXTERN_C __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &Global_pluginInfo;
@@ -307,6 +321,7 @@ EXTERN_C int __declspec(dllexport) Load(void) pd.type = PROTOTYPE_VIRTUAL;
Proto_RegisterModule(&pd);
+ CreateProtoServiceFunction(QUOTES_PROTOCOL_NAME, PS_GETCAPS, QuoteProtoFunc_GetCaps);
CreateProtoServiceFunction(QUOTES_PROTOCOL_NAME, PS_GETSTATUS, QuoteProtoFunc_GetStatus);
HookEvent(ME_SYSTEM_MODULESLOADED, QuotesEventFunc_OnModulesLoaded);
diff --git a/plugins/Weather/src/weather.cpp b/plugins/Weather/src/weather.cpp index fad7fa65aa..8ea8f6605f 100644 --- a/plugins/Weather/src/weather.cpp +++ b/plugins/Weather/src/weather.cpp @@ -73,6 +73,8 @@ static const PLUGININFOEX pluginInfoEx = {0x6b612a34, 0xdcf2, 0x4e32, {0x85, 0xcf, 0xb6, 0xfd, 0x0, 0x6b, 0x74, 0x5e}}
};
+extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST };
+
extern "C" __declspec(dllexport) const PLUGININFOEX* MirandaPluginInfoEx(DWORD)
{
return &pluginInfoEx;
diff --git a/plugins/YAMN/src/main.cpp b/plugins/YAMN/src/main.cpp index ef98f4f27e..e34ed9b6ea 100644 --- a/plugins/YAMN/src/main.cpp +++ b/plugins/YAMN/src/main.cpp @@ -90,6 +90,8 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD, LPVOID) ///////////////////////////////////////////////////////////////////////////////////////// +extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST }; + extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD) { return &pluginInfo; |