diff options
Diffstat (limited to 'sunshine/lqsoft/pygadu/models.py')
-rwxr-xr-x | sunshine/lqsoft/pygadu/models.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sunshine/lqsoft/pygadu/models.py b/sunshine/lqsoft/pygadu/models.py index 311dbc9..ced5dbe 100755 --- a/sunshine/lqsoft/pygadu/models.py +++ b/sunshine/lqsoft/pygadu/models.py @@ -121,6 +121,11 @@ class GaduProfile(object): raise RuntimeError("You need to be connected, to send messages.") self.__connection.sendConfMessage(uin, html_message + '\0', plain_message + '\0', recipients) + def sendTypingNotify(self, uin, type): + if not self.connected: + raise RuntimeError("You need to be connected, to send notifies.") + self.__connection.sendTypingNotify(uin, type) + def importContacts(self, callback): """Issue an import request. This is non-blocking and returns no data.""" if not self.connected: @@ -191,6 +196,9 @@ class GaduProfile(object): def onStatusNoticiesRecv(self): """Called when a contact list notify was sent""" pass + + def onTypingNotification(self, data): + pass def onXmlAction(self, data): """Called when a XML action packet was sent""" |