diff options
Diffstat (limited to 'plugins/Db_autobackups/src')
-rw-r--r-- | plugins/Db_autobackups/src/headers.h | 3 | ||||
-rw-r--r-- | plugins/Db_autobackups/src/main.cpp | 23 |
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);
|