summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-09-06 14:02:16 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-09-06 14:02:16 +0000
commit89b5feca3ec270bf1312b108810f95cafa3b6be1 (patch)
treeeb05a74f31ab1696c49dd91dcb0236543391c116
parent5e64b724fd1b4b889f78c29d1583c886d4fbd818 (diff)
cosmetic fix for the parameter name
git-svn-id: http://svn.miranda-ng.org/main/trunk@1538 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--protocols/AimOscar/proto.cpp4
-rw-r--r--protocols/AimOscar/proto.h4
-rw-r--r--protocols/Gadu-Gadu/gg_proto.cpp7
-rw-r--r--protocols/Gadu-Gadu/gg_proto.h4
-rw-r--r--protocols/JabberG/jabber_proto.cpp44
-rw-r--r--protocols/JabberG/jabber_proto.h4
-rw-r--r--protocols/Omegle/stubs.cpp4
-rw-r--r--protocols/Twitter/stubs.cpp6
-rw-r--r--protocols/Yahoo/proto.h4
9 files changed, 40 insertions, 41 deletions
diff --git a/protocols/AimOscar/proto.cpp b/protocols/AimOscar/proto.cpp
index b79f95927c..fa8d40c564 100644
--- a/protocols/AimOscar/proto.cpp
+++ b/protocols/AimOscar/proto.cpp
@@ -158,7 +158,7 @@ HANDLE __cdecl CAimProto::AddToListByEvent(int flags, int iContact, HANDLE hDbEv
////////////////////////////////////////////////////////////////////////////////////////
// AuthAllow - processes the successful authorization
-int CAimProto::Authorize(HANDLE hContact)
+int CAimProto::Authorize(HANDLE hDbEvent)
{
return 0;
}
@@ -166,7 +166,7 @@ int CAimProto::Authorize(HANDLE hContact)
////////////////////////////////////////////////////////////////////////////////////////
// AuthDeny - handles the unsuccessful authorization
-int CAimProto::AuthDeny(HANDLE hContact, const TCHAR* szReason)
+int CAimProto::AuthDeny(HANDLE hDbEvent, const TCHAR* szReason)
{
return 0;
}
diff --git a/protocols/AimOscar/proto.h b/protocols/AimOscar/proto.h
index 5028ad868f..bb4dc3c601 100644
--- a/protocols/AimOscar/proto.h
+++ b/protocols/AimOscar/proto.h
@@ -39,8 +39,8 @@ struct CAimProto : public PROTO_INTERFACE, public MZeroedObject
virtual HANDLE __cdecl AddToList( int flags, PROTOSEARCHRESULT* psr );
virtual HANDLE __cdecl AddToListByEvent( int flags, int iContact, HANDLE hDbEvent );
- virtual int __cdecl Authorize( HANDLE hContact );
- virtual int __cdecl AuthDeny( HANDLE hContact, const TCHAR* szReason );
+ virtual int __cdecl Authorize( HANDLE hDbEvent );
+ virtual int __cdecl AuthDeny( HANDLE hDbEvent, const TCHAR* szReason );
virtual int __cdecl AuthRecv( HANDLE hContact, PROTORECVEVENT* );
virtual int __cdecl AuthRequest( HANDLE hContact, const TCHAR* szMessage );
diff --git a/protocols/Gadu-Gadu/gg_proto.cpp b/protocols/Gadu-Gadu/gg_proto.cpp
index 9eade571d3..5342193547 100644
--- a/protocols/Gadu-Gadu/gg_proto.cpp
+++ b/protocols/Gadu-Gadu/gg_proto.cpp
@@ -125,8 +125,8 @@ GGPROTO::~GGPROTO()
// Dummies for function that have to be implemented
HANDLE GGPROTO::AddToListByEvent(int flags, int iContact, HANDLE hDbEvent) { return NULL; }
-int GGPROTO::Authorize(HANDLE hContact) { return 0; }
-int GGPROTO::AuthDeny(HANDLE hContact, const TCHAR *szReason) { return 0; }
+int GGPROTO::Authorize(HANDLE hDbEvent) { return 0; }
+int GGPROTO::AuthDeny(HANDLE hDbEvent, const TCHAR *szReason) { return 0; }
int GGPROTO::AuthRecv(HANDLE hContact, PROTORECVEVENT *pre) { return 0; }
int GGPROTO::AuthRequest(HANDLE hContact, const TCHAR *szMessage) { return 0; }
HANDLE GGPROTO::ChangeInfo(int iInfoType, void *pInfoData) { return NULL; }
@@ -535,7 +535,7 @@ static INT_PTR CALLBACK gg_advancedsearchdlgproc(HWND hwndDlg,UINT message,WPARA
SendDlgItemMessage(hwndDlg, IDC_GENDER, CB_ADDSTRING, 0, (LPARAM)TranslateT("Female")); // 1
SendDlgItemMessage(hwndDlg, IDC_GENDER, CB_ADDSTRING, 0, (LPARAM)TranslateT("Male")); // 2
return TRUE;
-
+
case WM_COMMAND:
switch(LOWORD(wParam)) {
case IDOK:
@@ -803,4 +803,3 @@ int GGPROTO::OnEvent(PROTOEVENTTYPE eventType, WPARAM wParam, LPARAM lParam)
}
return TRUE;
}
-
diff --git a/protocols/Gadu-Gadu/gg_proto.h b/protocols/Gadu-Gadu/gg_proto.h
index 4d1e1d6fd8..8765392328 100644
--- a/protocols/Gadu-Gadu/gg_proto.h
+++ b/protocols/Gadu-Gadu/gg_proto.h
@@ -39,8 +39,8 @@ struct GGPROTO : public PROTO_INTERFACE, public MZeroedObject
virtual HANDLE __cdecl AddToList( int flags, PROTOSEARCHRESULT* psr );
virtual HANDLE __cdecl AddToListByEvent( int flags, int iContact, HANDLE hDbEvent );
- virtual int __cdecl Authorize( HANDLE hContact );
- virtual int __cdecl AuthDeny( HANDLE hContact, const TCHAR* szReason );
+ virtual int __cdecl Authorize( HANDLE hDbEvent );
+ virtual int __cdecl AuthDeny( HANDLE hDbEvent, const TCHAR* szReason );
virtual int __cdecl AuthRecv( HANDLE hContact, PROTORECVEVENT* );
virtual int __cdecl AuthRequest( HANDLE hContact, const TCHAR* szMessage );
diff --git a/protocols/JabberG/jabber_proto.cpp b/protocols/JabberG/jabber_proto.cpp
index 8369570506..0139bdf0eb 100644
--- a/protocols/JabberG/jabber_proto.cpp
+++ b/protocols/JabberG/jabber_proto.cpp
@@ -210,7 +210,7 @@ CJabberProto::CJabberProto( const char* aProtoName, const TCHAR* aUserName ) :
JFreeVariant(&dbv);
JDeleteSetting(NULL, "Password");
}
-
+
CleanLastResourceMap();
}
@@ -468,7 +468,7 @@ HANDLE __cdecl CJabberProto::AddToListByEvent( int flags, int /*iContact*/, HAND
////////////////////////////////////////////////////////////////////////////////////////
// JabberAuthAllow - processes the successful authorization
-int CJabberProto::Authorize( HANDLE hContact )
+int CJabberProto::Authorize( HANDLE hDbEvent )
{
DBEVENTINFO dbei;
char* nick, *firstName, *lastName, *jid;
@@ -478,18 +478,18 @@ int CJabberProto::Authorize( HANDLE hContact )
memset( &dbei, 0, sizeof( dbei ));
dbei.cbSize = sizeof( dbei );
- if (( dbei.cbBlob=JCallService( MS_DB_EVENT_GETBLOBSIZE, ( WPARAM )hContact, 0 )) == ( DWORD )( -1 ))
+ if (( dbei.cbBlob=JCallService( MS_DB_EVENT_GETBLOBSIZE, ( WPARAM )hDbEvent, 0 )) == ( DWORD )( -1 ))
return 1;
if (( dbei.pBlob=( PBYTE )alloca( dbei.cbBlob )) == NULL )
return 1;
- if ( JCallService( MS_DB_EVENT_GET, ( WPARAM )hContact, ( LPARAM )&dbei ))
+ if ( JCallService( MS_DB_EVENT_GET, ( WPARAM )hDbEvent, ( LPARAM )&dbei ))
return 1;
if ( dbei.eventType != EVENTTYPE_AUTHREQUEST )
return 1;
if ( strcmp( dbei.szModule, m_szModuleName ))
return 1;
- nick = ( char* )( dbei.pBlob + sizeof( DWORD )+ sizeof( HANDLE ));
+ nick = ( char* )(dbei.pBlob + sizeof(DWORD)*2);
firstName = nick + strlen( nick ) + 1;
lastName = firstName + strlen( firstName ) + 1;
jid = lastName + strlen( lastName ) + 1;
@@ -576,12 +576,12 @@ int __cdecl CJabberProto::AuthRecv( HANDLE, PROTORECVEVENT* )
// PSS_AUTHREQUEST
int __cdecl CJabberProto::AuthRequest( HANDLE, const TCHAR* )
-{
+{
return 1;
}
////////////////////////////////////////////////////////////////////////////////////////
-// ChangeInfo
+// ChangeInfo
HANDLE __cdecl CJabberProto::ChangeInfo( int /*iInfoType*/, void* )
{
@@ -730,7 +730,7 @@ HICON __cdecl CJabberProto::GetIcon( int iconIndex )
{
if (iconIndex & PLIF_ICOLIBHANDLE)
return (HICON)GetIconHandle(IDI_JABBER);
-
+
bool big = (iconIndex & PLIF_SMALL) == 0;
HICON hIcon = LoadIconEx("main", big);
@@ -886,7 +886,7 @@ HANDLE __cdecl CJabberProto::SearchBasic( const TCHAR* szJid )
numericjid = (*i >= '0') && (*i <= '9');
mir_free( szServer );
- szServer = JGetStringT( NULL, "LoginServer" );
+ szServer = JGetStringT( NULL, "LoginServer" );
if ( !szServer )
{
szServer = mir_tstrdup( _T( "jabber.org" ));
@@ -922,7 +922,7 @@ HANDLE __cdecl CJabberProto::SearchByEmail( const TCHAR* email )
int iqId = SerialNext();
IqAdd( iqId, IQ_PROC_GETSEARCH, &CJabberProto::OnIqResultSetSearch );
- m_ThreadInfo->send( XmlNodeIq( _T("set"), iqId, _A2T(szServerName)) << XQUERY( _T("jabber:iq:search"))
+ m_ThreadInfo->send( XmlNodeIq( _T("set"), iqId, _A2T(szServerName)) << XQUERY( _T("jabber:iq:search"))
<< XCHILD( _T("email"), email));
return ( HANDLE )iqId;
}
@@ -1047,7 +1047,7 @@ int __cdecl CJabberProto::SendContacts( HANDLE hContact, int flags, int nContact
for ( int i = 0; i < nContacts; ++i ) {
if (!JGetStringT( hContactsList[i], "jid", &dbv )) {
- x << XCHILD( _T("item")) << XATTR( _T("action"), _T("add")) <<
+ x << XCHILD( _T("item")) << XATTR( _T("action"), _T("add")) <<
XATTR( _T("jid"), dbv.ptszVal);
JFreeVariant( &dbv );
}
@@ -1159,7 +1159,7 @@ HANDLE __cdecl CJabberProto::SendFile( HANDLE hContact, const TCHAR* szDescripti
struct TFakeAckParams
{
- inline TFakeAckParams( HANDLE p1, const char* p2 )
+ inline TFakeAckParams( HANDLE p1, const char* p2 )
: hContact( p1 ), msg( p2 ) {}
HANDLE hContact;
@@ -1171,8 +1171,8 @@ void __cdecl CJabberProto::SendMessageAckThread( void* param )
TFakeAckParams *par = ( TFakeAckParams* )param;
Sleep( 100 );
Log( "Broadcast ACK" );
- JSendBroadcast( par->hContact, ACKTYPE_MESSAGE,
- par->msg ? ACKRESULT_FAILED : ACKRESULT_SUCCESS,
+ JSendBroadcast( par->hContact, ACKTYPE_MESSAGE,
+ par->msg ? ACKRESULT_FAILED : ACKRESULT_SUCCESS,
( HANDLE ) 1, ( LPARAM ) par->msg );
Log( "Returning from thread" );
delete par;
@@ -1208,9 +1208,9 @@ int __cdecl CJabberProto::SendMsg( HANDLE hContact, int flags, const char* pszSr
else isEncrypted = 0;
if ( flags & PREF_UTF ) {
-
+
mir_utf8decode( NEWSTR_ALLOCA( pszSrc ), &msg );
-
+
}
else if ( flags & PREF_UNICODE )
msg = mir_u2t(( wchar_t* )&pszSrc[ strlen( pszSrc )+1 ] );
@@ -1308,7 +1308,7 @@ int __cdecl CJabberProto::SetApparentMode( HANDLE hContact, int mode )
{
if ( mode != 0 && mode != ID_STATUS_ONLINE && mode != ID_STATUS_OFFLINE )
return 1;
-
+
int oldMode = JGetWord( hContact, "ApparentMode", 0 );
if ( mode == oldMode )
return 1;
@@ -1349,7 +1349,7 @@ int __cdecl CJabberProto::SetApparentMode( HANDLE hContact, int mode )
int __cdecl CJabberProto::SetStatus( int iNewStatus )
{
- if (m_iDesiredStatus == iNewStatus)
+ if (m_iDesiredStatus == iNewStatus)
return 0;
int oldStatus = m_iStatus;
@@ -1458,7 +1458,7 @@ HANDLE __cdecl CJabberProto::GetAwayMsg( HANDLE hContact )
// PSR_AWAYMSG
int __cdecl CJabberProto::RecvAwayMsg( HANDLE /*hContact*/, int /*statusMode*/, PROTORECVEVENT* )
-{
+{
return 1;
}
@@ -1466,7 +1466,7 @@ int __cdecl CJabberProto::RecvAwayMsg( HANDLE /*hContact*/, int /*statusMode*/,
// PSS_AWAYMSG
int __cdecl CJabberProto::SendAwayMsg( HANDLE /*hContact*/, HANDLE /*hProcess*/, const char* )
-{
+{
return 1;
}
@@ -1642,7 +1642,7 @@ int __cdecl CJabberProto::OnEvent( PROTOEVENTTYPE eventType, WPARAM wParam, LPAR
case EV_PROTO_ONRENAME:
if ( m_hMenuRoot )
- {
+ {
CLISTMENUITEM clmi = { 0 };
clmi.cbSize = sizeof(CLISTMENUITEM);
clmi.flags = CMIM_NAME | CMIF_TCHAR | CMIF_KEEPUNTRANSLATED;
@@ -1656,6 +1656,6 @@ int __cdecl CJabberProto::OnEvent( PROTOEVENTTYPE eventType, WPARAM wParam, LPAR
case EV_PROTO_DBSETTINGSCHANGED:
return OnDbSettingChanged(wParam, lParam);
- }
+ }
return 1;
}
diff --git a/protocols/JabberG/jabber_proto.h b/protocols/JabberG/jabber_proto.h
index c677b5a167..eff59bb002 100644
--- a/protocols/JabberG/jabber_proto.h
+++ b/protocols/JabberG/jabber_proto.h
@@ -158,8 +158,8 @@ struct CJabberProto : public PROTO_INTERFACE, public MZeroedObject
virtual HANDLE __cdecl AddToList( int flags, PROTOSEARCHRESULT* psr );
virtual HANDLE __cdecl AddToListByEvent( int flags, int iContact, HANDLE hDbEvent );
- virtual int __cdecl Authorize( HANDLE hContact );
- virtual int __cdecl AuthDeny( HANDLE hContact, const TCHAR* szReason );
+ virtual int __cdecl Authorize( HANDLE hDbEvent );
+ virtual int __cdecl AuthDeny( HANDLE hDbEvent, const TCHAR* szReason );
virtual int __cdecl AuthRecv( HANDLE hContact, PROTORECVEVENT* );
virtual int __cdecl AuthRequest( HANDLE hContact, const TCHAR* szMessage );
diff --git a/protocols/Omegle/stubs.cpp b/protocols/Omegle/stubs.cpp
index 24354c49bc..825c60ac8c 100644
--- a/protocols/Omegle/stubs.cpp
+++ b/protocols/Omegle/stubs.cpp
@@ -32,12 +32,12 @@ HANDLE OmegleProto::AddToListByEvent(int flags,int iContact,HANDLE hDbEvent)
return 0;
};
-int OmegleProto::Authorize(HANDLE hContact)
+int OmegleProto::Authorize(HANDLE hDbEvent)
{
return 0;
}
-int OmegleProto::AuthDeny(HANDLE hContact,const PROTOCHAR *reason)
+int OmegleProto::AuthDeny(HANDLE hDbEvent,const PROTOCHAR *reason)
{
return 0;
}
diff --git a/protocols/Twitter/stubs.cpp b/protocols/Twitter/stubs.cpp
index 1bf2dcbdd0..6dabe5ec76 100644
--- a/protocols/Twitter/stubs.cpp
+++ b/protocols/Twitter/stubs.cpp
@@ -22,12 +22,12 @@ HANDLE TwitterProto::AddToListByEvent(int flags,int iContact,HANDLE hDbEvent)
return 0;
}
-int TwitterProto::Authorize(HANDLE hContact)
+int TwitterProto::Authorize(HANDLE hDbEvent)
{
return 0;
}
-int TwitterProto::AuthDeny(HANDLE hContact,const TCHAR *reason)
+int TwitterProto::AuthDeny(HANDLE hDbEvent,const TCHAR *reason)
{
return 0;
}
@@ -134,6 +134,6 @@ int TwitterProto::SetAwayMsg(int status,const TCHAR *msg)
}
int TwitterProto::UserIsTyping(HANDLE hContact,int type)
-{
+{
return 0;
} \ No newline at end of file
diff --git a/protocols/Yahoo/proto.h b/protocols/Yahoo/proto.h
index d8c72dadb1..e40c465632 100644
--- a/protocols/Yahoo/proto.h
+++ b/protocols/Yahoo/proto.h
@@ -45,8 +45,8 @@ struct CYahooProto : public PROTO_INTERFACE, public MZeroedObject
virtual HANDLE __cdecl AddToList( int flags, PROTOSEARCHRESULT* psr );
virtual HANDLE __cdecl AddToListByEvent( int flags, int iContact, HANDLE hDbEvent );
- virtual int __cdecl Authorize( HANDLE hContact );
- virtual int __cdecl AuthDeny( HANDLE hContact, const TCHAR* szReason );
+ virtual int __cdecl Authorize( HANDLE hDbEvent );
+ virtual int __cdecl AuthDeny( HANDLE hDbEvent, const TCHAR* szReason );
virtual int __cdecl AuthRecv( HANDLE hContact, PROTORECVEVENT* );
virtual int __cdecl AuthRequest( HANDLE hContact, const TCHAR* szMessage );