summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2013-02-08 20:43:35 +0000
committerKirill Volinsky <mataes2007@gmail.com>2013-02-08 20:43:35 +0000
commitbd1739ee0ce7af9d5849b8902de4be82432eea54 (patch)
treefc84c3d85f668c83988d41f0fc40fef0924ddf2f /plugins
parent7a3c2fe12668ba4346e2b31b34f0b0c4b9ac590d (diff)
removed not needed interfaces
git-svn-id: http://svn.miranda-ng.org/main/trunk@3486 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/Console/src/init.cpp9
-rw-r--r--plugins/ContactsPlus/src/main.cpp31
-rw-r--r--plugins/HistoryPlusPlus/historypp.dpr5
-rw-r--r--plugins/IEView/src/ieview_main.cpp5
-rw-r--r--plugins/NewEventNotify/src/main.cpp16
5 files changed, 21 insertions, 45 deletions
diff --git a/plugins/Console/src/init.cpp b/plugins/Console/src/init.cpp
index 179f1990d3..5dc110e778 100644
--- a/plugins/Console/src/init.cpp
+++ b/plugins/Console/src/init.cpp
@@ -37,11 +37,11 @@ PLUGININFOEX pluginInfoEx={
__PLUGIN_RIGHTS,
__PLUGIN_URL,
UNICODE_AWARE,
- { 0x23d4f302, 0xd513, 0x45b7, { 0x90, 0x27, 0x44, 0x5f, 0x29, 0x55, 0x73, 0x11 }} // {23D4F302-D513-45b7-9027-445F29557311}
-
+ // {23D4F302-D513-45b7-9027-445F29557311}
+ {0x23d4f302, 0xd513, 0x45b7, {0x90, 0x27, 0x44, 0x5f, 0x29, 0x55, 0x73, 0x11}}
};
-BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
+BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
hInst = hinstDLL;
return TRUE;
@@ -52,9 +52,6 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
return &pluginInfoEx;
}
-// we implement service mode interface
-extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_LOGWINDOW, MIID_LAST};
-
extern "C" __declspec(dllexport) int Load(void)
{
mir_getLP(&pluginInfoEx);
diff --git a/plugins/ContactsPlus/src/main.cpp b/plugins/ContactsPlus/src/main.cpp
index 0db72163fd..c90ca712f0 100644
--- a/plugins/ContactsPlus/src/main.cpp
+++ b/plugins/ContactsPlus/src/main.cpp
@@ -48,19 +48,19 @@ HANDLE hContactMenuItem = NULL;
int g_UnicodeCore;
PLUGININFOEX pluginInfo = {
- sizeof(PLUGININFOEX),
- "Send/Receive Contacts+",
- PLUGIN_MAKE_VERSION(1,5,2,0),
- "Allows you to send and receive contacts.",
- "Joe Kucera, Todor Totev",
- "jokusoftware@miranda-im.org",
- "(C) 2004-2008 Joe Kucera, Original Code (C) 2002 Dominus Procellarum",
- "http://miranda-ng.org/",
- UNICODE_AWARE,
- {0x0324785E, 0x74CE, 0x4600, {0xB7, 0x81, 0x85, 0x17, 0x73, 0xB3, 0xEF, 0xC5 } } // {0324785E-74CE-4600-B781-851773B3EFC5}
+ sizeof(PLUGININFOEX),
+ "Send/Receive Contacts+",
+ PLUGIN_MAKE_VERSION(1,5,2,0),
+ "Allows you to send and receive contacts.",
+ "Joe Kucera, Todor Totev",
+ "jokusoftware@miranda-im.org",
+ "(C) 2004-2008 Joe Kucera, Original Code (C) 2002 Dominus Procellarum",
+ "http://miranda-ng.org/",
+ UNICODE_AWARE,
+ // {0324785E-74CE-4600-B781-851773B3EFC5}
+ {0x0324785E, 0x74CE, 0x4600, {0xB7, 0x81, 0x85, 0x17, 0x73, 0xB3, 0xEF, 0xC5}}
};
-
static int HookDBEventAdded(WPARAM wParam, LPARAM lParam)
{
HANDLE hContact = (HANDLE)wParam;
@@ -101,7 +101,6 @@ static int HookDBEventAdded(WPARAM wParam, LPARAM lParam)
return 0; //continue processing by other hooks
}
-
static void ProcessUnreadEvents(void)
{
DBEVENTINFO dbei = {0};
@@ -127,7 +126,6 @@ static void ProcessUnreadEvents(void)
}
}
-
static bool CheckContactsServiceSupport(const char* szProto)
{
// there is no way to determine if the service exists (only proto_interface call is supported by 0.8+)
@@ -137,7 +135,6 @@ static bool CheckContactsServiceSupport(const char* szProto)
return false;
}
-
static int HookPreBuildContactMenu(WPARAM wParam, LPARAM lParam)
{
HANDLE hContact = (HANDLE)wParam;
@@ -162,7 +159,6 @@ static int HookPreBuildContactMenu(WPARAM wParam, LPARAM lParam)
return 0;
}
-
static int HookModulesLoaded(WPARAM wParam, LPARAM lParam)
{
char* modules[2] = {0};
@@ -190,7 +186,6 @@ static int HookModulesLoaded(WPARAM wParam, LPARAM lParam)
return 0;
}
-
static int HookContactSettingChanged(WPARAM wParam, LPARAM lParam)
{
DBCONTACTWRITESETTING *cws = (DBCONTACTWRITESETTING*)lParam;
@@ -204,7 +199,6 @@ static int HookContactSettingChanged(WPARAM wParam, LPARAM lParam)
return 0;
}
-
static int HookContactDeleted(WPARAM wParam, LPARAM lParam)
{ // if our contact gets deleted close his window
HWND h = WindowList_Find(ghSendWindowList,(HANDLE)wParam);
@@ -221,7 +215,6 @@ static int HookContactDeleted(WPARAM wParam, LPARAM lParam)
return 0;
}
-
static INT_PTR ServiceSendCommand(WPARAM wParam, LPARAM lParam)
{
HWND hWnd;
@@ -252,8 +245,6 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
return &pluginInfo;
}
-extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_SRCONTACTS, MIID_LAST};
-
extern "C" __declspec(dllexport) int Load(void)
{
mir_getLP(&pluginInfo);
diff --git a/plugins/HistoryPlusPlus/historypp.dpr b/plugins/HistoryPlusPlus/historypp.dpr
index acde07e54d..876722eca7 100644
--- a/plugins/HistoryPlusPlus/historypp.dpr
+++ b/plugins/HistoryPlusPlus/historypp.dpr
@@ -149,14 +149,13 @@ begin
end;
var
- PluginInterfaces: array[0..2] of TGUID;
+ PluginInterfaces: array[0..1] of TGUID;
// tell Miranda about supported interfaces
function MirandaPluginInterfaces:PMUUID; cdecl;
begin
PluginInterfaces[0]:=MIID_UIHISTORY;
- PluginInterfaces[1]:=MIID_LOGWINDOW;
- PluginInterfaces[2]:=MIID_LAST;
+ PluginInterfaces[1]:=MIID_LAST;
Result := @PluginInterfaces;
end;
diff --git a/plugins/IEView/src/ieview_main.cpp b/plugins/IEView/src/ieview_main.cpp
index 84277c6750..247a80c67a 100644
--- a/plugins/IEView/src/ieview_main.cpp
+++ b/plugins/IEView/src/ieview_main.cpp
@@ -43,7 +43,8 @@ PLUGININFOEX pluginInfoEx = {
__COPYRIGHT,
__AUTHORWEB,
UNICODE_AWARE,
- {0x0495171b, 0x7137, 0x4ded, {0x97, 0xf8, 0xce, 0x6f, 0xed, 0x67, 0xd6, 0x91}}
+ // 0495171B-7137-4DED-97F8-CE6FED67D691
+ {0x0495171b, 0x7137, 0x4ded, {0x97, 0xf8, 0xce, 0x6f, 0xed, 0x67, 0xd6, 0x91}}
};
extern "C" BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvReserved)
@@ -57,8 +58,6 @@ extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD miranda
return &pluginInfoEx;
}
-extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_LOGWINDOW, MIID_LAST};
-
extern "C" int __declspec(dllexport) Load(void)
{
char text[_MAX_PATH];
diff --git a/plugins/NewEventNotify/src/main.cpp b/plugins/NewEventNotify/src/main.cpp
index 4719ef820d..6c2c286396 100644
--- a/plugins/NewEventNotify/src/main.cpp
+++ b/plugins/NewEventNotify/src/main.cpp
@@ -46,7 +46,8 @@ PLUGININFOEX pluginInfo = {
"GNU GPL",
"http://miranda-ng.org/",
UNICODE_AWARE,
- {0x3503D584, 0x6234, 0x4BEF, {0xA5, 0x53, 0x6C, 0x1B, 0x9C, 0xD4, 0x71, 0xF2 } } // {3503D584-6234-4BEF-A553-6C1B9CD471F2}
+ // {3503D584-6234-4BEF-A553-6C1B9CD471F2}
+ {0x3503D584, 0x6234, 0x4BEF, {0xA5, 0x53, 0x6C, 0x1B, 0x9C, 0xD4, 0x71, 0xF2}}
};
//---------------------------
@@ -76,15 +77,6 @@ int HookedNewEvent(WPARAM wParam, LPARAM lParam)
dbe.cbSize = sizeof(dbe);
CallService(MS_DB_EVENT_GET, (WPARAM)lParam, (LPARAM)&dbe);
- // Nightwish (no popups for RSS contacts at all...)
- if (pluginOptions.bNoRSS)
- {
- if (dbe.szModule != NULL) {
- if (!strncmp(dbe.szModule, "RSS", 3))
- return 0;
- }
- }
-
//do not show popups for sub-contacts
if (hContact && ServiceExists(MS_MC_GETMETACONTACT) && CallService(MS_MC_GETMETACONTACT, (WPARAM)hContact, 0))
return 0;
@@ -172,8 +164,6 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
return &pluginInfo;
}
-extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = {MIID_EVENTNOTIFY, MIID_LAST};
-
extern "C" __declspec(dllexport) int Load(void)
{
hHookedInit = HookEvent(ME_SYSTEM_MODULESLOADED, HookedInit);
@@ -200,7 +190,7 @@ extern "C" __declspec(dllexport) int Unload(void)
BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
- hInst=hinstDLL;
+ hInst = hinstDLL;
return TRUE;
}