From e768095692677d7095a4dd323295fc8ef595a283 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 28 Dec 2019 21:13:56 +0300 Subject: FacebookRM deprecated and replaced with Facebook MQTT --- protocols/FacebookRM/src/main.cpp | 86 --------------------------------------- 1 file changed, 86 deletions(-) delete mode 100644 protocols/FacebookRM/src/main.cpp (limited to 'protocols/FacebookRM/src/main.cpp') diff --git a/protocols/FacebookRM/src/main.cpp b/protocols/FacebookRM/src/main.cpp deleted file mode 100644 index bf80befe1c..0000000000 --- a/protocols/FacebookRM/src/main.cpp +++ /dev/null @@ -1,86 +0,0 @@ -/* - -Facebook plugin for Miranda Instant Messenger -_____________________________________________ - -Copyright © 2009-11 Michal Zelinka, 2011-17 Robert Pösel, 2017-19 Miranda NG team - -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, see . - -*/ - -#include "stdafx.h" - -CMPlugin g_plugin; - -DWORD g_mirandaVersion; -bool g_bMessageState; -HWND g_hwndHeartbeat; - -///////////////////////////////////////////////////////////////////////////////////////// - -PLUGININFOEX pluginInfoEx = { - sizeof(PLUGININFOEX), - __PLUGIN_NAME, - PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), - __DESCRIPTION, - __AUTHOR, - __COPYRIGHT, - __AUTHORWEB, - UNICODE_AWARE, - // {8432B009-FF32-4727-AAE6-A9035038FD58} - { 0x8432b009, 0xff32, 0x4727, { 0xaa, 0xe6, 0xa9, 0x3, 0x50, 0x38, 0xfd, 0x58 } } -}; - -CMPlugin::CMPlugin() : - ACCPROTOPLUGIN(FACEBOOK_NAME, pluginInfoEx) -{ - SetUniqueId(FACEBOOK_KEY_ID); -} - -///////////////////////////////////////////////////////////////////////////////////////// -// Interface information - -extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOCOL, MIID_LAST }; - -///////////////////////////////////////////////////////////////////////////////////////// -// Load - -static int OnModuleLoaded(WPARAM, LPARAM) -{ - g_bMessageState = ServiceExists(MS_MESSAGESTATE_UPDATE) != 0; - return 0; -} - -int CMPlugin::Load() -{ - g_hwndHeartbeat = CreateWindowEx(0, L"STATIC", nullptr, 0, 0, 0, 0, 0, nullptr, nullptr, nullptr, nullptr); - - HookEvent(ME_SYSTEM_MODULELOAD, OnModuleLoaded); - HookEvent(ME_SYSTEM_MODULEUNLOAD, OnModuleLoaded); - HookEvent(ME_SYSTEM_MODULESLOADED, OnModuleLoaded); - - InitIcons(); - InitContactMenus(); - - // Initialize random generator (used only as fallback in utils) - srand(::time(0)); - return 0; -} - -int CMPlugin::Unload() -{ - DestroyWindow(g_hwndHeartbeat); - return 0; -} -- cgit v1.2.3