From bdbdf8d3391d2da3df0d4eeabac41fa73aa821fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 20 Oct 2015 10:13:30 +0000 Subject: Omegle: Format sources git-svn-id: http://svn.miranda-ng.org/main/trunk@15579 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Omegle/src/proto.h | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) (limited to 'protocols/Omegle/src/proto.h') diff --git a/protocols/Omegle/src/proto.h b/protocols/Omegle/src/proto.h index 6af68ff566..d84b25e142 100644 --- a/protocols/Omegle/src/proto.h +++ b/protocols/Omegle/src/proto.h @@ -22,52 +22,52 @@ along with this program. If not, see . #pragma once -class OmegleProto : public PROTO +class OmegleProto : public PROTO < OmegleProto > { public: - OmegleProto( const char *proto_name, const TCHAR *username ); - ~OmegleProto( ); + OmegleProto(const char *proto_name, const TCHAR *username); + ~OmegleProto(); - inline const char* ModuleName( ) const + inline const char* ModuleName() const { return m_szModuleName; } - inline bool isOnline( ) + inline bool isOnline() { - return ( m_iStatus != ID_STATUS_OFFLINE && m_iStatus != ID_STATUS_CONNECTING ); + return (m_iStatus != ID_STATUS_OFFLINE && m_iStatus != ID_STATUS_CONNECTING); } - inline bool isOffline( ) + inline bool isOffline() { - return ( m_iStatus == ID_STATUS_OFFLINE ); + return (m_iStatus == ID_STATUS_OFFLINE); } // PROTO_INTERFACE - virtual DWORD_PTR __cdecl GetCaps( int type, MCONTACT hContact = NULL ); + virtual DWORD_PTR __cdecl GetCaps(int type, MCONTACT hContact = NULL); - virtual int __cdecl SetStatus( int iNewStatus ); + virtual int __cdecl SetStatus(int iNewStatus); - virtual int __cdecl UserIsTyping( MCONTACT hContact, int type ); + virtual int __cdecl UserIsTyping(MCONTACT hContact, int type); - virtual int __cdecl OnEvent( PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam ); + virtual int __cdecl OnEvent(PROTOEVENTTYPE iEventType, WPARAM wParam, LPARAM lParam); // Services - INT_PTR __cdecl SvcCreateAccMgrUI( WPARAM, LPARAM ); + INT_PTR __cdecl SvcCreateAccMgrUI(WPARAM, LPARAM); // Events int __cdecl OnModulesLoaded(WPARAM, LPARAM); int __cdecl OnOptionsInit(WPARAM, LPARAM); - int __cdecl OnContactDeleted(WPARAM,LPARAM); - int __cdecl OnPreShutdown(WPARAM,LPARAM); - int __cdecl OnPrebuildContactMenu(WPARAM,LPARAM); + int __cdecl OnContactDeleted(WPARAM, LPARAM); + int __cdecl OnPreShutdown(WPARAM, LPARAM); + int __cdecl OnPrebuildContactMenu(WPARAM, LPARAM); // Chat handling - int __cdecl OnChatEvent(WPARAM,LPARAM); - INT_PTR __cdecl OnJoinChat(WPARAM,LPARAM); - INT_PTR __cdecl OnLeaveChat(WPARAM,LPARAM); - + int __cdecl OnChatEvent(WPARAM, LPARAM); + INT_PTR __cdecl OnJoinChat(WPARAM, LPARAM); + INT_PTR __cdecl OnLeaveChat(WPARAM, LPARAM); + // Loops void __cdecl EventsLoop(void*); @@ -88,7 +88,7 @@ public: //bool IsMyContact(HANDLE, bool include_chat = false); // Chat handling - void AddChat(const TCHAR *id,const TCHAR *name); + void AddChat(const TCHAR *id, const TCHAR *name); void UpdateChat(const TCHAR *name, const TCHAR *message, bool addtochat = true); void SendChatMessage(std::string message); void AddChatContact(const TCHAR *nick); -- cgit v1.2.3