From 920aa970afa086a3a143b39005747210b94f237b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 7 Apr 2013 20:25:38 +0000 Subject: Trigger plugin's support removed, cause this plugin is dead git-svn-id: http://svn.miranda-ng.org/main/trunk@4374 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Db_autobackups/src/headers.h | 3 --- plugins/Db_autobackups/src/main.cpp | 23 ----------------------- 2 files changed, 26 deletions(-) (limited to 'plugins/Db_autobackups') diff --git a/plugins/Db_autobackups/src/headers.h b/plugins/Db_autobackups/src/headers.h index 30cacb4ee5..0836239105 100644 --- a/plugins/Db_autobackups/src/headers.h +++ b/plugins/Db_autobackups/src/headers.h @@ -17,17 +17,14 @@ #include #include -#include #include "options.h" #include "resource.h" #include "version.h" #define MS_AB_BACKUP "AB/Backup" -#define MS_AB_BACKUPTRGR "AB/Backuptrg" #define MS_AB_SAVEAS "AB/SaveAs" - #define SUB_DIR L"\\AutoBackups" #define DIR L"%miranda_userdata%" diff --git a/plugins/Db_autobackups/src/main.cpp b/plugins/Db_autobackups/src/main.cpp index b3122b99cb..207a5036c0 100644 --- a/plugins/Db_autobackups/src/main.cpp +++ b/plugins/Db_autobackups/src/main.cpp @@ -26,14 +26,6 @@ static IconItem iconList[] = { {LPGEN("Save Profile As..."), "saveas", IDI_ICON1 } }; -INT_PTR BackupServiceTrgr(WPARAM wParam, LPARAM lParam) -{ - if(wParam & ACT_PERFORM) - mir_forkthread(BackupThread, NULL); - - return 0; -} - static int FoldersGetBackupPath(WPARAM wParam, LPARAM lParam) { FoldersGetCustomPathT(hFolder, options.folder, MAX_PATH, DIR SUB_DIR); @@ -67,16 +59,6 @@ static void MenuInit(void) Menu_AddMainMenuItem(&mi); } -static void TriggerActionInit(void) -{ - ACTIONREGISTER ar = {0}; - ar.cbSize = sizeof(ACTIONREGISTER); - ar.pszName = "Backup Database"; - ar.pszService = MS_AB_BACKUPTRGR; - - CallService(MS_TRIGGER_REGISTERACTION, 0, (LPARAM)&ar); -} - static int ModulesLoad(WPARAM wParam, LPARAM lParam) { profilePath = Utils_ReplaceVarsT(_T("%miranda_userdata%")); @@ -87,10 +69,6 @@ static int ModulesLoad(WPARAM wParam, LPARAM lParam) LoadOptions(); MenuInit(); - // register trigger action for triggerplugin - if ( ServiceExists(MS_TRIGGER_REGISTERACTION)) - TriggerActionInit(); - HookEvent(ME_OPT_INITIALISE, OptionsInit); if(options.backup_types & BT_START) mir_forkthread(BackupThread, NULL); @@ -115,7 +93,6 @@ void SysInit() OleInitialize(0); CreateServiceFunction(MS_AB_BACKUP, ABService); - CreateServiceFunction(MS_AB_BACKUPTRGR, BackupServiceTrgr); CreateServiceFunction(MS_AB_SAVEAS, DBSaveAs); HookEvent(ME_SYSTEM_PRESHUTDOWN, PreShutdown); -- cgit v1.2.3