python-purple
10 years agoConversation: who added
Ragner Magalhaes [Tue, 2 Dec 2008 20:45:16 +0000 (20:45 +0000)]
Conversation: who added

Who variable added to write_im callback. Now, it's possible to know who is sending a message.
Take care to check if "who" is not None.

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1347 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoReplaced attach_signals with signal_connect method. (UPDATE)
Ragner Magalhaes [Tue, 2 Dec 2008 20:44:49 +0000 (20:44 +0000)]
Replaced attach_signals with signal_connect method. (UPDATE)

FIXES:
 - Added libpurple/xmlnode.pxd.
 - Replaced attach_signals() with signal_connect() method.
 - Added initial geoloc support from libpurple client (receiving only).

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1346 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded local ez_setup.py.
Ragner Magalhaes [Tue, 2 Dec 2008 20:44:17 +0000 (20:44 +0000)]
Added local ez_setup.py.

FIXES:
 - Added local ez_setup.py.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1345 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoConversation support
Ragner Magalhaes [Tue, 2 Dec 2008 20:43:58 +0000 (20:43 +0000)]
Conversation support

- Added conversation support. Applications using python-purple must keep a conversations' list. See
nullclient-ecore.py as reference.
- Added destroy() to purple.pyx
- See quit() in nullclient-ecore.py as example of how destroy python-purple.

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1344 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoDeleting plugin.pyx
Ragner Magalhaes [Tue, 2 Dec 2008 20:42:58 +0000 (20:42 +0000)]
Deleting plugin.pyx

plugin.pyx is not necessary and Plugin(), Plugins() classes are not being used and necessary anymore.

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1343 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoChanging __account to c_account.
Ragner Magalhaes [Tue, 2 Dec 2008 20:42:37 +0000 (20:42 +0000)]
Changing __account to c_account.

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1342 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoSmall cleanups.
Ragner Magalhaes [Tue, 2 Dec 2008 20:42:01 +0000 (20:42 +0000)]
Small cleanups.

FIXES:
 - Removed redundant cimports on plugin.pyx and proxy.pyx.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1341 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agog_timeout_add_seconds() deleted from eventloop_ui struct
Ragner Magalhaes [Tue, 2 Dec 2008 20:41:42 +0000 (20:41 +0000)]
g_timeout_add_seconds() deleted from eventloop_ui struct

Since we don't have such function in glib for Chinook/Diablo.
 This function is not used.

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1340 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agonullclient-core.py: fix update buddy list
Ragner Magalhaes [Tue, 2 Dec 2008 20:41:26 +0000 (20:41 +0000)]
nullclient-core.py: fix update buddy list

Temporary hack fixing buddy list updating.
It's still necessary to refactory buddy.pxd.

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1339 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoblist_cbs.pxd: adding try/except in right position
Ragner Magalhaes [Tue, 2 Dec 2008 20:41:10 +0000 (20:41 +0000)]
blist_cbs.pxd: adding try/except in right position

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1338 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded setup descriptions.
Ragner Magalhaes [Tue, 2 Dec 2008 20:40:51 +0000 (20:40 +0000)]
Added setup descriptions.

FIXES:
 - Added setup descriptions.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1337 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded initial support for new_node, update and remove callbacks from PurpleBlistUiOps.
Ragner Magalhaes [Tue, 2 Dec 2008 20:40:33 +0000 (20:40 +0000)]
Added initial support for new_node, update and remove callbacks from PurpleBlistUiOps.

FIXES:
 - Added initial support for new_node, update and remove callbacks from PurpleBlistUiOps.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1336 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded privacy.pxd definition.
Ragner Magalhaes [Tue, 2 Dec 2008 20:40:15 +0000 (20:40 +0000)]
Added privacy.pxd definition.

FIXES:
 - Added privacy.pxd definition.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1335 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoFixed buddy.pyx return types and plugin.pyx list free.
Ragner Magalhaes [Tue, 2 Dec 2008 20:39:51 +0000 (20:39 +0000)]
Fixed buddy.pyx return types and plugin.pyx list free.

FIXES:
 - Fixed buddy.pyx return types.
 - Fixed plugin.pyx list free.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1334 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdding _write_im_cb to MainWindow class
Ragner Magalhaes [Tue, 2 Dec 2008 20:39:30 +0000 (20:39 +0000)]
Adding _write_im_cb to MainWindow class

Adding _write_im_cb to update the conversation message at UI

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1333 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded misssing structures on blist.pxd and glib.pxd.
Ragner Magalhaes [Tue, 2 Dec 2008 20:39:10 +0000 (20:39 +0000)]
Added misssing structures on blist.pxd and glib.pxd.

FIXES:
 - Added missing structures on blist.pxd and glib.pxd.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1332 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoBuddy list update
Ragner Magalhaes [Tue, 2 Dec 2008 20:38:49 +0000 (20:38 +0000)]
Buddy list update

Implement buddy list update (hack mode)

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1331 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoInitial nullclient-ecore implementation
Ragner Magalhaes [Tue, 2 Dec 2008 20:38:30 +0000 (20:38 +0000)]
Initial nullclient-ecore implementation

Initial nullclient-ecore implementation just for python-purple testings.

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1330 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoFix for accountopt, cosmetics and fix for union definition.
Ragner Magalhaes [Tue, 2 Dec 2008 20:38:14 +0000 (20:38 +0000)]
Fix for accountopt, cosmetics and fix for union definition.

FIXES:
 - account.pxd should not link to any other .pxd that belongs to libpurple, since it can cause redundancy problems to cython.
 - Moved all accountopt code to accountopt.pxd.
 - Fixed union definition in PurpleAccountOption.
 - Small cosmetics at end of some code lines.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1329 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoImproves calls to set proxy's options of the Account
Ragner Magalhaes [Tue, 2 Dec 2008 20:37:48 +0000 (20:37 +0000)]
Improves calls to set proxy's options of the Account

    Improves calls to set proxy's options of the Account
    Using property(get_proxy) method to access the ProxyInfo's instance
    Some improvements at how represent PurpleProxyInfoType enumerator
as python(class ProxyInfoType)

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1328 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoSetting proxy and protocols'options
Ragner Magalhaes [Tue, 2 Dec 2008 20:37:28 +0000 (20:37 +0000)]
Setting proxy and protocols'options

Setting proxy and protocols'options

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1327 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdding support to new class of protocols
Ragner Magalhaes [Tue, 2 Dec 2008 20:37:13 +0000 (20:37 +0000)]
Adding support to new class of protocols

Adding support to new class of protocols

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1326 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdding hack method get_protocol_options
Ragner Magalhaes [Tue, 2 Dec 2008 20:36:54 +0000 (20:36 +0000)]
Adding hack method get_protocol_options

Adding hack method get_protocol_optionsAdding func get_protocol_options

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1325 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdding bind to PurpleAccountOption
Ragner Magalhaes [Tue, 2 Dec 2008 20:36:38 +0000 (20:36 +0000)]
Adding bind to PurpleAccountOption

Adding bind to PurpleAccountOption

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>
Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1324 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdding enum PurplePrefType
Ragner Magalhaes [Tue, 2 Dec 2008 20:36:18 +0000 (20:36 +0000)]
Adding enum PurplePrefType

Adding enum PurplePrefType

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1323 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoFixed connection callbacks arguments used by nullclient.
Ragner Magalhaes [Tue, 2 Dec 2008 20:35:59 +0000 (20:35 +0000)]
Fixed connection callbacks arguments used by nullclient.

FIXES:
 - Fixed connection callbacks arguments used by nullclient.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1322 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoFixed parameters passed as argument to signals used by pidgin-carman.
Ragner Magalhaes [Tue, 2 Dec 2008 20:35:40 +0000 (20:35 +0000)]
Fixed parameters passed as argument to signals used by pidgin-carman.

FIXES:
 - Stripped HTML markups from message.
 - Added robust treatment for arguments passed to user-defined python callbacks.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1321 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded missing structures on connection.pxd.
Ragner Magalhaes [Tue, 2 Dec 2008 20:35:03 +0000 (20:35 +0000)]
Added missing structures on connection.pxd.

FIXES:
 - Added missing structure (PurpleConnection) definition on connection.pxd.
 - Fixed typo with time_t definition on status.pxd.
 - Fixed typo with purple_markup_strip_html definition on util.pxd.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1320 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded missing structures on conversation.pxd.
Ragner Magalhaes [Tue, 2 Dec 2008 20:34:35 +0000 (20:34 +0000)]
Added missing structures on conversation.pxd.

FIXES:
 - Added missing structures on conversation.pxd.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1319 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded missing structures on blist.pxd.
Ragner Magalhaes [Tue, 2 Dec 2008 20:34:04 +0000 (20:34 +0000)]
Added missing structures on blist.pxd.

FIXES:
 - Added missing structures on blist.pxd.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1318 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdding Classes Plugin and PluginInfo
Ragner Magalhaes [Tue, 2 Dec 2008 20:33:34 +0000 (20:33 +0000)]
Adding Classes Plugin and PluginInfo

Adding Classes Plugin and PluginInfo to let us get the protocol's info

Note: This patch depends of the previous patch "[CARMAN][PATCH 1/1] Adding struct PurplePluginProtocolInfo"

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>
Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1317 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdding struct PurplePluginProtocolInfo
Ragner Magalhaes [Tue, 2 Dec 2008 20:33:06 +0000 (20:33 +0000)]
Adding struct PurplePluginProtocolInfo

Adding struct PurplePluginProtocolInfo to let us get protocol's options

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1316 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoFixed definition of union inside PurplePresence structure, added missing structure...
Ragner Magalhaes [Tue, 2 Dec 2008 20:32:38 +0000 (20:32 +0000)]
Fixed definition of union inside PurplePresence structure, added missing structure definitions.

FIXES:
 - Fixed definition of union inside PurplePresence structure.
 - Added missing structure definitions.
 - Fixed small typo with PURPLE_STATUS_NUM_PRIMITIVES definition.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1315 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoFixed blist.pxd recursive call from other .pxd files.
Ragner Magalhaes [Tue, 2 Dec 2008 20:32:06 +0000 (20:32 +0000)]
Fixed blist.pxd recursive call from other .pxd files.

FIXES:
 - Fixed blist.pxd recursive call from other .pxd files.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1314 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoFixed accounts.pxd recursive call from other .pxd files.
Ragner Magalhaes [Tue, 2 Dec 2008 20:31:36 +0000 (20:31 +0000)]
Fixed accounts.pxd recursive call from other .pxd files.

FIXES:
 - Fixed accounts.pxd recursive call from other .pxd files.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1313 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded libpurple/value.pxd. (UPDATE)
Ragner Magalhaes [Tue, 2 Dec 2008 20:30:59 +0000 (20:30 +0000)]
Added libpurple/value.pxd. (UPDATE)

FIXES:
 - Added gint64 and guint64 definitions used by value.pxd on glib.pxd.
 - Added value.pxd cimport inside purple.pxd.
 - Added libpurple/value.pxd.

ps: Fixed small type with PurpleValue structure definition.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1312 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoFixed high cpu usage by glib iteration.
Ragner Magalhaes [Tue, 2 Dec 2008 20:29:44 +0000 (20:29 +0000)]
Fixed high cpu usage by glib iteration.

FIXES:
 - Changed ecore.idler_add with ecore.timer_add.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1311 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded missing definitions on blist.pxd.
Ragner Magalhaes [Tue, 2 Dec 2008 20:29:17 +0000 (20:29 +0000)]
Added missing definitions on blist.pxd.

FIXES:
 - Added missing definitions on blist.pxd.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1310 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded signal callbacks used by pidgin-carman.
Ragner Magalhaes [Tue, 2 Dec 2008 20:28:53 +0000 (20:28 +0000)]
Added signal callbacks used by pidgin-carman.

FIXES:
 - Added signal callbacks used by pidgin-carman.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1309 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded PurpleRequestUiOps callbacks. (UPDATE)
Ragner Magalhaes [Tue, 2 Dec 2008 20:28:31 +0000 (20:28 +0000)]
Added PurpleRequestUiOps callbacks. (UPDATE)

FIXES:
 - Added missing structures on request.pxd.
 - Added request callbacks forwarding on purple.pyx.
 - Added request callbacks example on nullclient.py.
 - Added c-based callbacks on request_cbs.pxd.
 - Added missing GCallback definition on glib.pxd.

ps: Fixed typo in purple.pyx.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1308 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded PurpleNotifyUiOps callbacks.
Ragner Magalhaes [Tue, 2 Dec 2008 20:28:01 +0000 (20:28 +0000)]
Added PurpleNotifyUiOps callbacks.

FIXES:
 - Added missing structures on notify.pxd.
 - Added notify callbacks forwarding on purple.pyx.
 - Added notify callbacks example on nullclient.py.
 - Added c-based callbacks on notify_cbs.pxd.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1307 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded PurpleBlistUiOps callbacks.
Ragner Magalhaes [Tue, 2 Dec 2008 20:27:33 +0000 (20:27 +0000)]
Added PurpleBlistUiOps callbacks.

FIXES:
 - Added missing structures on blist.pxd.
 - Added blist callbacks forwarding on purple.pyx.
 - Added blist callbacks example on nullclient.py.
 - Added c-based callbacks on blist_cbs.pxd.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1306 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoMore cosmetics.
Ragner Magalhaes [Tue, 2 Dec 2008 20:27:07 +0000 (20:27 +0000)]
More cosmetics.

FIXES:
 - Removed redundant global defintions.
 - Fixed identation.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1305 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded PurpleConnectionUiOps callbacks.
Ragner Magalhaes [Tue, 2 Dec 2008 20:26:42 +0000 (20:26 +0000)]
Added PurpleConnectionUiOps callbacks.

FIXES:
 - Added missing structures on connection.pxd.
 - Added connection callbacks forwarding on purple.pyx.
 - Added connection callbacks example on nullclient.py.
 - Added c-based callbacks on connection_cbs.pxd.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1304 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded PurpleAccountUiOps callbacks. (Updated)
Ragner Magalhaes [Tue, 2 Dec 2008 20:26:15 +0000 (20:26 +0000)]
Added PurpleAccountUiOps callbacks. (Updated)

FIXES:
 - Added missing structures on account.pxd (PurpleAccountUiOps) and status.pxd (PurpleStatus).
 - Added account callbacks forwarding on purple.pyx.
 - Added account callbacks example on nullclient.py.
 - Added c-based callbacks on account_cbs.pxd.
 - Renamed conversations_cbs to conversation_cbs.

ps: Fixed typo when renaming conversations_cbs to conversation_cbs.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1303 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoCosmetics.
Ragner Magalhaes [Tue, 2 Dec 2008 20:25:41 +0000 (20:25 +0000)]
Cosmetics.

FIXES:
 - Removed redundant import on account.pyx
 - Cosmetics on account.pxd and proxy.pxd.
Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1302 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded initial support for user-specified conversation callbacks.
Ragner Magalhaes [Tue, 2 Dec 2008 20:25:07 +0000 (20:25 +0000)]
Added initial support for user-specified conversation callbacks.

FIXES:
 - UiOps structures are now global.
 - Initial support for user-specified conversation callbacks.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1301 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdd get/set proxyinfo methods to Account class
Ragner Magalhaes [Tue, 2 Dec 2008 20:24:28 +0000 (20:24 +0000)]
Add get/set proxyinfo methods to Account class

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1300 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdd class ProxyInfo
Ragner Magalhaes [Tue, 2 Dec 2008 20:23:39 +0000 (20:23 +0000)]
Add class ProxyInfo

Add new class ProxyInfo to allow you config the account's proxy

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1299 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoSimplifyed definitions call, moved signal callback example to Cython code.
Ragner Magalhaes [Tue, 2 Dec 2008 20:22:58 +0000 (20:22 +0000)]
Simplifyed definitions call, moved signal callback example to Cython code.

FIXES:
 - Now all .pyx files simply calls "cimport purple" instead of a bunch of cimport's.
 - Moved signal callback example from c_purple to cython code.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1298 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoCosmetics.
Ragner Magalhaes [Tue, 2 Dec 2008 20:21:43 +0000 (20:21 +0000)]
Cosmetics.

FIXME:
 - Removed confusing comments at the end of each method on purple.pyx.
 - Renamed __cinit__ to __init__.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1297 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoFix get_buddies_online
Ragner Magalhaes [Tue, 2 Dec 2008 20:20:50 +0000 (20:20 +0000)]
Fix get_buddies_online

Small fix related to get_buddies_online function implemented in account.pyx

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1296 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAll includes now uses cimport. Moved .pxd files from root dir to .pyx files, fixed...
Ragner Magalhaes [Tue, 2 Dec 2008 20:20:15 +0000 (20:20 +0000)]
All includes now uses cimport. Moved .pxd files from root dir to .pyx files, fixed enum declarations.

Hi all, sorry for the long patch.

FIXES:
 - Moved all .pxd files from root directory to .pyx ones.
 - Use "cimport <file>" instead of "include".
 - Fixed enum declarations.
 - Fixed directory declaration on setup.py.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1295 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoGet buddies function
Ragner Magalhaes [Tue, 2 Dec 2008 20:19:12 +0000 (20:19 +0000)]
Get buddies function

Get buddies function

Signed-off-by: Dinorah Monteiro <dinorah.monteiro@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1294 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoGet buddies bindings
Ragner Magalhaes [Tue, 2 Dec 2008 20:18:52 +0000 (20:18 +0000)]
Get buddies bindings

Get buddies bindings

Signed-off-by: Dinorah Monteiro <dinorah.monteiro@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1293 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded missing UI operation structures.
Ragner Magalhaes [Tue, 2 Dec 2008 20:18:29 +0000 (20:18 +0000)]
Added missing UI operation structures.

FIXES:
 - Added missing UI operation structures.
 - Initial support for application initialization/deinitialization.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1292 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdd support to console's input to nullclient.py
Ragner Magalhaes [Tue, 2 Dec 2008 20:17:50 +0000 (20:17 +0000)]
Add support to console's input to nullclient.py

Allow user input name and password to nullclient.py

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1291 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded majority of libpurple functions used by pidgin-carman.
Ragner Magalhaes [Tue, 2 Dec 2008 20:17:33 +0000 (20:17 +0000)]
Added majority of libpurple functions used by pidgin-carman.

FIXES:
 - Added majority of libpurple functions used by pidgin-carman.
 - Fixed alias for conversation functions.
 - Added libpurple/signals.pxd.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1290 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoMore fixes to BFP.
Ragner Magalhaes [Tue, 2 Dec 2008 20:16:59 +0000 (20:16 +0000)]
More fixes to BFP.

FIXES:
 - Created savedstatuses.pxd.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1289 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoFixed last BFP.
Ragner Magalhaes [Tue, 2 Dec 2008 20:16:23 +0000 (20:16 +0000)]
Fixed last BFP.

FIXES:
 - Fixed includes on purple.pyx.
 - Moved remaining .pxd's to libpurple/ directory.
 - Removed core/ directory.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1288 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoBFP, fixes structures definitions, categorizes each c-function into a .pxd file.
Ragner Magalhaes [Tue, 2 Dec 2008 20:15:48 +0000 (20:15 +0000)]
BFP, fixes structures definitions, categorizes each c-function into a .pxd file.

FIXES:
 - Fixes some structures definitions.
 - Ordered correctly 'import' calls inside purple.pyx.
 - Moved c-functions defintions inside .pxd files.
 - Renamed class files into .pyx ones.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1287 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoNullclient.py: changing mainloop
Ragner Magalhaes [Tue, 2 Dec 2008 20:14:21 +0000 (20:14 +0000)]
Nullclient.py: changing mainloop

Use new ecore mainloop instead of glib one.

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1286 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoConversation class implementation
Ragner Magalhaes [Tue, 2 Dec 2008 20:13:55 +0000 (20:13 +0000)]
Conversation class implementation

Initial conversation.pxd implementation

Signed-off-by: Dinorah Monteiro <dinorah.monteiro@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1285 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoFixed structures definition, removed print line from setup.py.
Ragner Magalhaes [Tue, 2 Dec 2008 20:13:21 +0000 (20:13 +0000)]
Fixed structures definition, removed print line from setup.py.

FIXES:
 - Removed 'print' line from setup.py.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1284 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agonullclient.py
Ragner Magalhaes [Tue, 2 Dec 2008 20:13:03 +0000 (20:13 +0000)]
nullclient.py

Implementation of a very simple python program which connects to a valid jabber account (gtalk, for example).
You need to connect on WANO and edit nullclient.py adding your email/password.

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1283 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoCoding style on core/buddy.pxd
Ragner Magalhaes [Tue, 2 Dec 2008 20:12:35 +0000 (20:12 +0000)]
Coding style on core/buddy.pxd

Some coding style fixes on core/buddy.pxd

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1282 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoImplement account connect methods
Ragner Magalhaes [Tue, 2 Dec 2008 20:12:08 +0000 (20:12 +0000)]
Implement account connect methods

Added connect methods to core/account.pxd

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1281 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoConnect signals
Ragner Magalhaes [Tue, 2 Dec 2008 20:11:37 +0000 (20:11 +0000)]
Connect signals

Just for demonstration purposes, implement connection callbacks on c_purple.*

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1280 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded glib iteration inside ecore main loop, fixed wrong function definition.
Ragner Magalhaes [Tue, 2 Dec 2008 20:11:15 +0000 (20:11 +0000)]
Added glib iteration inside ecore main loop, fixed wrong function definition.

FIXES:
 - Added glib iteration inside ecore main loop.
 - Fixed warning about assignment from incompatible pointer type.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>
Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1279 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoMoved all Purple class callbacks inside, moved blist and pounce inside Purple.
Ragner Magalhaes [Tue, 2 Dec 2008 20:10:51 +0000 (20:10 +0000)]
Moved all Purple class callbacks inside, moved blist and pounce inside Purple.

FIXES:
 - Moved all Purple class callbacks inside.
 - Moved blist and pounce inside Purple.
 - All C-functions are now called directly.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1278 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoMoved debug methods outside Purple class, added core ui ops callback examples.
Ragner Magalhaes [Tue, 2 Dec 2008 20:10:12 +0000 (20:10 +0000)]
Moved debug methods outside Purple class, added core ui ops callback examples.

FIXES:
 - Moved debug_* methods outside Purple class, so they can be used by anyone.
 - Added core ui ops callback examples.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1277 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoBuddy class
Ragner Magalhaes [Tue, 2 Dec 2008 20:09:44 +0000 (20:09 +0000)]
Buddy class

Initial buddy class implementation.

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1276 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoImplementing core/account.pxd
Ragner Magalhaes [Tue, 2 Dec 2008 20:09:11 +0000 (20:09 +0000)]
Implementing core/account.pxd

Initial account.pxd implementation

Signed-off-by: Ricardo Guimaraes <ricardo.guimaraes@indt.org.br>
Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>
Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1275 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoMoved purple core ui ops to Cython code.
Ragner Magalhaes [Tue, 2 Dec 2008 20:08:49 +0000 (20:08 +0000)]
Moved purple core ui ops to Cython code.

FIXES:
 - Added glib definitions used by purple core ui ops.
 - Moved purple core ui ops structures to Cython.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1274 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoMoved purple_core_init to cython, added purple debug methods, added checks for core...
Ragner Magalhaes [Tue, 2 Dec 2008 20:08:16 +0000 (20:08 +0000)]
Moved purple_core_init to cython, added purple debug methods, added checks for core initialization.

FIXES:
 - Moved purple_core_init from c_purple.c directly to Cython code. Now only callbacks are done inside c_purple code.
 - Added purple debug methods, so we can use it inside code.
 - Added check for core initialization.
 - Added check to ensure that it has only one instance of libpurple running.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1273 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoRemoved unused files, mixed C-only code with Cython code.
Ragner Magalhaes [Tue, 2 Dec 2008 20:07:51 +0000 (20:07 +0000)]
Removed unused files, mixed C-only code with Cython code.

FIXES:
- Moved calls from debug, plugin, util and c_purple.pxd directly into purple.pyx
- Changed Core class name to Purple.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1272 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoRemoved redundant cdef's, fixed structures declarations.
Ragner Magalhaes [Tue, 2 Dec 2008 20:07:23 +0000 (20:07 +0000)]
Removed redundant cdef's, fixed structures declarations.

FIXES:

* Removed redundant cdef's, as functions declared within "cdef extern" block receives this automatically.
* Fixed structures declarations, adding "pass" to them (this can be done only inside "cdef extern" blocks).

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1271 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agolibpurple initialization
Ragner Magalhaes [Tue, 2 Dec 2008 20:06:42 +0000 (20:06 +0000)]
libpurple initialization

Using c_purple.[c,h] to encapsulate all glib functions and structs for libpurple intialization.

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1270 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded GsourceFunc implementation
Ragner Magalhaes [Tue, 2 Dec 2008 20:06:14 +0000 (20:06 +0000)]
Added GsourceFunc implementation

Added GSourceFunc implementation used on PurpleEventLoopUiOps callbacks).

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1269 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoPurpleCoreUiOps implementation
Ragner Magalhaes [Tue, 2 Dec 2008 20:05:56 +0000 (20:05 +0000)]
PurpleCoreUiOps implementation

Implementing PurpleCoreUiOps bindings.

Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1268 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoFix account class
Ragner Magalhaes [Tue, 2 Dec 2008 20:05:37 +0000 (20:05 +0000)]
Fix account class

Using cast to encapsulate PurpleAccount into a PyObject.

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>
Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1267 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoInitial account class implementation
Ragner Magalhaes [Tue, 2 Dec 2008 20:05:13 +0000 (20:05 +0000)]
Initial account class implementation

Signed-off-by: Anderson Briglia <anderson.briglia@indt.org.br>
Signed-off-by: Ragner Magalhaes <ragner.magalhaes@indt.org.br>
Signed-off-by: Ricardo Guimaraes <ricardo.guimaraes@indt.org.br>
Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>
Signed-off-by: Dinorah Monteiro <dinorah.monteiro@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1266 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoAdded glib.pxd.
Ragner Magalhaes [Tue, 2 Dec 2008 20:04:49 +0000 (20:04 +0000)]
Added glib.pxd.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1265 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoUpdate: Removed deprecated python-libpurple folder (to avoid mistakes), created class...
Ragner Magalhaes [Tue, 2 Dec 2008 20:04:04 +0000 (20:04 +0000)]
Update: Removed deprecated python-libpurple folder (to avoid mistakes), created classes for all current .pxd files.

FIXES:
* Removed deprecated python-libpurple/ folder, to avoid mistakes.
* Created classes for all current .pxd files.
* Fixed correct .pxd call from inside purple.pyx.
* Fixed "const char *" calls (vide http://wiki.cython.org/FAQ#head-af019db12f683abe6bc226926e8a2a92425b8e57 ).

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1263 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agoInitial python-purple commit.
Anderson Briglia [Sat, 28 Feb 2009 21:10:29 +0000 (17:10 -0400)]
Initial python-purple commit.

Signed-off-by: Anderson Briglia <anderson.briglia@openbossa.org>

10 years agoAdded python-purple/core/connection.pxd.
Ragner Magalhaes [Tue, 2 Dec 2008 20:04:26 +0000 (20:04 +0000)]
Added python-purple/core/connection.pxd.

Signed-off-by: Bruno Abinader <bruno.abinader@indt.org.br>

git-svn-id: https://garage.maemo.org/svn/carman/branches/carman-0.7-beta2/python-purple@1264 596f6dd7-e928-0410-a184-9e12fd12cf7e

10 years agowelcome
www-data [Thu, 26 Feb 2009 14:30:28 +0000 (16:30 +0200)]
welcome