Mercurial > pidgin.yaz
comparison libpurple/purple-remote @ 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 | 3c8ccbc4a667 |
children | 6b7b13adb9b1 |
comparison
equal
deleted
inserted
replaced
18034:2a6fb7c6d030 | 18035:c168d1ae2012 |
---|---|
156 saved = purple.PurpleSavedstatusNew("", status_type) | 156 saved = purple.PurpleSavedstatusNew("", status_type) |
157 purple.PurpleSavedstatusSetMessage(saved, message) | 157 purple.PurpleSavedstatusSetMessage(saved, message) |
158 purple.PurpleSavedstatusActivate(saved) | 158 purple.PurpleSavedstatusActivate(saved) |
159 | 159 |
160 return None | 160 return None |
161 | |
162 elif command == "getstatus": | |
163 current = purple.PurpleSavedstatusGetCurrent() | |
164 status_type = purple.PurpleSavedstatusGetType(current) | |
165 status_id = purple.PurplePrimitiveGetIdFromType(status_type) | |
166 return status_id | |
161 | 167 |
162 elif command == "getinfo": | 168 elif command == "getinfo": |
163 account = findaccount(accountname, protocol) | 169 account = findaccount(accountname, protocol) |
164 connection = cpurple.PurpleAccountGetConnection(account) | 170 connection = cpurple.PurpleAccountGetConnection(account) |
165 return purple.ServGetInfo(connection, params["screenname"]) | 171 return purple.ServGetInfo(connection, params["screenname"]) |