From 660b4e02d4bef4f7ac953689ce00d727bf9bacbd Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 24 Jan 2024 14:30:28 +0300 Subject: PS_EMPTY_SRV_HISTORY introduced for removing server history for a contact --- include/m_protosvc.h | 25 ++++++++++++++++--------- 1 file changed, 16 insertions(+), 9 deletions(-) (limited to 'include') diff --git a/include/m_protosvc.h b/include/m_protosvc.h index 5291a94759..a1f1a6a193 100644 --- a/include/m_protosvc.h +++ b/include/m_protosvc.h @@ -201,6 +201,15 @@ static __inline unsigned long Proto_Status2Flag(int status) #define PS_LOADICON "/LoadIcon" +/////////////////////////////////////////////////////////////////////////////// +// Get the status mode that a protocol is currently in +// wParam = lParam = 0 +// Returns the status mode +// Non-network-level protocol modules do not have the concept of a status and +// should leave this service unimplemented + +#define PS_GETSTATUS "/GetStatus" + /////////////////////////////////////////////////////////////////////////////// // Change the protocol's status mode // wParam = newMode, from ui/contactlist/statusmodes.h @@ -258,15 +267,6 @@ static __inline unsigned long Proto_Status2Flag(int status) #define PS_SETAWAYMSG "/SetAwayMsg" -/////////////////////////////////////////////////////////////////////////////// -// Get the status mode that a protocol is currently in -// wParam = lParam = 0 -// Returns the status mode -// Non-network-level protocol modules do not have the concept of a status and -// should leave this service unimplemented - -#define PS_GETSTATUS "/GetStatus" - /////////////////////////////////////////////////////////////////////////////// // Updates a contact's details from the server // wParam = flags @@ -580,6 +580,13 @@ struct PROTOFILERESUME #define PS_MENU_LOADHISTORY "/LoadServerHistory" +/////////////////////////////////////////////////////////////////////////////// +// Empties the server history for a contact +// wParam = hContact +// lParam = 0 + +#define PS_EMPTY_SRV_HISTORY "/EmptyServerHistory" + /////////////////////////////////////////////////////////////////////////////// // SENDING SERVICES // these should be called with ProtoChainSend() -- cgit v1.2.3