summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-04-07 20:25:38 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-04-07 20:25:38 +0000
commit920aa970afa086a3a143b39005747210b94f237b (patch)
tree10e5bdc77f6a533772e4509e4a56ba3f7dc46722 /plugins/Db_autobackups/src
parent097c52ad9a2928422084bf76cebee58958341574 (diff)
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
Diffstat (limited to 'plugins/Db_autobackups/src')
-rw-r--r--plugins/Db_autobackups/src/headers.h3
-rw-r--r--plugins/Db_autobackups/src/main.cpp23
2 files changed, 0 insertions, 26 deletions
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 <win2k.h>
#include <m_folders.h>
-#include <m_trigger.h>
#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);