diff options
Diffstat (limited to 'protocols/Twitter/src')
| -rw-r--r-- | protocols/Twitter/src/chat.cpp | 4 | ||||
| -rw-r--r-- | protocols/Twitter/src/connection.cpp | 18 | ||||
| -rw-r--r-- | protocols/Twitter/src/contacts.cpp | 34 | ||||
| -rw-r--r-- | protocols/Twitter/src/proto.cpp | 20 | ||||
| -rw-r--r-- | protocols/Twitter/src/proto.h | 50 | ||||
| -rw-r--r-- | protocols/Twitter/src/stubs.cpp | 28 | ||||
| -rw-r--r-- | protocols/Twitter/src/theme.cpp | 6 | ||||
| -rw-r--r-- | protocols/Twitter/src/ui.cpp | 2 | 
8 files changed, 81 insertions, 81 deletions
diff --git a/protocols/Twitter/src/chat.cpp b/protocols/Twitter/src/chat.cpp index 6867783ea0..df581c8586 100644 --- a/protocols/Twitter/src/chat.cpp +++ b/protocols/Twitter/src/chat.cpp @@ -39,7 +39,7 @@ void TwitterProto::UpdateChat(const twitter_user &update)  	gce.time     = static_cast<DWORD>(update.status.time);
  	DBVARIANT nick;
 -	HANDLE hContact = UsernameToHContact(update.username.c_str());
 +	HCONTACT hContact = UsernameToHContact(update.username.c_str());
  	if(hContact && !db_get_s(hContact,"CList","MyHandle",&nick))
  	{
  		gce.ptszNick = mir_a2t(nick.pszVal);
 @@ -163,7 +163,7 @@ void TwitterProto::SetChatStatus(int status)  	if(status == ID_STATUS_ONLINE)
  	{
  		// Add all friends to contact list
 -		for(HANDLE hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) {
 +		for(HCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName)) {
  			if( isChatRoom(hContact))
  				continue;
 diff --git a/protocols/Twitter/src/connection.cpp b/protocols/Twitter/src/connection.cpp index 938f9350ff..bb332624e4 100644 --- a/protocols/Twitter/src/connection.cpp +++ b/protocols/Twitter/src/connection.cpp @@ -25,7 +25,7 @@ void CALLBACK TwitterProto::APC_callback(ULONG_PTR p)  }
  template<typename T>
 -inline static T db_pod_get(HANDLE hContact,const char *module,const char *setting,T errorValue)
 +inline static T db_pod_get(HCONTACT hContact,const char *module,const char *setting,T errorValue)
  {
  	DBVARIANT dbv;
  	if(db_get(hContact, module, setting, &dbv))
 @@ -41,7 +41,7 @@ inline static T db_pod_get(HANDLE hContact,const char *module,const char *settin  }
  template<typename T>
 -inline static INT_PTR db_pod_set(HANDLE hContact,const char *module,const char *setting,T val)
 +inline static INT_PTR db_pod_set(HCONTACT hContact,const char *module,const char *setting,T val)
  {
  	return db_set_blob(hContact, module, setting, &val, sizeof(T));
  }
 @@ -401,8 +401,8 @@ void TwitterProto::MessageLoop(void*)  struct update_avatar
  {
 -	update_avatar(HANDLE hContact,const std::string &url) : hContact(hContact),url(url) {}
 -	HANDLE hContact;
 +	update_avatar(HCONTACT hContact,const std::string &url) : hContact(hContact),url(url) {}
 +	HCONTACT hContact;
  	std::string url;
  };
 @@ -454,7 +454,7 @@ void TwitterProto::UpdateAvatarWorker(void *p)  	debugLogA( _T("***** Done avatar: %s"),data->url.c_str());
  }
 -void TwitterProto::UpdateAvatar(HANDLE hContact,const std::string &url,bool force)
 +void TwitterProto::UpdateAvatar(HCONTACT hContact,const std::string &url,bool force)
  {
  	DBVARIANT dbv = {0};
 @@ -493,7 +493,7 @@ void TwitterProto::UpdateFriends()  			if(i->username == twit_.get_username())
  				continue;
 -			HANDLE hContact = AddToClientList(i->username.c_str(),i->status.text.c_str());
 +			HCONTACT hContact = AddToClientList(i->username.c_str(),i->status.text.c_str());
  			UpdateAvatar(hContact,i->profile_image_url);
  		}
  		disconnectionCount = 0; 
 @@ -516,7 +516,7 @@ void TwitterProto::UpdateFriends()  }
 -void TwitterProto::ShowContactPopup(HANDLE hContact,const std::string &text)
 +void TwitterProto::ShowContactPopup(HCONTACT hContact,const std::string &text)
  {
  	if(!ServiceExists(MS_POPUP_ADDPOPUPT) || db_get_b(0,m_szModuleName,TWITTER_KEY_POPUP_SHOW,0) == 0)
  	{
 @@ -565,7 +565,7 @@ void TwitterProto::UpdateStatuses(bool pre_read, bool popups, bool tweetToMsg)  			if(i->username == twit_.get_username())
  				continue;
 -			HANDLE hContact = AddToClientList(i->username.c_str(),"");
 +			HCONTACT hContact = AddToClientList(i->username.c_str(),"");
  			UpdateAvatar(hContact,i->profile_image_url); // as UpdateFriends() doesn't work at the moment, i'm going to update the avatars here
  			// i think we maybe should just do that DBEF_READ line instead of stopping ALL this code.  have to test.
 @@ -620,7 +620,7 @@ void TwitterProto::UpdateMessages(bool pre_read)  		for(twitter::status_list::reverse_iterator i=messages.rbegin(); i!=messages.rend(); ++i)
  		{
 -			HANDLE hContact = AddToClientList(i->username.c_str(),"");
 +			HCONTACT hContact = AddToClientList(i->username.c_str(),"");
  			PROTORECVEVENT recv = { 0 };
  			recv.flags = PREF_UTF;
 diff --git a/protocols/Twitter/src/contacts.cpp b/protocols/Twitter/src/contacts.cpp index f9772bf7b6..9a37a50284 100644 --- a/protocols/Twitter/src/contacts.cpp +++ b/protocols/Twitter/src/contacts.cpp @@ -32,7 +32,7 @@ void TwitterProto::AddToListWorker(void *p)  		twitter_user user = twit_.add_friend(name);
  		s.Unlock();
 -		HANDLE hContact = UsernameToHContact(name);
 +		HCONTACT hContact = UsernameToHContact(name);
  		UpdateAvatar(hContact,user.profile_image_url);
  	}
  	catch(const std::exception &e)
 @@ -60,7 +60,7 @@ void TwitterProto::UpdateInfoWorker(void *hContact)  	std::string username;
  	DBVARIANT dbv;
 -	if(!db_get_s(hContact,m_szModuleName,TWITTER_KEY_UN,&dbv))
 +	if (!db_get_s((HCONTACT)hContact, m_szModuleName, TWITTER_KEY_UN, &dbv))
  	{
  		username = dbv.pszVal;
  		db_free(&dbv);
 @@ -73,11 +73,11 @@ void TwitterProto::UpdateInfoWorker(void *hContact)  		twit_.get_info(username,&user);
  	}
 -	UpdateAvatar(hContact,user.profile_image_url,true);
 -	ProtoBroadcastAck(hContact,ACKTYPE_GETINFO,ACKRESULT_SUCCESS,0,0);
 +	UpdateAvatar((HCONTACT)hContact, user.profile_image_url, true);
 +	ProtoBroadcastAck((HCONTACT)hContact, ACKTYPE_GETINFO, ACKRESULT_SUCCESS, 0, 0);
  }
 -int TwitterProto::GetInfo(HANDLE hContact,int info_type)
 +int TwitterProto::GetInfo(HCONTACT hContact,int info_type)
  {
  	if(m_iStatus != ID_STATUS_ONLINE)
  		return 1;
 @@ -170,14 +170,14 @@ void TwitterProto::GetAwayMsgWorker(void *hContact)  		return;
  	DBVARIANT dbv;
 -	if( !db_get_ts(hContact,"CList","StatusMsg",&dbv)) {
 -		ProtoBroadcastAck(hContact,ACKTYPE_AWAYMSG,ACKRESULT_SUCCESS, (HANDLE)1,(LPARAM)dbv.ptszVal);
 +	if (!db_get_ts((HCONTACT)hContact, "CList", "StatusMsg", &dbv)) {
 +		ProtoBroadcastAck((HCONTACT)hContact, ACKTYPE_AWAYMSG, ACKRESULT_SUCCESS, (HANDLE)1, (LPARAM)dbv.ptszVal);
  		db_free(&dbv);
  	}
 -	else ProtoBroadcastAck(hContact,ACKTYPE_AWAYMSG,ACKRESULT_FAILED, (HANDLE)1,0);
 +	else ProtoBroadcastAck((HCONTACT)hContact, ACKTYPE_AWAYMSG, ACKRESULT_FAILED, (HANDLE)1, 0);
  }
 -HANDLE TwitterProto::GetAwayMsg(HANDLE hContact)
 +HANDLE TwitterProto::GetAwayMsg(HCONTACT hContact)
  {
  	ForkThread(&TwitterProto::GetAwayMsgWorker, hContact);
  	return (HANDLE)1;
 @@ -188,7 +188,7 @@ int TwitterProto::OnContactDeleted(WPARAM wParam,LPARAM lParam)  	if(m_iStatus != ID_STATUS_ONLINE)
  		return 0;
 -	const HANDLE hContact = reinterpret_cast<HANDLE>(wParam);
 +	const HCONTACT hContact = reinterpret_cast<HCONTACT>(wParam);
  	if(!IsMyContact(hContact))
  		return 0;
 @@ -208,7 +208,7 @@ int TwitterProto::OnContactDeleted(WPARAM wParam,LPARAM lParam)  // *************************
 -bool TwitterProto::IsMyContact(HANDLE hContact,bool include_chat)
 +bool TwitterProto::IsMyContact(HCONTACT hContact,bool include_chat)
  {
  	char *proto = GetContactProto(hContact);
  	if(proto && strcmp(m_szModuleName,proto) == 0) {
 @@ -219,9 +219,9 @@ bool TwitterProto::IsMyContact(HANDLE hContact,bool include_chat)  	else return false;
  }
 -HANDLE TwitterProto::UsernameToHContact(const char *name)
 +HCONTACT TwitterProto::UsernameToHContact(const char *name)
  {
 -	for(HANDLE hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName))
 +	for(HCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName))
  	{
  		if( db_get_b(hContact, m_szModuleName, "ChatRoom", 0))
  			continue;
 @@ -242,10 +242,10 @@ HANDLE TwitterProto::UsernameToHContact(const char *name)  	return 0;
  }
 -HANDLE TwitterProto::AddToClientList(const char *name,const char *status)
 +HCONTACT TwitterProto::AddToClientList(const char *name, const char *status)
  {
  	// First, check if this contact exists
 -	HANDLE hContact = UsernameToHContact(name);
 +	HCONTACT hContact = UsernameToHContact(name);
  	if(hContact)
  		return hContact;
 @@ -253,7 +253,7 @@ HANDLE TwitterProto::AddToClientList(const char *name,const char *status)  		AddChatContact(name);
  	// If not, make a new contact!
 -	hContact = (HANDLE)CallService(MS_DB_CONTACT_ADD, 0, 0);
 +	hContact = (HCONTACT)CallService(MS_DB_CONTACT_ADD, 0, 0);
  	if(hContact)
  	{
  		if(CallService(MS_PROTO_ADDTOCONTACT,(WPARAM)hContact,(LPARAM)m_szModuleName) == 0)
 @@ -282,7 +282,7 @@ HANDLE TwitterProto::AddToClientList(const char *name,const char *status)  void TwitterProto::SetAllContactStatuses(int status)
  {
 -	for(HANDLE hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName))
 +	for(HCONTACT hContact = db_find_first(m_szModuleName); hContact; hContact = db_find_next(hContact, m_szModuleName))
  		if( !db_get_b(hContact, m_szModuleName, "ChatRoom", 0))
  			db_set_w(hContact,m_szModuleName,"Status",status);
 diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index d034fe6772..33b7a019ea 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -88,7 +88,7 @@ TwitterProto::~TwitterProto()  // *************************
 -DWORD_PTR TwitterProto::GetCaps(int type,HANDLE)
 +DWORD_PTR TwitterProto::GetCaps(int type, HCONTACT)
  {
  	switch(type)
  	{
 @@ -113,7 +113,7 @@ DWORD_PTR TwitterProto::GetCaps(int type,HANDLE)  // *************************
 -int TwitterProto::RecvMsg(HANDLE hContact,PROTORECVEVENT *pre)
 +int TwitterProto::RecvMsg(HCONTACT hContact,PROTORECVEVENT *pre)
  {
  	Proto_RecvMessage(hContact, pre);
  	return 0;
 @@ -123,11 +123,11 @@ int TwitterProto::RecvMsg(HANDLE hContact,PROTORECVEVENT *pre)  struct send_direct
  {
 -	__inline send_direct(HANDLE _hContact, const std::string &_msg, int _msgid) :
 +	__inline send_direct(HCONTACT _hContact, const std::string &_msg, int _msgid) :
  		hContact(_hContact), msg(_msg), msgid(_msgid)
  		{}
 -	HANDLE hContact;
 +	HCONTACT hContact;
  	std::string msg;
  	int msgid;
  };
 @@ -151,7 +151,7 @@ void TwitterProto::SendSuccess(void *p)  	delete data;
  }
 -int TwitterProto::SendMsg(HANDLE hContact,int flags,const char *msg)
 +int TwitterProto::SendMsg(HCONTACT hContact,int flags,const char *msg)
  {
  	if(m_iStatus != ID_STATUS_ONLINE)
  		return 0;
 @@ -246,7 +246,7 @@ INT_PTR TwitterProto::GetStatus(WPARAM,LPARAM)  INT_PTR TwitterProto::ReplyToTweet(WPARAM wParam,LPARAM)
  {
  	// TODO: support replying to tweets instead of just users
 -	HANDLE hContact = reinterpret_cast<HANDLE>(wParam);
 +	HCONTACT hContact = reinterpret_cast<HCONTACT>(wParam);
  	HWND hDlg = CreateDialogParam(g_hInstance,MAKEINTRESOURCE(IDD_TWEET),0,tweet_proc,reinterpret_cast<LPARAM>(this));
 @@ -264,7 +264,7 @@ INT_PTR TwitterProto::ReplyToTweet(WPARAM wParam,LPARAM)  INT_PTR TwitterProto::VisitHomepage(WPARAM wParam,LPARAM)
  {
 -	HANDLE hContact = reinterpret_cast<HANDLE>(wParam);
 +	HCONTACT hContact = reinterpret_cast<HCONTACT>(wParam);
  	DBVARIANT dbv;
  	// TODO: remove this
 @@ -398,7 +398,7 @@ int TwitterProto::OnPreShutdown(WPARAM,LPARAM)  int TwitterProto::OnPrebuildContactMenu(WPARAM wParam,LPARAM)
  {
 -	HANDLE hContact = reinterpret_cast<HANDLE>(wParam);
 +	HCONTACT hContact = reinterpret_cast<HCONTACT>(wParam);
  	if(IsMyContact(hContact))
  		ShowContactMenus(true);
 @@ -495,8 +495,8 @@ void TwitterProto::UpdateSettings()  		if(in_chat_)
  			OnLeaveChat(0,0);
 -		for(HANDLE hContact = db_find_first(m_szModuleName); hContact; ) {
 -			HANDLE hNext = db_find_next(hContact, m_szModuleName);
 +		for(HCONTACT hContact = db_find_first(m_szModuleName); hContact; ) {
 +			HCONTACT hNext = db_find_next(hContact, m_szModuleName);
  			if(isChatRoom(hContact))
  				CallService(MS_DB_CONTACT_DELETE,reinterpret_cast<WPARAM>(hContact),0);
  			hContact = hNext;
 diff --git a/protocols/Twitter/src/proto.h b/protocols/Twitter/src/proto.h index ff10081aed..16739bbfc9 100644 --- a/protocols/Twitter/src/proto.h +++ b/protocols/Twitter/src/proto.h @@ -41,18 +41,18 @@ public:  	virtual	int       __cdecl Authorize(HANDLE);
  	virtual	int       __cdecl AuthDeny(HANDLE,const TCHAR *);
 -	virtual	int       __cdecl AuthRecv(HANDLE,PROTORECVEVENT *);
 -	virtual	int       __cdecl AuthRequest(HANDLE,const TCHAR *);
 +	virtual	int       __cdecl AuthRecv(HCONTACT, PROTORECVEVENT *);
 +	virtual	int       __cdecl AuthRequest(HCONTACT, const TCHAR *);
  	virtual	HANDLE    __cdecl ChangeInfo(int,void *);
 -	virtual	HANDLE    __cdecl FileAllow(HANDLE,HANDLE,const TCHAR *);
 -	virtual	int       __cdecl FileCancel(HANDLE,HANDLE);
 -	virtual	int       __cdecl FileDeny(HANDLE,HANDLE,const TCHAR *);
 -	virtual	int       __cdecl FileResume(HANDLE,int *,const TCHAR **);
 +	virtual	HANDLE    __cdecl FileAllow(HCONTACT, HANDLE, const TCHAR *);
 +	virtual	int       __cdecl FileCancel(HCONTACT, HANDLE);
 +	virtual	int       __cdecl FileDeny(HCONTACT, HANDLE, const TCHAR *);
 +	virtual	int       __cdecl FileResume(HANDLE, int *, const TCHAR **);
 -	virtual	DWORD_PTR __cdecl GetCaps(int,HANDLE = 0);
 -	virtual	int       __cdecl GetInfo(HANDLE,int);
 +	virtual	DWORD_PTR __cdecl GetCaps(int, HCONTACT = 0);
 +	virtual	int       __cdecl GetInfo(HCONTACT, int);
  	virtual	HANDLE    __cdecl SearchBasic(const TCHAR *);
  	virtual	HANDLE    __cdecl SearchByEmail(const TCHAR *);
 @@ -60,24 +60,24 @@ public:  	virtual	HWND      __cdecl SearchAdvanced(HWND);
  	virtual	HWND      __cdecl CreateExtendedSearchUI(HWND);
 -	virtual	int       __cdecl RecvContacts(HANDLE,PROTORECVEVENT *);
 -	virtual	int       __cdecl RecvFile(HANDLE,PROTORECVFILET *);
 -	virtual	int       __cdecl RecvMsg(HANDLE,PROTORECVEVENT *);
 -	virtual	int       __cdecl RecvUrl(HANDLE,PROTORECVEVENT *);
 +	virtual	int       __cdecl RecvContacts(HCONTACT, PROTORECVEVENT *);
 +	virtual	int       __cdecl RecvFile(HCONTACT, PROTORECVFILET *);
 +	virtual	int       __cdecl RecvMsg(HCONTACT, PROTORECVEVENT *);
 +	virtual	int       __cdecl RecvUrl(HCONTACT, PROTORECVEVENT *);
 -	virtual	int       __cdecl SendContacts(HANDLE,int,int,HANDLE *);
 -	virtual	HANDLE    __cdecl SendFile(HANDLE,const TCHAR *,TCHAR **);
 -	virtual	int       __cdecl SendMsg(HANDLE,int,const char *);
 -	virtual	int       __cdecl SendUrl(HANDLE,int,const char *);
 +	virtual	int       __cdecl SendContacts(HCONTACT, int, int, HCONTACT*);
 +	virtual	HANDLE    __cdecl SendFile(HCONTACT, const TCHAR *, TCHAR **);
 +	virtual	int       __cdecl SendMsg(HCONTACT, int, const char *);
 +	virtual	int       __cdecl SendUrl(HCONTACT, int, const char *);
 -	virtual	int       __cdecl SetApparentMode(HANDLE,int);
 +	virtual	int       __cdecl SetApparentMode(HCONTACT, int);
  	virtual	int       __cdecl SetStatus(int);
 -	virtual	HANDLE    __cdecl GetAwayMsg(HANDLE);
 -	virtual	int       __cdecl RecvAwayMsg(HANDLE,int,PROTORECVEVENT *);
 +	virtual	HANDLE    __cdecl GetAwayMsg(HCONTACT);
 +	virtual	int       __cdecl RecvAwayMsg(HCONTACT, int, PROTORECVEVENT *);
  	virtual	int       __cdecl SetAwayMsg(int,const TCHAR *);
 -	virtual	int       __cdecl UserIsTyping(HANDLE,int);
 +	virtual	int       __cdecl UserIsTyping(HCONTACT, int);
  	virtual	int       __cdecl OnEvent(PROTOEVENTTYPE,WPARAM,LPARAM);
 @@ -123,16 +123,16 @@ private:  	void UpdateStatuses(bool pre_read,bool popups, bool tweetToMsg);
  	void UpdateMessages(bool pre_read);
  	void UpdateFriends();
 -	void UpdateAvatar(HANDLE,const std::string &,bool force=false);
 +	void UpdateAvatar(HCONTACT, const std::string &, bool force = false);
  	int ShowPinDialog();
  	void ShowPopup(const wchar_t *, int Error = 0);
  	void ShowPopup(const char *, int Error = 0);
 -	void ShowContactPopup(HANDLE,const std::string &);
 +	void ShowContactPopup(HCONTACT, const std::string &);
 -	bool IsMyContact(HANDLE,bool include_chat = false);
 -	HANDLE UsernameToHContact(const char *);
 -	HANDLE AddToClientList(const char *,const char *);
 +	bool IsMyContact(HCONTACT, bool include_chat = false);
 +	HCONTACT UsernameToHContact(const char *);
 +	HCONTACT AddToClientList(const char *, const char *);
  	void SetAllContactStatuses(int);
  	void debugLogA(TCHAR *fmt,...);
 diff --git a/protocols/Twitter/src/stubs.cpp b/protocols/Twitter/src/stubs.cpp index da781eda1a..c62ae86147 100644 --- a/protocols/Twitter/src/stubs.cpp +++ b/protocols/Twitter/src/stubs.cpp @@ -32,12 +32,12 @@ int TwitterProto::AuthDeny(HANDLE hDbEvent,const TCHAR *reason)  	return 1;
  }
 -int TwitterProto::AuthRecv(HANDLE hContact,PROTORECVEVENT *)
 +int TwitterProto::AuthRecv(HCONTACT hContact,PROTORECVEVENT *)
  {
  	return 1;
  }
 -int TwitterProto::AuthRequest(HANDLE hContact,const TCHAR *message)
 +int TwitterProto::AuthRequest(HCONTACT hContact,const TCHAR *message)
  {
  	return 1;
  }
 @@ -48,17 +48,17 @@ HANDLE TwitterProto::ChangeInfo(int type,void *info_data)  	return NULL;
  }
 -HANDLE TwitterProto::FileAllow(HANDLE hContact,HANDLE hTransfer,const TCHAR *path)
 +HANDLE TwitterProto::FileAllow(HCONTACT hContact,HANDLE hTransfer,const TCHAR *path)
  {
  	return NULL;
  }
 -int TwitterProto::FileCancel(HANDLE hContact,HANDLE hTransfer)
 +int TwitterProto::FileCancel(HCONTACT hContact,HANDLE hTransfer)
  {
  	return 1;
  }
 -int TwitterProto::FileDeny(HANDLE hContact,HANDLE hTransfer,const TCHAR *reason)
 +int TwitterProto::FileDeny(HCONTACT hContact,HANDLE hTransfer,const TCHAR *reason)
  {
  	return 1;
  }
 @@ -83,42 +83,42 @@ HWND TwitterProto::CreateExtendedSearchUI(HWND owner)  	return NULL;
  }
 -int TwitterProto::RecvContacts(HANDLE hContact,PROTORECVEVENT *)
 +int TwitterProto::RecvContacts(HCONTACT hContact,PROTORECVEVENT *)
  {
  	return 1;
  }
 -int TwitterProto::RecvFile(HANDLE hContact,PROTORECVFILET *)
 +int TwitterProto::RecvFile(HCONTACT hContact,PROTORECVFILET *)
  {
  	return 1;
  }
 -int TwitterProto::RecvUrl(HANDLE hContact,PROTORECVEVENT *)
 +int TwitterProto::RecvUrl(HCONTACT hContact,PROTORECVEVENT *)
  {
  	return 1;
  }
 -int TwitterProto::SendContacts(HANDLE hContact,int flags,int nContacts,HANDLE *hContactsList)
 +int TwitterProto::SendContacts(HCONTACT hContact, int flags, int nContacts, HCONTACT *hContactsList)
  {
  	return 1;
  }
 -HANDLE TwitterProto::SendFile(HANDLE hContact,const TCHAR *desc, TCHAR **files)
 +HANDLE TwitterProto::SendFile(HCONTACT hContact,const TCHAR *desc, TCHAR **files)
  {
  	return NULL;
  }
 -int TwitterProto::SendUrl(HANDLE hContact,int flags,const char *url)
 +int TwitterProto::SendUrl(HCONTACT hContact,int flags,const char *url)
  {
  	return 1;
  }
 -int TwitterProto::SetApparentMode(HANDLE hContact,int mode)
 +int TwitterProto::SetApparentMode(HCONTACT hContact,int mode)
  {
  	return 1;
  }
 -int TwitterProto::RecvAwayMsg(HANDLE hContact,int mode,PROTORECVEVENT *evt)
 +int TwitterProto::RecvAwayMsg(HCONTACT hContact,int mode,PROTORECVEVENT *evt)
  {
  	return 1;
  }
 @@ -128,7 +128,7 @@ int TwitterProto::SetAwayMsg(int status,const TCHAR *msg)  	return 1;
  }
 -int TwitterProto::UserIsTyping(HANDLE hContact,int type)
 +int TwitterProto::UserIsTyping(HCONTACT hContact,int type)
  {
  	return 1;
  }
\ No newline at end of file diff --git a/protocols/Twitter/src/theme.cpp b/protocols/Twitter/src/theme.cpp index 196905b5aa..9d8de71c0e 100644 --- a/protocols/Twitter/src/theme.cpp +++ b/protocols/Twitter/src/theme.cpp @@ -52,7 +52,7 @@ static HGENMENU g_hMenuItems[2];  static HANDLE g_hMenuEvts[3];
  // Helper functions
 -static TwitterProto * GetInstanceByHContact(HANDLE hContact)
 +static TwitterProto * GetInstanceByHContact(HCONTACT hContact)
  {
  	char *proto = GetContactProto(hContact);
  	if(!proto)
 @@ -68,7 +68,7 @@ static TwitterProto * GetInstanceByHContact(HANDLE hContact)  template<INT_PTR (__cdecl TwitterProto::*Fcn)(WPARAM,LPARAM)>
  INT_PTR GlobalService(WPARAM wParam,LPARAM lParam)
  {
 -	TwitterProto *proto = GetInstanceByHContact(reinterpret_cast<HANDLE>(wParam));
 +	TwitterProto *proto = GetInstanceByHContact(reinterpret_cast<HCONTACT>(wParam));
  	return proto ? (proto->*Fcn)(wParam,lParam) : 0;
  }
 @@ -76,7 +76,7 @@ static int PrebuildContactMenu(WPARAM wParam,LPARAM lParam)  {
  	ShowContactMenus(false);
 -	TwitterProto *proto = GetInstanceByHContact(reinterpret_cast<HANDLE>(wParam));
 +	TwitterProto *proto = GetInstanceByHContact(reinterpret_cast<HCONTACT>(wParam));
  	return proto ? proto->OnPrebuildContactMenu(wParam,lParam) : 0;
  }
 diff --git a/protocols/Twitter/src/ui.cpp b/protocols/Twitter/src/ui.cpp index 97441b186f..91c5f96ec5 100644 --- a/protocols/Twitter/src/ui.cpp +++ b/protocols/Twitter/src/ui.cpp @@ -385,7 +385,7 @@ namespace popup_options  		POPUPDATAT popup = {};
  		// Pick a random contact
 -		HANDLE hContact = 0;
 +		HCONTACT hContact = 0;
  		int n_contacts = (int)CallService(MS_DB_CONTACT_GETCOUNT,0,0);
  		if(n_contacts != 0)
  | 
