From 68d3fd47bb9b75e65859d14199ffee01f16ac9a7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 10 Feb 2014 20:47:51 +0000 Subject: HCONTACT is not needed anymore git-svn-id: http://svn.miranda-ng.org/main/trunk@8086 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/BasicHistory/src/EventList.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'plugins/BasicHistory/src/EventList.cpp') diff --git a/plugins/BasicHistory/src/EventList.cpp b/plugins/BasicHistory/src/EventList.cpp index e354353c89..d0f63d679e 100644 --- a/plugins/BasicHistory/src/EventList.cpp +++ b/plugins/BasicHistory/src/EventList.cpp @@ -40,7 +40,7 @@ EventList::EventList() goldBlobSize = 0; } -EventList::EventList(HCONTACT _hContact, int filter) +EventList::EventList(MCONTACT _hContact, int filter) :hWnd(NULL), isWnd(false), hContact(_hContact), @@ -188,7 +188,7 @@ std::wstring EventList::GetFilterName() return filterName; } -void EventList::GetTempList(std::list& tempList, bool noFilter, bool noExt, HCONTACT _hContact) +void EventList::GetTempList(std::list& tempList, bool noFilter, bool noExt, MCONTACT _hContact) { bool isWndLocal = isWnd; EventTempIndex ti; @@ -237,7 +237,7 @@ void EventList::RefreshEventList() std::vector messages; EnterCriticalSection(&criticalSection); - std::map::iterator it = contactFileMap.find(hContact); + std::map::iterator it = contactFileMap.find(hContact); if (it != contactFileMap.end()) { ExportManager imp(hWnd, hContact, 1); imp.SetAutoImport(it->second.file); @@ -299,7 +299,7 @@ void EventList::RefreshEventList() } } -bool EventList::SearchInContact(HCONTACT hContact, TCHAR *strFind, ComparatorInterface* compFun) +bool EventList::SearchInContact(MCONTACT hContact, TCHAR *strFind, ComparatorInterface* compFun) { InitFilters(); @@ -307,7 +307,7 @@ bool EventList::SearchInContact(HCONTACT hContact, TCHAR *strFind, ComparatorInt std::vector messages; EnterCriticalSection(&criticalSection); - std::map::iterator it = contactFileMap.find(hContact); + std::map::iterator it = contactFileMap.find(hContact); if (it != contactFileMap.end()) { ExportManager imp(hWnd, hContact, 1); imp.SetAutoImport(it->second.file); @@ -431,7 +431,7 @@ std::wstring EventList::GetMyName() return myName; } -inline std::wstring GetProtocolName(HCONTACT hContact) +inline std::wstring GetProtocolName(MCONTACT hContact) { char* ac = (char *)CallService(MS_PROTO_GETCONTACTBASEACCOUNT, (WPARAM)hContact, 0); std::wstring proto1; @@ -471,7 +471,7 @@ std::wstring EventList::GetMyId() return myId; } -inline std::wstring GetContactId(HCONTACT hContact) +inline std::wstring GetContactId(MCONTACT hContact) { std::wstring id; CONTACTINFO ci; @@ -640,10 +640,10 @@ void EventList::RebuildGroup(int selected) } CRITICAL_SECTION EventList::criticalSection; -std::map EventList::contactFileMap; +std::map EventList::contactFileMap; std::wstring EventList::contactFileDir; -void EventList::AddImporter(HCONTACT hContact, IImport::ImportType type, const std::wstring& file) +void EventList::AddImporter(MCONTACT hContact, IImport::ImportType type, const std::wstring& file) { EnterCriticalSection(&criticalSection); TCHAR buf[32]; @@ -673,11 +673,11 @@ void EventList::Deinit() DeleteCriticalSection(&EventList::criticalSection); } -int EventList::GetContactMessageNumber(HCONTACT hContact) +int EventList::GetContactMessageNumber(MCONTACT hContact) { int count = db_event_count(hContact); EnterCriticalSection(&criticalSection); - std::map::iterator it = contactFileMap.find(hContact); + std::map::iterator it = contactFileMap.find(hContact); if (it != contactFileMap.end()) ++count; @@ -685,11 +685,11 @@ int EventList::GetContactMessageNumber(HCONTACT hContact) return count; } -bool EventList::IsImportedHistory(HCONTACT hContact) +bool EventList::IsImportedHistory(MCONTACT hContact) { bool count = false; EnterCriticalSection(&criticalSection); - std::map::iterator it = contactFileMap.find(hContact); + std::map::iterator it = contactFileMap.find(hContact); if (it != contactFileMap.end()) count = true; @@ -697,10 +697,10 @@ bool EventList::IsImportedHistory(HCONTACT hContact) return count; } -void EventList::DeleteImporter(HCONTACT hContact) +void EventList::DeleteImporter(MCONTACT hContact) { EnterCriticalSection(&criticalSection); - std::map::iterator it = contactFileMap.find(hContact); + std::map::iterator it = contactFileMap.find(hContact); if (it != contactFileMap.end()) { DeleteFile(it->second.file.c_str()); contactFileMap.erase(it); -- cgit v1.2.3