From 4a586a34c99d32dd8e2f439a16e5e2a99355b72b Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Sun, 15 May 2011 09:47:59 +0000 Subject: ExternalAPI: update git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@95 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- ExternalAPI/m_mydetails.h | 187 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 187 insertions(+) create mode 100644 ExternalAPI/m_mydetails.h (limited to 'ExternalAPI/m_mydetails.h') diff --git a/ExternalAPI/m_mydetails.h b/ExternalAPI/m_mydetails.h new file mode 100644 index 0000000..ad60433 --- /dev/null +++ b/ExternalAPI/m_mydetails.h @@ -0,0 +1,187 @@ +/* +Copyright (C) 2005 Ricardo Pescuma Domenecci + +This is free software; you can redistribute it and/or +modify it under the terms of the GNU Library General Public +License as published by the Free Software Foundation; either +version 2 of the License, or (at your option) any later version. + +This 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 +Library General Public License for more details. + +You should have received a copy of the GNU Library General Public +License along with this file; see the file license.txt. If +not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, +Boston, MA 02111-1307, USA. +*/ + + +#ifndef __M_MYDETAILS_H__ +# define __M_MYDETAILS_H__ + + +#define MIID_MDETAILS { 0xdba18dbc, 0x5be6, 0x4504, { 0xa7, 0x99, 0x29, 0xec, 0x6c, 0xca, 0x0, 0x65 } } + + + +/* +MyDetails/SetMyNickname service +Set the nickname for all possible protocols + +wparam = (const char *) protocol name or NULL for all protocols +lparam = (const char *) new nickname +returns: -2 if proto can't set this, -1 on protocol not found, else 0 +*/ +#define MS_MYDETAILS_SETMYNICKNAME "MyDetails/SetMyNickname" + + +/* +MyDetails/SetMyNicknameUI service +Shows a dialog to set the nickname for all possible protocols + +wparam = 0 +lparam = (const char *) protocol name or NULL for all protocols +returns: -2 if proto can't set this, -1 on protocol not found, else 0 +*/ +#define MS_MYDETAILS_SETMYNICKNAMEUI "MyDetails/SetMyNicknameUI" + + +/* +MyDetails/SetMyAvatar service +Set the avatar for all possible protocols + +wparam = (const char *) protocol name or NULL for all protocols +lparam = (const char *) new avatar file name +returns: -2 if proto can't set this, -1 on protocol not found, else 0 +*/ +#define MS_MYDETAILS_SETMYAVATAR "MyDetails/SetMyAvatar" + + +/* +MyDetails/SetMyAvatarUI service +Shows a dialog to set the avatar for all possible protocols + +wparam = 0 +lparam = (const char *) protocol name or NULL for all protocols +returns: -2 if proto can't set this, -1 on protocol not found, else 0 +*/ +#define MS_MYDETAILS_SETMYAVATARUI "MyDetails/SetMyAvatarUI" + + +/* +MyDetails/GetMyNickname service +Get the nickname + +wparam = (const char *) protocol name or NULL for default nick +lparam = (char *) the buffer to save the nickname. Has to have at least 1024 chars +returns: -1 on protocol not found, else 0 +*/ +#define MS_MYDETAILS_GETMYNICKNAME "MyDetails/GetMyNickname" +#define MS_MYDETAILS_GETMYNICKNAME_BUFFER_SIZE 1024 + + +/* +MyDetails/GetMyAvatar service +Get the avatar file name + +wparam = (const char *) protocol name or NULL for default avatar +lparam = (char *) the buffer to save the file name. Has to have at least 1024 chars +returns: -2 if proto can't get this, -1 on protocol not found, else 0 +*/ +#define MS_MYDETAILS_GETMYAVATAR "MyDetails/GetMyAvatar" +#define MS_MYDETAILS_GETMYAVATAR_BUFFER_SIZE 1024 + + +/* +MyDetails/SetMyStatusMessageUI service +Shows a dialog to set the status message for all possible protocols +Today only works if NAS is installed. + +wparam = 0 +lparam = (const char *) protocol name or NULL for all protocols +returns: -2 if proto can't set this, -1 on protocol not found, else 0 +*/ +#define MS_MYDETAILS_SETMYSTATUSMESSAGEUI "MyDetails/SetMyStatusMessageUI" +#define MS_MYDETAILS_GETMYSTATUSMESSAGE_BUFFER_SIZE 1024 + + +/* +MyDetails/ShowNextProtocol service +Shows the next protocol in the frame + +wparam = 0 +lparam = 0 +returns: -1 on error, 0 on success +*/ +#define MS_MYDETAILS_SHOWNEXTPROTOCOL "MyDetails/ShowNextProtocol" + + +/* +MyDetails/ShowPreviousProtocol service +Shows the previous protocol in the frame + +wparam = 0 +lparam = 0 +returns: -1 on error, 0 on success +*/ +#define MS_MYDETAILS_SHOWPREVIOUSPROTOCOL "MyDetails/ShowPreviousProtocol" + + +/* +MyDetails/ShowProtocol service +Shows a protocol given its name in the frame + +wparam = 0 +lparam = protocol name +returns: -1 on error, 0 on success +*/ +#define MS_MYDETAILS_SHOWPROTOCOL "MyDetails/ShowProtocol" + + +/* +MyDetails/CicleThroughtProtocols service +Start/stops the cicling throught protocols + +wparam = FALSE to stop, TRUE to start +lparam = 0 +returns: -1 on error, 0 on success +*/ +#define MS_MYDETAILS_CYCLE_THROUGH_PROTOCOLS "MyDetails/CicleThroughtProtocols" + + +/* +MyDetails/ShowFrame service +Shows the MyDetails frame/window if it is hidden + +wparam = 0 +lparam = 0 +returns: 0 +*/ +#define MS_MYDETAILS_SHOWFRAME "MyDetails/ShowFrame" + + +/* +MyDetails/HideFrame service +Hides the MyDetails frame/window if it is shown + +wparam = 0 +lparam = 0 +returns: 0 +*/ +#define MS_MYDETAILS_HIDEFRAME "MyDetails/HideFrame" + + +/* +MyDetails/ShowHideMyDetails service +Shows the MyDetails frame/window if it is hidden or hides the MyDetails frame/window if it is shown + +wparam = 0 +lparam = 0 +returns: 0 +*/ +#define MS_MYDETAILS_SHOWHIDEFRAME "MyDetails/ShowHideMyDetails" + + +#endif -- cgit v1.2.3