Mercurial > pidgin.yaz
changeset 18035:c168d1ae2012
A patch from Norbert Buchmuller:
"There's a 'setstatus' command implemented in 'gaim-remote', but there's
no 'getstatus'. For some tasks (eg. setting status to 'offline' on
hibernation and restoring it on resume) it would be useful if such
command existed."
I'm not sure if we're considering this API or not.
committer: Richard Laager <rlaager@wiktel.com>
author | Norbert Buchmuller <norbi@nix.hu> |
---|---|
date | Sun, 03 Jun 2007 19:34:16 +0000 |
parents | 2a6fb7c6d030 |
children | ee9f7ee0be66 |
files | COPYRIGHT ChangeLog.API libpurple/purple-remote |
diffstat | 3 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/COPYRIGHT Sun Jun 03 00:48:00 2007 +0000 +++ b/COPYRIGHT Sun Jun 03 19:34:16 2007 +0000 @@ -51,6 +51,7 @@ Jeremy Brooks Jonathan Brossard Philip Brown +Norbert Buchmuller Sean Burke Thomas Butter Trevor Caira
--- a/ChangeLog.API Sun Jun 03 00:48:00 2007 +0000 +++ b/ChangeLog.API Sun Jun 03 19:34:16 2007 +0000 @@ -17,6 +17,7 @@ should not be auto-linkified * OPT_PROTO_SLASH_COMMANDS_NATIVE protocol option to indicate that slash commands are "native" to the protocol + * getstatus command for purple-remote version 2.0.0 (5/3/2007): Please note all functions, defines, and data structures have been
--- a/libpurple/purple-remote Sun Jun 03 00:48:00 2007 +0000 +++ b/libpurple/purple-remote Sun Jun 03 19:34:16 2007 +0000 @@ -159,6 +159,12 @@ return None + elif command == "getstatus": + current = purple.PurpleSavedstatusGetCurrent() + status_type = purple.PurpleSavedstatusGetType(current) + status_id = purple.PurplePrimitiveGetIdFromType(status_type) + return status_id + elif command == "getinfo": account = findaccount(accountname, protocol) connection = cpurple.PurpleAccountGetConnection(account)