What's new? | Help | Directory | Sign in
Google
                
Search
for
Updated Apr 13, 2007 by david.search
Class_basexmpp  
Class documentation for basexmpp

Introduction

xmlstream -> basexmpp

Class Methods

__init__(self) getNewId(self)

Returns a new Id for use in Iq requests.

getId(self)

Returns the current Id.

makeIq(self, id=0)

Build an Element for an iq request.

makeIqGet(self, queryxmlns = None)

Build an Element for an iq request of type 'get'.

makeIqResult(self, id)

Build an Element for an iq response.

makeIqSet(self, sub=None)

Build an Element for an iq request of type 'set'.

makeIqQuery(self, iq, xmlns)

Build an Element for an iq query.

makeQueryRoster(self, iq=None)

Builds an Element for a roster query.

add_event_handler(self, name, pointer, threaded=False, disposable=False)

Adds a handler for the named event.

event(self, name, eventdata = {})

Calls the event handlers for the named event.

makeMessage(self, mto, mbody, msubject=None, mtype=None)

Make a message Element.

makePresence(self, pshow=None, pstatus=None, ppriority=None, pto=None, ptype=None)

Make a presence Element.

sendMessage(self, mto, mbody, msubject=None, mtype=None)

Makes and sends a message.

sendPresence(self, pshow=None, pstatus=None, ppriority=None, pto=None)

Make and send a presence.

getjidresource(self, fulljid)

Returns the resource from fulljid.

getjidbare(self, fulljid)

Returns the non-resource part of fulljid

Sign in to add a comment