A patch from Norbert Buchmuller: release-2.1.0

Sun, 03 Jun 2007 19:34:16 +0000

author
Norbert Buchmuller <norbi@nix.hu>
date
Sun, 03 Jun 2007 19:34:16 +0000
branch
release-2.1.0
changeset 18097
9304ace34e7b
parent 18096
65a668fff099
child 18098
87d9a86cb477

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@pidgin.im>

COPYRIGHT file | annotate | diff | comparison | revisions
ChangeLog.API file | annotate | diff | comparison | revisions
libpurple/purple-remote file | annotate | diff | comparison | revisions
--- 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)

mercurial