summaryrefslogtreecommitdiff
path: root/protocols/Omegle
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-03-22 23:05:16 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-03-22 23:05:16 +0000
commit12d71cc476065d21cc53321cf5ea57e29b4cc124 (patch)
tree4bcdf851b81c80012c8382abd37bfd22311150f3 /protocols/Omegle
parent23e051890486c96ce377b6578a028b9f8787c338 (diff)
- PROTO_INTERFACE got the default implementation;
- all unneeded stubs removed from all protocols git-svn-id: http://svn.miranda-ng.org/main/trunk@12481 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Omegle')
-rw-r--r--protocols/Omegle/omegle_10.vcxproj1
-rw-r--r--protocols/Omegle/omegle_10.vcxproj.filters3
-rw-r--r--protocols/Omegle/omegle_12.vcxproj1
-rw-r--r--protocols/Omegle/omegle_12.vcxproj.filters3
-rw-r--r--protocols/Omegle/src/proto.cpp2
-rw-r--r--protocols/Omegle/src/proto.h32
-rw-r--r--protocols/Omegle/src/stubs.cpp158
7 files changed, 0 insertions, 200 deletions
diff --git a/protocols/Omegle/omegle_10.vcxproj b/protocols/Omegle/omegle_10.vcxproj
index 91eedf99fa..059aabe645 100644
--- a/protocols/Omegle/omegle_10.vcxproj
+++ b/protocols/Omegle/omegle_10.vcxproj
@@ -185,7 +185,6 @@
<ClCompile Include="src\messages.cpp" />
<ClCompile Include="src\proto.cpp" />
<ClCompile Include="src\main.cpp" />
- <ClCompile Include="src\stubs.cpp" />
<ClCompile Include="src\theme.cpp" />
<ClCompile Include="src\utils.cpp" />
</ItemGroup>
diff --git a/protocols/Omegle/omegle_10.vcxproj.filters b/protocols/Omegle/omegle_10.vcxproj.filters
index 55ba1610e8..f789bbdbea 100644
--- a/protocols/Omegle/omegle_10.vcxproj.filters
+++ b/protocols/Omegle/omegle_10.vcxproj.filters
@@ -36,9 +36,6 @@
<ClCompile Include="src\proto.cpp">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="src\stubs.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
<ClCompile Include="src\theme.cpp">
<Filter>Source Files</Filter>
</ClCompile>
diff --git a/protocols/Omegle/omegle_12.vcxproj b/protocols/Omegle/omegle_12.vcxproj
index e8fb2237d7..6b19b04fa7 100644
--- a/protocols/Omegle/omegle_12.vcxproj
+++ b/protocols/Omegle/omegle_12.vcxproj
@@ -188,7 +188,6 @@
<ClCompile Include="src\messages.cpp" />
<ClCompile Include="src\proto.cpp" />
<ClCompile Include="src\main.cpp" />
- <ClCompile Include="src\stubs.cpp" />
<ClCompile Include="src\theme.cpp" />
<ClCompile Include="src\utils.cpp" />
</ItemGroup>
diff --git a/protocols/Omegle/omegle_12.vcxproj.filters b/protocols/Omegle/omegle_12.vcxproj.filters
index 448fa96ba4..aecb742869 100644
--- a/protocols/Omegle/omegle_12.vcxproj.filters
+++ b/protocols/Omegle/omegle_12.vcxproj.filters
@@ -36,9 +36,6 @@
<ClCompile Include="src\proto.cpp">
<Filter>Source Files</Filter>
</ClCompile>
- <ClCompile Include="src\stubs.cpp">
- <Filter>Source Files</Filter>
- </ClCompile>
<ClCompile Include="src\theme.cpp">
<Filter>Source Files</Filter>
</ClCompile>
diff --git a/protocols/Omegle/src/proto.cpp b/protocols/Omegle/src/proto.cpp
index a1112ae7db..5dab83480b 100644
--- a/protocols/Omegle/src/proto.cpp
+++ b/protocols/Omegle/src/proto.cpp
@@ -206,8 +206,6 @@ int OmegleProto::OnPreShutdown(WPARAM wParam,LPARAM lParam)
int OmegleProto::OnContactDeleted(WPARAM wparam,LPARAM)
{
- //MCONTACT hContact = (MCONTACT)wparam;
-
OnLeaveChat(NULL, NULL);
return 0;
}
diff --git a/protocols/Omegle/src/proto.h b/protocols/Omegle/src/proto.h
index 9c6fc833d0..697bb4cd52 100644
--- a/protocols/Omegle/src/proto.h
+++ b/protocols/Omegle/src/proto.h
@@ -44,45 +44,13 @@ public:
}
// PROTO_INTERFACE
- virtual MCONTACT __cdecl AddToList( int flags, PROTOSEARCHRESULT* psr );
- virtual MCONTACT __cdecl AddToListByEvent( int flags, int iContact, MEVENT hDbEvent );
-
- virtual int __cdecl Authorize( MEVENT hDbEvent );
- virtual int __cdecl AuthDeny( MEVENT hDbEvent, const PROTOCHAR* szReason );
- virtual int __cdecl AuthRecv( MCONTACT hContact, PROTORECVEVENT* );
- virtual int __cdecl AuthRequest( MCONTACT hContact, const PROTOCHAR* szMessage );
-
- virtual HANDLE __cdecl FileAllow( MCONTACT hContact, HANDLE hTransfer, const PROTOCHAR* szPath );
- virtual int __cdecl FileCancel( MCONTACT hContact, HANDLE hTransfer );
- virtual int __cdecl FileDeny( MCONTACT hContact, HANDLE hTransfer, const PROTOCHAR* szReason );
- virtual int __cdecl FileResume( HANDLE hTransfer, int* action, const PROTOCHAR** szFilename );
virtual DWORD_PTR __cdecl GetCaps( int type, MCONTACT hContact = NULL );
- virtual int __cdecl GetInfo( MCONTACT hContact, int infoType );
-
- virtual HANDLE __cdecl SearchBasic( const PROTOCHAR* id );
- virtual HANDLE __cdecl SearchByEmail( const PROTOCHAR* email );
- virtual HANDLE __cdecl SearchByName( const PROTOCHAR* nick, const PROTOCHAR* firstName, const PROTOCHAR* lastName );
- virtual HWND __cdecl SearchAdvanced( HWND owner );
- virtual HWND __cdecl CreateExtendedSearchUI( HWND owner );
- virtual int __cdecl RecvContacts( MCONTACT hContact, PROTORECVEVENT* );
- virtual int __cdecl RecvFile( MCONTACT hContact, PROTOFILEEVENT* );
- virtual int __cdecl RecvMsg( MCONTACT hContact, PROTORECVEVENT* );
- virtual int __cdecl RecvUrl( MCONTACT hContact, PROTORECVEVENT* );
-
- virtual int __cdecl SendContacts( MCONTACT hContact, int flags, int nContacts, MCONTACT *hContactsList );
- virtual HANDLE __cdecl SendFile( MCONTACT hContact, const PROTOCHAR* szDescription, PROTOCHAR** ppszFiles );
virtual int __cdecl SendMsg( MCONTACT hContact, int flags, const char* msg );
- virtual int __cdecl SendUrl( MCONTACT hContact, int flags, const char* url );
- virtual int __cdecl SetApparentMode( MCONTACT hContact, int mode );
virtual int __cdecl SetStatus( int iNewStatus );
- virtual HANDLE __cdecl GetAwayMsg( MCONTACT hContact );
- virtual int __cdecl RecvAwayMsg( MCONTACT hContact, int mode, PROTORECVEVENT* evt );
- virtual int __cdecl SetAwayMsg( int iStatus, const PROTOCHAR* msg );
-
virtual int __cdecl UserIsTyping( MCONTACT hContact, int type );
virtual int __cdecl OnEvent( PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam );
diff --git a/protocols/Omegle/src/stubs.cpp b/protocols/Omegle/src/stubs.cpp
deleted file mode 100644
index 3242e4fdeb..0000000000
--- a/protocols/Omegle/src/stubs.cpp
+++ /dev/null
@@ -1,158 +0,0 @@
-/*
-
-Omegle plugin for Miranda Instant Messenger
-_____________________________________________
-
-Copyright © 2011-15 Robert Pösel
-
-This program is free software: you can redistribute it and/or modify
-it under the terms of the GNU General Public License as published by
-the Free Software Foundation, either version 2 of the License, or
-(at your option) any later version.
-
-This program is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-GNU General Public License for more details.
-
-You should have received a copy of the GNU General Public License
-along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-*/
-
-#include "common.h"
-
-MCONTACT OmegleProto::AddToList(int flags, PROTOSEARCHRESULT* psr)
-{
- return NULL;
-};
-
-MCONTACT OmegleProto::AddToListByEvent(int flags,int iContact,MEVENT hDbEvent)
-{
- return NULL;
-};
-
-int OmegleProto::Authorize(MEVENT hDbEvent)
-{
- return 1;
-}
-
-int OmegleProto::AuthDeny(MEVENT hDbEvent,const PROTOCHAR *reason)
-{
- return 1;
-}
-
-int OmegleProto::AuthRecv(MCONTACT hContact,PROTORECVEVENT *)
-{
- return 1;
-}
-
-int OmegleProto::AuthRequest(MCONTACT hContact,const PROTOCHAR *message)
-{
- return 1;
-}
-
-HANDLE OmegleProto::FileAllow(MCONTACT hContact,HANDLE hTransfer,const PROTOCHAR *path)
-{
- return NULL;
-}
-
-int OmegleProto::FileCancel(MCONTACT hContact,HANDLE hTransfer)
-{
- return 1;
-}
-
-int OmegleProto::FileDeny(MCONTACT hContact,HANDLE hTransfer,const PROTOCHAR *reason)
-{
- return 1;
-}
-
-int OmegleProto::FileResume(HANDLE hTransfer,int *action,const PROTOCHAR **filename)
-{
- return 1;
-}
-
-int OmegleProto::GetInfo( MCONTACT hContact, int infoType )
-{
- return 1;
-}
-
-HANDLE OmegleProto::SearchBasic( const PROTOCHAR* id )
-{
- return NULL;
-}
-
-HANDLE OmegleProto::SearchByEmail( const PROTOCHAR* email )
-{
- return NULL;
-}
-
-HANDLE OmegleProto::SearchByName( const PROTOCHAR* nick, const PROTOCHAR* firstName, const PROTOCHAR* lastName )
-{
- return NULL;
-}
-
-HWND OmegleProto::SearchAdvanced(HWND owner)
-{
- return NULL;
-}
-
-HWND OmegleProto::CreateExtendedSearchUI(HWND owner)
-{
- return NULL;
-}
-
-int OmegleProto::RecvContacts(MCONTACT hContact,PROTORECVEVENT *)
-{
- return 1;
-}
-
-int OmegleProto::RecvFile(MCONTACT hContact,PROTORECVFILET *)
-{
- return 1;
-}
-
-int OmegleProto::RecvUrl(MCONTACT hContact,PROTORECVEVENT *)
-{
- return 1;
-}
-
-int OmegleProto::SendContacts(MCONTACT hContact,int flags,int nContacts,MCONTACT *hContactsList)
-{
- return 1;
-}
-
-HANDLE OmegleProto::SendFile(MCONTACT hContact,const PROTOCHAR *desc, PROTOCHAR **files)
-{
- return NULL;
-}
-
-int OmegleProto::SendUrl(MCONTACT hContact,int flags,const char *url)
-{
- return 1;
-}
-
-int OmegleProto::SetApparentMode(MCONTACT hContact,int mode)
-{
- return 1;
-}
-
-int OmegleProto::RecvAwayMsg(MCONTACT hContact,int mode,PROTORECVEVENT *evt)
-{
- return 1;
-}
-
-int OmegleProto::SetAwayMsg(int iStatus, const PROTOCHAR* msg)
-{
- return 1;
-}
-
-HANDLE OmegleProto::GetAwayMsg( MCONTACT hContact )
-{
- return NULL;
-}
-
-int OmegleProto::RecvMsg(MCONTACT hContact, PROTORECVEVENT *pre)
-{
- return 1;
-}