From 83310365c69bd40365ee0ae0e16c99c28e24cd0b Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 19 Jun 2015 14:24:12 +0000 Subject: - all static protocol services replaced with functions; - m_protomod.h removed as useless git-svn-id: http://svn.miranda-ng.org/main/trunk@14260 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewAwaySysMod/src/AwaySys.cpp | 4 ++-- plugins/NewAwaySysMod/src/Client.cpp | 4 ++-- plugins/NewAwaySysMod/src/Properties.h | 2 +- plugins/NewAwaySysMod/src/SetAwayMsg.cpp | 8 ++++---- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'plugins/NewAwaySysMod') diff --git a/plugins/NewAwaySysMod/src/AwaySys.cpp b/plugins/NewAwaySysMod/src/AwaySys.cpp index 5821da7ec3..90976f1d3c 100644 --- a/plugins/NewAwaySysMod/src/AwaySys.cpp +++ b/plugins/NewAwaySysMod/src/AwaySys.cpp @@ -215,7 +215,7 @@ int StatusChanged(WPARAM wParam, LPARAM lParam) else { PROTOACCOUNT **accs; int numAccs = 0; - ProtoEnumAccounts(&numAccs, &accs); + Proto_EnumAccounts(&numAccs, &accs); for (int i = 0; i < numAccs; i++) { Flag1 |= CallProtoService(accs[i]->szModuleName, PS_GETCAPS, PFLAGNUM_1, 0); Flag3 |= CallProtoService(accs[i]->szModuleName, PS_GETCAPS, PFLAGNUM_3, 0); @@ -583,7 +583,7 @@ int MirandaLoaded(WPARAM, LPARAM) int numAccs = 0; PROTOACCOUNT **accs; - ProtoEnumAccounts(&numAccs, &accs); + Proto_EnumAccounts(&numAccs, &accs); for (int i = 0, CurProtoIndex = 0; i < numAccs && CurProtoIndex < MAXICQACCOUNTS; i++) { HANDLE hHook = HookEvent(CString(accs[i]->szModuleName) + ME_ICQ_STATUSMSGREQ, StatusMsgReqHooks[CurProtoIndex]); if (hHook) { diff --git a/plugins/NewAwaySysMod/src/Client.cpp b/plugins/NewAwaySysMod/src/Client.cpp index 22ff666fe5..827bd0be7c 100644 --- a/plugins/NewAwaySysMod/src/Client.cpp +++ b/plugins/NewAwaySysMod/src/Client.cpp @@ -32,7 +32,7 @@ void __cdecl UpdateMsgsThreadProc(void *) { int numAccs; PROTOACCOUNT **accs; - ProtoEnumAccounts(&numAccs, &accs); + Proto_EnumAccounts(&numAccs, &accs); while (WaitForSingleObject(g_hTerminateUpdateMsgsThread, 0) == WAIT_TIMEOUT && !Miranda_Terminated()) { DWORD MinUpdateTimeDifference = g_MoreOptPage.GetDBValueCopy(IDC_MOREOPTDLG_UPDATEMSGSPERIOD) * 1000; // in milliseconds @@ -92,7 +92,7 @@ void ChangeProtoMessages(char* szProto, int iMode, TCString &Msg) else { // change message of all protocols int numAccs; PROTOACCOUNT **accs; - ProtoEnumAccounts(&numAccs, &accs); + Proto_EnumAccounts(&numAccs, &accs); for (int i = 0; i < numAccs; i++) { PROTOACCOUNT *p = accs[i]; if (!db_get_b(NULL, p->szModuleName, "LockMainStatus", 0)) { diff --git a/plugins/NewAwaySysMod/src/Properties.h b/plugins/NewAwaySysMod/src/Properties.h index 55b1da1d22..c0dbd1dab7 100644 --- a/plugins/NewAwaySysMod/src/Properties.h +++ b/plugins/NewAwaySysMod/src/Properties.h @@ -261,7 +261,7 @@ public: if (!szProto) { int numAccs; PROTOACCOUNT **accs; - ProtoEnumAccounts(&numAccs, &accs); + Proto_EnumAccounts(&numAccs, &accs); for (int i = 0; i < numAccs; i++) (*this)[accs[i]->szModuleName]; // add a protocol if it isn't in the list yet } diff --git a/plugins/NewAwaySysMod/src/SetAwayMsg.cpp b/plugins/NewAwaySysMod/src/SetAwayMsg.cpp index be3d3093aa..a485cd6097 100644 --- a/plugins/NewAwaySysMod/src/SetAwayMsg.cpp +++ b/plugins/NewAwaySysMod/src/SetAwayMsg.cpp @@ -809,7 +809,7 @@ INT_PTR CALLBACK SetAwayMsgDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARA WindowTitle += _T(")"); } else { - PROTOACCOUNT *acc = ProtoGetAccount(szProto); + PROTOACCOUNT *acc = Proto_GetAccount(szProto); WindowTitle += acc->tszAccountName; WindowTitle += _T(")"); } @@ -872,12 +872,12 @@ INT_PTR CALLBACK SetAwayMsgDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARA HTREEITEM hItem = hSelItem = CList->AddInfo(TranslateT("** All contacts **"), CLC_ROOT, CLC_ROOT, NULL, Skin_LoadProtoIcon(NULL, g_ProtoStates[(char*)NULL].Status)); int numAccs; PROTOACCOUNT **accs; - ProtoEnumAccounts(&numAccs, &accs); + Proto_EnumAccounts(&numAccs, &accs); for (int i = 0; i < numAccs; i++) { PROTOACCOUNT *p = accs[i]; // don't forget to change Recent Message Save loop in the UM_SAM_APPLYANDCLOSE if you're changing something here if (CallProtoService(p->szModuleName, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_MODEMSGSEND) { - PROTOACCOUNT * acc = ProtoGetAccount(p->szModuleName); + PROTOACCOUNT * acc = Proto_GetAccount(p->szModuleName); hItem = CList->AddInfo(TCString(_T("* ")) + acc->tszAccountName + _T(" *"), CLC_ROOT, hItem, (LPARAM)p->szModuleName, Skin_LoadProtoIcon(p->szModuleName, g_ProtoStates[p->szModuleName].Status)); if (dat->szProtocol && !mir_strcmp(p->szModuleName, dat->szProtocol)) hSelItem = hItem; @@ -928,7 +928,7 @@ INT_PTR CALLBACK SetAwayMsgDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARA // save Recent Messages int numAccs; PROTOACCOUNT **accs; - ProtoEnumAccounts(&numAccs, &accs); + Proto_EnumAccounts(&numAccs, &accs); for (int i = 0; i < numAccs; i++) { PROTOACCOUNT *p = accs[i]; if (CallProtoService(p->szModuleName, PS_GETCAPS, PFLAGNUM_1, 0) & PF1_MODEMSGSEND) { -- cgit v1.2.3