Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.protocol.jabber.extensions.mailnotification
Class NewMailNotificationProvider

java.lang.Object
  extended by net.java.sip.communicator.impl.protocol.jabber.extensions.mailnotification.NewMailNotificationProvider
All Implemented Interfaces:
org.jivesoftware.smack.provider.IQProvider

public class NewMailNotificationProvider
extends Object
implements org.jivesoftware.smack.provider.IQProvider

A straightforward implementation of an IQProvider. Parses custom IQ packets related to new mail notifications from Google servers. We receive IQ packets from the mail server to notify us that new mails are available.

Author:
Matthieu Helleringer, Alain Knaebel

Constructor Summary
NewMailNotificationProvider()
           
 
Method Summary
 org.jivesoftware.smack.packet.IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
          Returns an NewMailNotification instance containing the result of the XMPP's packet parsing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NewMailNotificationProvider

public NewMailNotificationProvider()
Method Detail

parseIQ

public org.jivesoftware.smack.packet.IQ parseIQ(org.xmlpull.v1.XmlPullParser parser)
                                         throws Exception
Returns an NewMailNotification instance containing the result of the XMPP's packet parsing.

Specified by:
parseIQ in interface org.jivesoftware.smack.provider.IQProvider
Parameters:
parser - the XmlPullParser that has the content of the packet.
Returns:
a new NewMailNotification instance with the result from the XmlPullParser.
Throws:
Exception - if an error occurs parsing the XML.

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.