1 #ifndef _SIPSIMPLE_PROTO_H_
2 #define _SIPSIMPLE_PROTO_H_
4 #define MIRANDA_VER 0x0800
8 #include <newpluginapi.h>
9 #include <m_protomod.h>
10 #include <m_protosvc.h>
11 #include <m_protoint.h>
12 #include <m_langpack.h>
15 #pragma warning(disable : 4996)
16 #define __MIRANDA_COMPATIBLE__
17 #define SIPSIMPLE_PROTOCOL_NAME LPGEN("SIP/SIMPLE")
18 #define SIP_UNIQUEID "sip_screenname"
21 #define IDC_STATIC (-1)
24 struct CSipSimpleProto
: public PROTO_INTERFACE
27 CSipSimpleProto( const char*, const TCHAR
* );
30 //====================================================================================
32 //====================================================================================
34 virtual HANDLE __cdecl
AddToList( int flags
, PROTOSEARCHRESULT
* psr
);
35 virtual HANDLE __cdecl
AddToListByEvent( int flags
, int iContact
, HANDLE hDbEvent
);
37 virtual int __cdecl
Authorize( HANDLE hContact
);
38 virtual int __cdecl
AuthDeny( HANDLE hContact
, const char* szReason
);
39 virtual int __cdecl
AuthRecv( HANDLE hContact
, PROTORECVEVENT
* );
40 virtual int __cdecl
AuthRequest( HANDLE hContact
, const char* szMessage
);
42 virtual HANDLE __cdecl
ChangeInfo( int iInfoType
, void* pInfoData
);
44 virtual HANDLE __cdecl
FileAllow( HANDLE hContact
, HANDLE hTransfer
, const char* szPath
);
45 virtual int __cdecl
FileCancel( HANDLE hContact
, HANDLE hTransfer
);
46 virtual int __cdecl
FileDeny( HANDLE hContact
, HANDLE hTransfer
, const char* szReason
);
47 virtual int __cdecl
FileResume( HANDLE hTransfer
, int* action
, const char** szFilename
);
49 virtual DWORD_PTR __cdecl
GetCaps( int type
, HANDLE hContact
= NULL
);
50 virtual HICON __cdecl
GetIcon( int iconIndex
);
51 virtual int __cdecl
GetInfo( HANDLE hContact
, int infoType
);
53 virtual HANDLE __cdecl
SearchBasic( const char* id
);
54 virtual HANDLE __cdecl
SearchByEmail( const char* email
);
55 virtual HANDLE __cdecl
SearchByName(const char *nick
, const char *firstName
, const char *lastName
);
56 virtual HWND __cdecl
SearchAdvanced( HWND owner
);
57 virtual HWND __cdecl
CreateExtendedSearchUI( HWND owner
);
59 virtual int __cdecl
RecvContacts( HANDLE hContact
, PROTORECVEVENT
* );
60 virtual int __cdecl
RecvFile( HANDLE hContact
, PROTORECVFILE
* );
61 virtual int __cdecl
RecvMsg( HANDLE hContact
, PROTORECVEVENT
* );
62 virtual int __cdecl
RecvUrl( HANDLE hContact
, PROTORECVEVENT
* );
64 virtual int __cdecl
SendContacts( HANDLE hContact
, int flags
, int nContacts
, HANDLE
* hContactsList
);
65 virtual HANDLE __cdecl
SendFile( HANDLE hContact
, const char* szDescription
, char** ppszFiles
);
66 virtual int __cdecl
SendMsg( HANDLE hContact
, int flags
, const char* msg
);
67 virtual int __cdecl
SendUrl( HANDLE hContact
, int flags
, const char* url
);
69 virtual int __cdecl
SetApparentMode( HANDLE hContact
, int mode
);
70 virtual int __cdecl
SetStatus( int iNewStatus
);
72 virtual HANDLE __cdecl
GetAwayMsg( HANDLE hContact
);
73 virtual int __cdecl
RecvAwayMsg( HANDLE hContact
, int mode
, PROTORECVEVENT
* evt
);
74 virtual int __cdecl
SendAwayMsg( HANDLE hContact
, HANDLE hProcess
, const char* msg
);
75 virtual int __cdecl
SetAwayMsg( int m_iStatus
, const char* msg
);
77 virtual int __cdecl
UserIsTyping( HANDLE hContact
, int type
);
79 virtual int __cdecl
OnEvent( PROTOEVENTTYPE eventType
, WPARAM wParam
, LPARAM lParam
);