diff options
| author | George Hazan <george.hazan@gmail.com> | 2014-02-10 20:47:51 +0000 | 
|---|---|---|
| committer | George Hazan <george.hazan@gmail.com> | 2014-02-10 20:47:51 +0000 | 
| commit | 68d3fd47bb9b75e65859d14199ffee01f16ac9a7 (patch) | |
| tree | fcc340ad7067561e57733b287f193a7dbed93dd4 /plugins/MirandaG15/src | |
| parent | 7193759b046338c6f47ff2edb34743a1465791cd (diff) | |
HCONTACT is not needed anymore
git-svn-id: http://svn.miranda-ng.org/main/trunk@8086 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirandaG15/src')
| -rw-r--r-- | plugins/MirandaG15/src/CAppletManager.cpp | 44 | ||||
| -rw-r--r-- | plugins/MirandaG15/src/CAppletManager.h | 28 | ||||
| -rw-r--r-- | plugins/MirandaG15/src/CChatScreen.cpp | 4 | ||||
| -rw-r--r-- | plugins/MirandaG15/src/CChatScreen.h | 6 | ||||
| -rw-r--r-- | plugins/MirandaG15/src/CContactList.cpp | 44 | ||||
| -rw-r--r-- | plugins/MirandaG15/src/CContactList.h | 30 | ||||
| -rw-r--r-- | plugins/MirandaG15/src/CContactlistScreen.cpp | 4 | ||||
| -rw-r--r-- | plugins/MirandaG15/src/CContactlistScreen.h | 4 | ||||
| -rw-r--r-- | plugins/MirandaG15/src/CEvent.h | 2 | ||||
| -rw-r--r-- | plugins/MirandaG15/src/CEventLog.h | 2 | ||||
| -rw-r--r-- | plugins/MirandaG15/src/CIRCHistory.h | 2 | ||||
| -rw-r--r-- | plugins/MirandaG15/src/CNotificationScreen.h | 2 | ||||
| -rw-r--r-- | plugins/MirandaG15/src/Miranda.h | 2 | 
13 files changed, 87 insertions, 87 deletions
| diff --git a/plugins/MirandaG15/src/CAppletManager.cpp b/plugins/MirandaG15/src/CAppletManager.cpp index 17399ad465..1da2a47d0c 100644 --- a/plugins/MirandaG15/src/CAppletManager.cpp +++ b/plugins/MirandaG15/src/CAppletManager.cpp @@ -445,7 +445,7 @@ void CAppletManager::ActivateCListScreen()  //************************************************************************
  // activates the chat screen
  //************************************************************************
 -bool CAppletManager::ActivateChatScreen(HCONTACT hContact)
 +bool CAppletManager::ActivateChatScreen(MCONTACT hContact)
  {
  	if(!m_ChatScreen.SetContact(hContact))
  		return false;
 @@ -461,7 +461,7 @@ bool CAppletManager::ActivateChatScreen(HCONTACT hContact)  //************************************************************************
  // returns the contacts displayname
  //************************************************************************
 -tstring CAppletManager::GetContactDisplayname(HCONTACT hContact,bool bShortened)
 +tstring CAppletManager::GetContactDisplayname(MCONTACT hContact,bool bShortened)
  {
  	if(!bShortened || !CConfig::GetBoolSetting(NOTIFY_NICKCUTOFF))
  		return (TCHAR*)CallService(MS_CLIST_GETCONTACTDISPLAYNAME, (WPARAM)hContact, GCDNF_TCHAR);
 @@ -476,7 +476,7 @@ tstring CAppletManager::GetContactDisplayname(HCONTACT hContact,bool bShortened)  //************************************************************************
  // returns the contacts group
  //************************************************************************
 -tstring CAppletManager::GetContactGroup(HCONTACT hContact)
 +tstring CAppletManager::GetContactGroup(MCONTACT hContact)
  {
  	DBVARIANT dbv;
  	int res = db_get_ts(hContact, "CList", "Group",	&dbv);
 @@ -649,7 +649,7 @@ void CAppletManager::HandleEvent(CEvent *pEvent)  	}
  }
 -bool CAppletManager::IsUtfSendAvailable(HCONTACT hContact) {
 +bool CAppletManager::IsUtfSendAvailable(MCONTACT hContact) {
  	char* szProto = (char *) CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM) hContact, 0);
  	if ( szProto == NULL )
  		return FALSE;
 @@ -660,7 +660,7 @@ bool CAppletManager::IsUtfSendAvailable(HCONTACT hContact) {  //************************************************************************
  // returns the contacts message service name
  //************************************************************************
 -char *CAppletManager::GetMessageServiceName(HCONTACT hContact,bool bIsUnicode)
 +char *CAppletManager::GetMessageServiceName(MCONTACT hContact,bool bIsUnicode)
  {
  	char szServiceName[100];
  	char *szProto = (char *) CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM) hContact, 0);
 @@ -785,7 +785,7 @@ void CAppletManager::CancelMessageJob(SMessageJob *pJob)  //************************************************************************
  // returns wether or not a contact is a subcontact
  //************************************************************************
 -bool CAppletManager::IsSubContact(HCONTACT hContact)
 +bool CAppletManager::IsSubContact(MCONTACT hContact)
  {
  	if(!db_get_b(0, "MetaContacts", "Enabled", 1))
  		return false;
 @@ -798,7 +798,7 @@ bool CAppletManager::IsSubContact(HCONTACT hContact)  //************************************************************************
  // sends typing notifications to the specified contact
  //************************************************************************
 -void CAppletManager::SendTypingNotification(HCONTACT hContact,bool bEnable)
 +void CAppletManager::SendTypingNotification(MCONTACT hContact,bool bEnable)
  {
  	DWORD protoStatus;
      DWORD protoCaps;
 @@ -841,7 +841,7 @@ void CAppletManager::SendTypingNotification(HCONTACT hContact,bool bEnable)  //************************************************************************
  // sends a message to the specified contact
  //************************************************************************
 -HANDLE CAppletManager::SendMessageToContact(HCONTACT hContact,tstring strMessage)
 +HANDLE CAppletManager::SendMessageToContact(MCONTACT hContact,tstring strMessage)
  {
  	tstring strAscii = _A2T(toNarrowString(strMessage).c_str());
  	int bufSize = lstrlen(strAscii.c_str())+1;
 @@ -924,7 +924,7 @@ HANDLE CAppletManager::SendMessageToContact(HCONTACT hContact,tstring strMessage  //************************************************************************
  // check if a contacts message window is opened
  //************************************************************************
 -bool CAppletManager::IsMessageWindowOpen(HCONTACT hContact)
 +bool CAppletManager::IsMessageWindowOpen(MCONTACT hContact)
  {
  	MessageWindowInputData mwid;
  	mwid.cbSize = sizeof(MessageWindowInputData);
 @@ -942,7 +942,7 @@ bool CAppletManager::IsMessageWindowOpen(HCONTACT hContact)  //************************************************************************
  // marks the given message as read
  //************************************************************************
 -void CAppletManager::MarkMessageAsRead(HCONTACT hContact,HANDLE hEvent)
 +void CAppletManager::MarkMessageAsRead(MCONTACT hContact,HANDLE hEvent)
  {
  	db_event_markRead(hContact, hEvent);
  	CallService(MS_CLIST_REMOVEEVENT, (WPARAM)hContact, (LPARAM)hEvent);
 @@ -953,7 +953,7 @@ void CAppletManager::MarkMessageAsRead(HCONTACT hContact,HANDLE hEvent)  //************************************************************************
  bool CAppletManager::TranslateDBEvent(CEvent *pEvent,WPARAM wParam, LPARAM lParam)
  {
 -	HCONTACT hContact = (HCONTACT)wParam;
 +	MCONTACT hContact = (MCONTACT)wParam;
  	HANDLE hdbevent = (HANDLE)lParam;
 @@ -1163,7 +1163,7 @@ CIRCConnection *CAppletManager::CreateIRCConnection(tstring strProtocol)  //************************************************************************
  // returns the history class for the specified IRC channel
  //************************************************************************
 -CIRCHistory *CAppletManager::GetIRCHistory(HCONTACT hContact)
 +CIRCHistory *CAppletManager::GetIRCHistory(MCONTACT hContact)
  {
  	list<CIRCHistory*>::iterator iter = m_LIRCHistorys.begin();
  	while(iter != m_LIRCHistorys.end())
 @@ -1190,7 +1190,7 @@ CIRCHistory *CAppletManager::GetIRCHistoryByName(tstring strProtocol,tstring str  //************************************************************************
  // deletes the history class for the specified IRC channel
  //************************************************************************
 -void CAppletManager::DeleteIRCHistory(HCONTACT hContact)
 +void CAppletManager::DeleteIRCHistory(MCONTACT hContact)
  {
  	list<CIRCHistory*>::iterator iter = m_LIRCHistorys.begin();
  	while(iter != m_LIRCHistorys.end())
 @@ -1214,7 +1214,7 @@ void CAppletManager::DeleteIRCHistory(HCONTACT hContact)  //************************************************************************
  // creates a history class for the specified IRC channel
  //************************************************************************
 -CIRCHistory *CAppletManager::CreateIRCHistory(HCONTACT hContact,tstring strChannel)
 +CIRCHistory *CAppletManager::CreateIRCHistory(MCONTACT hContact,tstring strChannel)
  {
  	char *szProto = (char*)CallService(MS_PROTO_GETCONTACTBASEPROTO, (WPARAM)hContact, 0);
  	if(!szProto)
 @@ -1582,7 +1582,7 @@ int CAppletManager::HookMessageWindowEvent(WPARAM wParam, LPARAM lParam)  //************************************************************************
  int CAppletManager::HookContactIsTyping(WPARAM wParam, LPARAM lParam)
  {
 -	HCONTACT hContact = (HCONTACT)wParam;
 +	MCONTACT hContact = (MCONTACT)wParam;
  	int iState = (int)lParam;
  	CEvent Event;
 @@ -1621,7 +1621,7 @@ int CAppletManager::HookStatusChanged(WPARAM wParam, LPARAM lParam)  	// Prepare message and append to queue
  	CEvent Event;
 -	Event.hContact = (HCONTACT)wParam;
 +	Event.hContact = (MCONTACT)wParam;
  	int iStatus = cws->value.wVal;
  	Event.iValue = iStatus;
 @@ -1821,7 +1821,7 @@ int CAppletManager::HookContactAdded(WPARAM wParam, LPARAM lParam)  {
  	CEvent Event;
  	Event.eType = EVENT_CONTACT_ADDED;
 -	Event.hContact = (HCONTACT)wParam;
 +	Event.hContact = (MCONTACT)wParam;
  	CAppletManager::GetInstance()->HandleEvent(&Event);
  	return 0;
 @@ -1834,7 +1834,7 @@ int CAppletManager::HookContactDeleted(WPARAM wParam, LPARAM lParam)  {
  	CEvent Event;
  	Event.eType = EVENT_CONTACT_DELETED;
 -	Event.hContact = (HCONTACT)wParam;
 +	Event.hContact = (MCONTACT)wParam;
  	Event.bNotification = CConfig::GetBoolSetting(NOTIFY_CONTACTS);
  	Event.bLog = Event.bNotification;
 @@ -1854,7 +1854,7 @@ int CAppletManager::HookSettingChanged(WPARAM wParam,LPARAM lParam)  	DBCONTACTWRITESETTING *dbcws = (DBCONTACTWRITESETTING*)lParam;
  	CEvent Event;
 -	Event.hContact = (HCONTACT)wParam;
 +	Event.hContact = (MCONTACT)wParam;
  	if(!lstrcmpA(dbcws->szModule,"MetaContacts"))
  	{
 @@ -1865,7 +1865,7 @@ int CAppletManager::HookSettingChanged(WPARAM wParam,LPARAM lParam)  		if(!lstrcmpA(dbcws->szSetting,"IsSubcontact")) {
  			Event.eType = EVENT_CONTACT_GROUP;
  			DBVARIANT dbv;
 -			int res = db_get_ts((HCONTACT)wParam, "CList", "Group",	&dbv);
 +			int res = db_get_ts((MCONTACT)wParam, "CList", "Group",	&dbv);
  			if(!res)
  					Event.strValue = dbv.ptszVal;
  			db_free(&dbv);
 @@ -1910,13 +1910,13 @@ int CAppletManager::HookSettingChanged(WPARAM wParam,LPARAM lParam)  		if(!lstrcmpA(dbcws->szSetting,"Hidden"))
  		{
  			Event.eType = EVENT_CONTACT_HIDDEN;
 -			Event.iValue = db_get_b((HCONTACT)wParam,"CList","Hidden",0);
 +			Event.iValue = db_get_b((MCONTACT)wParam,"CList","Hidden",0);
  		}
  		else if(!lstrcmpA(dbcws->szSetting,"Group"))
  		{
  			Event.eType = EVENT_CONTACT_GROUP;
  			DBVARIANT dbv;
 -			int res = db_get_ts((HCONTACT)wParam, "CList", "Group",	&dbv);
 +			int res = db_get_ts((MCONTACT)wParam, "CList", "Group",	&dbv);
  			if(!res)
  					Event.strValue = dbv.ptszVal;
  			db_free(&dbv);
 diff --git a/plugins/MirandaG15/src/CAppletManager.h b/plugins/MirandaG15/src/CAppletManager.h index f3551b41fe..b84de9bc23 100644 --- a/plugins/MirandaG15/src/CAppletManager.h +++ b/plugins/MirandaG15/src/CAppletManager.h @@ -19,7 +19,7 @@  struct SMessageJob
  {
  	HANDLE hEvent;
 -	HCONTACT hContact;
 +	MCONTACT hContact;
  	DWORD dwFlags;
  	char *pcBuffer;
  	int iBufferSize;
 @@ -59,7 +59,7 @@ public:  	void ActivateCreditsScreen();
  	void ActivateEventScreen();
  	void ActivateCListScreen();
 -	bool ActivateChatScreen(HCONTACT hContact);
 +	bool ActivateChatScreen(MCONTACT hContact);
  	// hook functions
  	static int HookMessageWindowEvent(WPARAM wParam, LPARAM lParam);
 @@ -73,31 +73,31 @@ public:  	static int HookChatInbound(WPARAM wParam,LPARAM lParam);
  	// check if a contacts message window is opened
 -	static bool IsMessageWindowOpen(HCONTACT hContact);
 +	static bool IsMessageWindowOpen(MCONTACT hContact);
  	// marks the given event as read
 -	static void MarkMessageAsRead(HCONTACT hContact,HANDLE hEvent);
 +	static void MarkMessageAsRead(MCONTACT hContact,HANDLE hEvent);
  	// translates the given database event
  	static bool TranslateDBEvent(CEvent *pEvent,WPARAM wParam, LPARAM lParam);
  	// sends a message to the specified contact
 -	static HANDLE SendMessageToContact(HCONTACT hContact,tstring strMessage);
 +	static HANDLE SendMessageToContact(MCONTACT hContact,tstring strMessage);
  	// sends typing notifications to the specified contact
 -	static void SendTypingNotification(HCONTACT hContact,bool bEnable);
 +	static void SendTypingNotification(MCONTACT hContact,bool bEnable);
  	// returns the contacts message service name
 -	static char *GetMessageServiceName(HCONTACT hContact,bool bIsUnicode);
 -	static bool  IsUtfSendAvailable(HCONTACT hContact);
 +	static char *GetMessageServiceName(MCONTACT hContact,bool bIsUnicode);
 +	static bool  IsUtfSendAvailable(MCONTACT hContact);
  	// returns a formatted timestamp string
  	static tstring GetFormattedTimestamp(tm *time);
  	// returns wether or not a contact is a subcontact
 -	static bool IsSubContact(HCONTACT hContact);
 +	static bool IsSubContact(MCONTACT hContact);
  	// returns the contacts group
 -	static tstring GetContactGroup(HCONTACT hContact);
 +	static tstring GetContactGroup(MCONTACT hContact);
  	// returns the contacts displayname
 -	static tstring GetContactDisplayname(HCONTACT hContact,bool bShortened=false);
 +	static tstring GetContactDisplayname(MCONTACT hContact,bool bShortened=false);
  	// returns the history class for the specified IRC channel
 -	CIRCHistory *GetIRCHistory(HCONTACT hContact);
 +	CIRCHistory *GetIRCHistory(MCONTACT hContact);
  	CIRCHistory *GetIRCHistoryByName(tstring strProtocol,tstring strChannel);
  	// returns the IRC connection class for the specified protocol
 @@ -118,9 +118,9 @@ public:  private:
  	list<CIRCHistory*> m_LIRCHistorys;
  	// deletes the history class for the specified IRC channel
 -	void DeleteIRCHistory(HCONTACT hContact);
 +	void DeleteIRCHistory(MCONTACT hContact);
  	// creates a history class for the specified IRC channel
 -	CIRCHistory *CreateIRCHistory(HCONTACT hContact,tstring strChannel);
 +	CIRCHistory *CreateIRCHistory(MCONTACT hContact,tstring strChannel);
  	CIRCHistory *CreateIRCHistoryByName(tstring strProtocol,tstring strChannel);
  	// activate a screen
 diff --git a/plugins/MirandaG15/src/CChatScreen.cpp b/plugins/MirandaG15/src/CChatScreen.cpp index 6ecc2acf97..4eef6df9b1 100644 --- a/plugins/MirandaG15/src/CChatScreen.cpp +++ b/plugins/MirandaG15/src/CChatScreen.cpp @@ -216,7 +216,7 @@ bool CChatScreen::IsInputActive()  //************************************************************************
  // returns the chat contact
  //************************************************************************
 -HCONTACT CChatScreen::GetContact()
 +MCONTACT CChatScreen::GetContact()
  {
  	return m_hContact;
  }
 @@ -224,7 +224,7 @@ HCONTACT CChatScreen::GetContact()  //************************************************************************
  // sets the screen's chat contact
  //************************************************************************
 -bool CChatScreen::SetContact(HCONTACT hContact)
 +bool CChatScreen::SetContact(MCONTACT hContact)
  {
  	if(hContact == NULL)
  	{
 diff --git a/plugins/MirandaG15/src/CChatScreen.h b/plugins/MirandaG15/src/CChatScreen.h index 5fd9607ecc..0f10a17614 100644 --- a/plugins/MirandaG15/src/CChatScreen.h +++ b/plugins/MirandaG15/src/CChatScreen.h @@ -44,9 +44,9 @@ public:  	void OnSizeChanged();
  	// Set's the chat contact
 -	bool SetContact(HCONTACT hContact);
 +	bool SetContact(MCONTACT hContact);
  	// returns the chat contact
 -	HCONTACT GetContact();
 +	MCONTACT GetContact();
  	// returns wether the input mode is active
  	bool IsInputActive();
 @@ -92,7 +92,7 @@ protected:  	DWORD	m_dwMaximizedTimer;
  	DWORD	m_dwMaximizedDuration;
 -	HCONTACT m_hContact;
 +	MCONTACT m_hContact;
  	HANDLE m_hMessage;
  	int m_iStatus;
 diff --git a/plugins/MirandaG15/src/CContactList.cpp b/plugins/MirandaG15/src/CContactList.cpp index bf3469ed95..c22859cce5 100644 --- a/plugins/MirandaG15/src/CContactList.cpp +++ b/plugins/MirandaG15/src/CContactList.cpp @@ -78,12 +78,12 @@ CContactListEntry *CContactList::GetContactData(CListEntry<CContactListEntry*,CC  //************************************************************************
  // returns the contacts group path
  //************************************************************************
 -tstring CContactList::GetContactGroupPath(HCONTACT hContact)
 +tstring CContactList::GetContactGroupPath(MCONTACT hContact)
  {
  	tstring strGroup = _T("");
  	if(db_get_b(0, "MetaContacts", "Enabled", 1) && CAppletManager::IsSubContact(hContact))
  	{
 -		HCONTACT hMetaContact = (HCONTACT)CallService(MS_MC_GETMETACONTACT, (WPARAM)hContact, NULL);
 +		MCONTACT hMetaContact = (MCONTACT)CallService(MS_MC_GETMETACONTACT, (WPARAM)hContact, NULL);
  		if(CConfig::GetBoolSetting(CLIST_USEGROUPS))
  			strGroup = CAppletManager::GetContactGroup(hMetaContact);
 @@ -98,7 +98,7 @@ tstring CContactList::GetContactGroupPath(HCONTACT hContact)  //************************************************************************
  // adds a contact to the list
  //************************************************************************
 -void CContactList::AddContact(HCONTACT hContact)
 +void CContactList::AddContact(MCONTACT hContact)
  {
  	CListContainer<CContactListEntry*,CContactListGroup*> *pGroup = NULL;
 @@ -151,16 +151,16 @@ void CContactList::AddContact(HCONTACT hContact)  		// check that all subcontacts exist
  		int numContacts = CallService(MS_MC_GETNUMCONTACTS,(WPARAM)hContact,0);
 -		HCONTACT hSubContact = NULL;
 +		MCONTACT hSubContact = NULL;
  		for(int i=0;i<numContacts;i++) {
 -			hSubContact = (HCONTACT)CallService(MS_MC_GETSUBCONTACT, (WPARAM)hContact, (LPARAM)i);
 +			hSubContact = (MCONTACT)CallService(MS_MC_GETSUBCONTACT, (WPARAM)hContact, (LPARAM)i);
  			RemoveContact(hSubContact);
  			AddContact(hSubContact);
  		}
  		return;
  	}
  	else if(CAppletManager::IsSubContact(hContact)) {
 -		HCONTACT hMetaContact = (HCONTACT)CallService(MS_MC_GETMETACONTACT, (WPARAM)hContact, 0);
 +		MCONTACT hMetaContact = (MCONTACT)CallService(MS_MC_GETMETACONTACT, (WPARAM)hContact, 0);
  		// check that the metacontact exists
  		if(!FindContact(hMetaContact)) {
  			AddContact(hMetaContact);
 @@ -206,7 +206,7 @@ bool CContactList::IsVisible(CContactListEntry *pEntry) {  		if(pEntry->iStatus == ID_STATUS_OFFLINE) {
  			DWORD dwNumContacts = (DWORD)CallService(MS_MC_GETNUMCONTACTS,(WPARAM)pEntry->hHandle,0);
  			for(DWORD i = 0; i < dwNumContacts; i++) {
 -				HCONTACT hSubContact = (HCONTACT)CallService(MS_MC_GETSUBCONTACT,(WPARAM)pEntry->hHandle,i);
 +				MCONTACT hSubContact = (MCONTACT)CallService(MS_MC_GETSUBCONTACT,(WPARAM)pEntry->hHandle,i);
  				char *szProto = (char*)CallService(MS_PROTO_GETCONTACTBASEPROTO,(UINT)hSubContact,0);
  				if(db_get_w(hSubContact,szProto,"Status",ID_STATUS_OFFLINE) != ID_STATUS_OFFLINE) {
  					return true;
 @@ -222,7 +222,7 @@ bool CContactList::IsVisible(CContactListEntry *pEntry) {  		if(db_get_b(pEntry->hHandle,"CList","Hidden",0))
  			return false;
  		else if(CAppletManager::IsSubContact(pEntry->hHandle)) {
 -			HCONTACT hMetaContact = (HCONTACT)CallService(MS_MC_GETMETACONTACT, (WPARAM)pEntry->hHandle, 0);
 +			MCONTACT hMetaContact = (MCONTACT)CallService(MS_MC_GETMETACONTACT, (WPARAM)pEntry->hHandle, 0);
  			if(db_get_b(hMetaContact,"CList","Hidden",0))
  				return false;
  		}
 @@ -241,7 +241,7 @@ bool CContactList::IsVisible(CContactListEntry *pEntry) {  //************************************************************************
  // removes a contact from the list
  //************************************************************************
 -void CContactList::RemoveContact(HCONTACT hContact) {
 +void CContactList::RemoveContact(MCONTACT hContact) {
  	CListContainer<CContactListEntry*,CContactListGroup*> *pGroup = NULL;
  	///tstring strGroup = GetContactGroupPath(hContact);
 @@ -281,7 +281,7 @@ void CContactList::RemoveContact(HCONTACT hContact) {  			// Reenumerate all subcontacts (maybe MetaContacts was disabled
  			int numContacts = CallService(MS_MC_GETNUMCONTACTS,(WPARAM)hContact,0);
  			for(int i=0;i<numContacts;i++) {
 -				HCONTACT hSubContact = (HCONTACT)CallService(MS_MC_GETSUBCONTACT,(WPARAM)hContact, (LPARAM)i);
 +				MCONTACT hSubContact = (MCONTACT)CallService(MS_MC_GETSUBCONTACT,(WPARAM)hContact, (LPARAM)i);
  				if(!FindContact(hSubContact))
  					AddContact(hSubContact);
  			}
 @@ -366,7 +366,7 @@ CListContainer<CContactListEntry*,CContactListGroup*> *CContactList::AddGroupByS  //************************************************************************
  // returns the contact's status
  //************************************************************************
 -int CContactList::GetContactStatus(HCONTACT hContact)
 +int CContactList::GetContactStatus(MCONTACT hContact)
  {
  	CListEntry<CContactListEntry *,CContactListGroup*> *pContactEntry = FindContact(hContact);
  	if(!pContactEntry)
 @@ -550,7 +550,7 @@ void CContactList::RefreshList()  	m_bUseMetaContacts = db_get_b(NULL,"MetaContacts","Enabled",1);
  	CListEntry<CContactListEntry*,CContactListGroup*> *pContactEntry = NULL;
 -	HCONTACT hContact = db_find_first();
 +	MCONTACT hContact = db_find_first();
      while(hContact != NULL)
  	{
  		pContactEntry = FindContact(hContact);
 @@ -619,7 +619,7 @@ CListContainer<CContactListEntry*,CContactListGroup*> *CContactList::FindGroupIn  //************************************************************************
  // returns the entry for the specified handle
  //************************************************************************
 -CListEntry<CContactListEntry*,CContactListGroup*> *CContactList::FindContact(HCONTACT hContact)
 +CListEntry<CContactListEntry*,CContactListGroup*> *CContactList::FindContact(MCONTACT hContact)
  {
  	if(hContact == NULL)
  		return NULL;
 @@ -630,7 +630,7 @@ CListEntry<CContactListEntry*,CContactListGroup*> *CContactList::FindContact(HCO  //************************************************************************
  // returns the entry for the specified handle
  //************************************************************************
 -CListEntry<CContactListEntry*,CContactListGroup*> *CContactList::FindContactInGroup(HCONTACT hContact,CListContainer<CContactListEntry*,CContactListGroup*> *pGroup)
 +CListEntry<CContactListEntry*,CContactListGroup*> *CContactList::FindContactInGroup(MCONTACT hContact,CListContainer<CContactListEntry*,CContactListGroup*> *pGroup)
  {
  	if(hContact == NULL)
  		return NULL;
 @@ -666,7 +666,7 @@ CListEntry<CContactListEntry*,CContactListGroup*> *CContactList::FindContactInGr  //************************************************************************
  // called when a contacts hidden flag has changed
  //************************************************************************
 -void CContactList::OnContactHiddenChanged(HCONTACT hContact, bool bHidden)
 +void CContactList::OnContactHiddenChanged(MCONTACT hContact, bool bHidden)
  {
  	CListEntry<CContactListEntry*,CContactListGroup*> *pContactEntry =  FindContact(hContact);
 @@ -685,7 +685,7 @@ void CContactList::OnContactHiddenChanged(HCONTACT hContact, bool bHidden)  //************************************************************************
  // called when a contacts nickname has changed
  //************************************************************************
 -void CContactList::OnContactNickChanged(HCONTACT hContact, tstring strNick)
 +void CContactList::OnContactNickChanged(MCONTACT hContact, tstring strNick)
  {
  	CListEntry<CContactListEntry *,CContactListGroup*> *pContactEntry = FindContact(hContact);
  	if(!pContactEntry)
 @@ -711,7 +711,7 @@ void CContactList::OnContactNickChanged(HCONTACT hContact, tstring strNick)  //************************************************************************
  // called when a contacts status has changed
  //************************************************************************
 -void CContactList::OnStatusChange(HCONTACT hContact,int iStatus)
 +void CContactList::OnStatusChange(MCONTACT hContact,int iStatus)
  {
  	// find the entry in the list
  	CListEntry<CContactListEntry *,CContactListGroup*> *pContactEntry = FindContact(hContact);
 @@ -764,7 +764,7 @@ void CContactList::OnStatusChange(HCONTACT hContact,int iStatus)  //************************************************************************
  // called when the contacts message count has changed
  //************************************************************************
 -void CContactList::OnMessageCountChanged(HCONTACT hContact)
 +void CContactList::OnMessageCountChanged(MCONTACT hContact)
  {
  	CListEntry<CContactListEntry *,CContactListGroup*> *pContactEntry = FindContact(hContact);
  	if(!pContactEntry)
 @@ -784,7 +784,7 @@ void CContactList::OnMessageCountChanged(HCONTACT hContact)  //************************************************************************
  // called when a contact has been added
  //************************************************************************
 -void CContactList::OnContactAdded(HCONTACT hContact)
 +void CContactList::OnContactAdded(MCONTACT hContact)
  {
  	// Update the list
  	AddContact(hContact);
 @@ -805,7 +805,7 @@ void CContactList::OnContactAdded(HCONTACT hContact)  //************************************************************************
  // called when a contact has been deleted
  //************************************************************************
 -void CContactList::OnContactDeleted(HCONTACT hContact)
 +void CContactList::OnContactDeleted(MCONTACT hContact)
  {
  	// Update the list
  	RemoveContact(hContact);
 @@ -829,7 +829,7 @@ void CContactList::OnContactDeleted(HCONTACT hContact)  //************************************************************************
  // called when a contacts group has changed
  //************************************************************************
 -void CContactList::OnContactGroupChanged(HCONTACT hContact,tstring strGroup)
 +void CContactList::OnContactGroupChanged(MCONTACT hContact,tstring strGroup)
  {
  	bool bMetaContact = false;
 @@ -1013,7 +1013,7 @@ void CContactList::InitializeGroupObjects()  	int res = 0;
  	CContactListGroup *pGroup = NULL;
 -	HCONTACT hContact =  db_find_first();
 +	MCONTACT hContact =  db_find_first();
  	HANDLE hMetaContact = NULL;
  	char *szProto = NULL;
  	while(hContact != NULL)
 diff --git a/plugins/MirandaG15/src/CContactList.h b/plugins/MirandaG15/src/CContactList.h index a86d61852f..52d68be1df 100644 --- a/plugins/MirandaG15/src/CContactList.h +++ b/plugins/MirandaG15/src/CContactList.h @@ -8,7 +8,7 @@ class CContactListEntry  public:
  	int iMessages;
  	tstring strMessages;
 -	HCONTACT hHandle;
 +	MCONTACT hHandle;
  	tstring strName;
  	tstring strProto;
  	tstring strStatus;
 @@ -25,7 +25,7 @@ public:  	int iOnline;
  	int iEvents;
 -	HCONTACT hMetaContact;
 +	MCONTACT hMetaContact;
  	CContactListEntry *pContactListEntry;
  };
 @@ -43,23 +43,23 @@ public:  	bool Shutdown();
  	// called when a contact has been added
 -	void OnContactAdded(HCONTACT hContact);
 +	void OnContactAdded(MCONTACT hContact);
  	// called when a contact has been deleted
 -	void OnContactDeleted(HCONTACT hContact);
 +	void OnContactDeleted(MCONTACT hContact);
  	// called when the configuration has changed
  	void OnConfigChanged();
  	// called when a contacts group has changed
 -	void OnContactGroupChanged(HCONTACT hContact,tstring strGroup);
 +	void OnContactGroupChanged(MCONTACT hContact,tstring strGroup);
  	// called when a contacts hidden flag has changed
 -	void OnContactHiddenChanged(HCONTACT hContact, bool bVisibility);	
 +	void OnContactHiddenChanged(MCONTACT hContact, bool bVisibility);	
  	// called when a contacts nickname has changed
 -	void OnContactNickChanged(HCONTACT hContact, tstring strNick);
 +	void OnContactNickChanged(MCONTACT hContact, tstring strNick);
  	// called when a contacts status has changed
 -	void OnStatusChange(HCONTACT hContact,int iStatus);
 +	void OnStatusChange(MCONTACT hContact,int iStatus);
  	// called when the contacts message count has changed
 -	void OnMessageCountChanged(HCONTACT hContact);
 +	void OnMessageCountChanged(MCONTACT hContact);
  	// returns the contact's status
 -	int GetContactStatus(HCONTACT hContact);
 +	int GetContactStatus(MCONTACT hContact);
  	// Called to compare two entrys
  	static bool CompareEntries(CListEntry<CContactListEntry*,CContactListGroup*> *pLeft,CListEntry<CContactListEntry*,CContactListGroup*> *pRight);
 @@ -72,12 +72,12 @@ public:  	bool SetFont(LOGFONT &lf);
  protected:	
  	// returns the contacts group path
 -	tstring GetContactGroupPath(HCONTACT hContact);
 +	tstring GetContactGroupPath(MCONTACT hContact);
  	// adds a contact to the list
 -	void AddContact(HCONTACT hContact);
 +	void AddContact(MCONTACT hContact);
  	// removes a contact from the list
 -	void RemoveContact(HCONTACT hContact);
 +	void RemoveContact(MCONTACT hContact);
  	// uninitializes the group objects
  	void UninitializeGroupObjects();
 @@ -101,7 +101,7 @@ protected:  	void SortGroup(CListContainer<CContactListEntry*,CContactListGroup*> *pGroup);
  	// tries to find a contact in the specified group
 -	CListEntry<CContactListEntry*,CContactListGroup*> *FindContactInGroup(HCONTACT hContact,CListContainer<CContactListEntry*,CContactListGroup*> *pGroup);
 +	CListEntry<CContactListEntry*,CContactListGroup*> *FindContactInGroup(MCONTACT hContact,CListContainer<CContactListEntry*,CContactListGroup*> *pGroup);
  	// tries to find a group in the specified group
  	CListContainer<CContactListEntry*,CContactListGroup*> *FindGroupInGroup(tstring strGroup,CListContainer<CContactListEntry*,CContactListGroup*> *pGroup);
 @@ -117,7 +117,7 @@ protected:  	void RefreshList();
  	// returns the entry for the specified handle
 -	CListEntry<CContactListEntry*,CContactListGroup*> *FindContact(HCONTACT hContact);
 +	CListEntry<CContactListEntry*,CContactListGroup*> *FindContact(MCONTACT hContact);
  	// returns the entry for the specified group name
  	CListContainer<CContactListEntry*,CContactListGroup*> *FindGroup(tstring strGroup);
 diff --git a/plugins/MirandaG15/src/CContactlistScreen.cpp b/plugins/MirandaG15/src/CContactlistScreen.cpp index d6e733f651..d5dca3df7a 100644 --- a/plugins/MirandaG15/src/CContactlistScreen.cpp +++ b/plugins/MirandaG15/src/CContactlistScreen.cpp @@ -85,7 +85,7 @@ bool CContactlistScreen::Draw(CLCDGfx *pGfx)  //************************************************************************
  // returns the online status of the specified contact
  //************************************************************************
 -int CContactlistScreen::GetContactStatus(HCONTACT hContact)
 +int CContactlistScreen::GetContactStatus(MCONTACT hContact)
  {
  	return m_ContactList.GetContactStatus(hContact);
  }
 @@ -182,7 +182,7 @@ void CContactlistScreen::OnEventReceived(CEvent *pEvent)  //************************************************************************
  // Called when a chat session was opened
  //************************************************************************
 -void CContactlistScreen::OnSessionOpened(HCONTACT hContact)
 +void CContactlistScreen::OnSessionOpened(MCONTACT hContact)
  {
  	m_ContactList.OnMessageCountChanged(hContact);
  }
 diff --git a/plugins/MirandaG15/src/CContactlistScreen.h b/plugins/MirandaG15/src/CContactlistScreen.h index f3ce140267..b0f06e265e 100644 --- a/plugins/MirandaG15/src/CContactlistScreen.h +++ b/plugins/MirandaG15/src/CContactlistScreen.h @@ -26,10 +26,10 @@ public:  	void ResetPosition();
  	// returns the online status of the specified contact
 -	int GetContactStatus(HCONTACT hContact);
 +	int GetContactStatus(MCONTACT hContact);
  	// Called when a chat session was opened
 -	void OnSessionOpened(HCONTACT hContact);
 +	void OnSessionOpened(MCONTACT hContact);
  	// Called when the configuration has changed
  	void OnConfigChanged();
 diff --git a/plugins/MirandaG15/src/CEvent.h b/plugins/MirandaG15/src/CEvent.h index 81d3b40833..d07080b70c 100644 --- a/plugins/MirandaG15/src/CEvent.h +++ b/plugins/MirandaG15/src/CEvent.h @@ -53,7 +53,7 @@ public:  	enum EventType	eType;
  	DWORD dwFlags;
 -	HCONTACT hContact;
 +	MCONTACT hContact;
  	tm	Time;
  	bool bTime;
 diff --git a/plugins/MirandaG15/src/CEventLog.h b/plugins/MirandaG15/src/CEventLog.h index e70d3f6a43..6f9efe8996 100644 --- a/plugins/MirandaG15/src/CEventLog.h +++ b/plugins/MirandaG15/src/CEventLog.h @@ -6,7 +6,7 @@  class CEventLogEntry
  {
  public:
 -	HCONTACT hContact;
 +	MCONTACT hContact;
  	tstring strValue;
  	tstring strTimestamp;
  	tm Time;
 diff --git a/plugins/MirandaG15/src/CIRCHistory.h b/plugins/MirandaG15/src/CIRCHistory.h index bba2c40fb4..d4865ddba0 100644 --- a/plugins/MirandaG15/src/CIRCHistory.h +++ b/plugins/MirandaG15/src/CIRCHistory.h @@ -14,7 +14,7 @@ class CIRCHistory  public:
  	tstring strChannel;
  	tstring strProtocol;
 -	HCONTACT hContact;
 +	MCONTACT hContact;
  	list<SIRCMessage> LMessages;
  	list<tstring> LUsers;
  };
 diff --git a/plugins/MirandaG15/src/CNotificationScreen.h b/plugins/MirandaG15/src/CNotificationScreen.h index 7404832205..98130c8de5 100644 --- a/plugins/MirandaG15/src/CNotificationScreen.h +++ b/plugins/MirandaG15/src/CNotificationScreen.h @@ -14,7 +14,7 @@ public:  	tm Time;
  	tstring strText;
  	tstring strTitle;
 -	HCONTACT hContact;
 +	MCONTACT hContact;
  	EventType eType;
  };
 diff --git a/plugins/MirandaG15/src/Miranda.h b/plugins/MirandaG15/src/Miranda.h index f11db5f7b8..f5f8dfecf5 100644 --- a/plugins/MirandaG15/src/Miranda.h +++ b/plugins/MirandaG15/src/Miranda.h @@ -1,3 +1,3 @@  extern HINSTANCE hInstance;
 -extern char *MsgServiceName(HCONTACT hContact,bool bIsUnicode);
 +extern char *MsgServiceName(MCONTACT hContact,bool bIsUnicode);
 | 
