Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by org.jivesoftware.smack.packet.Packet
      extended by org.jivesoftware.smack.packet.IQ
          extended by net.java.sip.communicator.impl.protocol.jabber.extensions.mailnotification.NewMailNotificationIQ

public class NewMailNotificationIQ
extends org.jivesoftware.smack.packet.IQ

A straightforward IQ extension. A NewMailNotification object is created via the NewMailNotificationProvider. It contains the information we need in order to determine whether there are new mails waiting for us on the mail server.

Author:
Matthieu Helleringer, Alain Knaebel, Emil Ivov

Nested Class Summary
 
Nested classes/interfaces inherited from class org.jivesoftware.smack.packet.IQ
org.jivesoftware.smack.packet.IQ.Type
 
Field Summary
static String ELEMENT_NAME
          The name of the element that Google use to transport new mail notifications.
static String NAMESPACE
          The name space for new mail notification packets.
 
Fields inherited from class org.jivesoftware.smack.packet.Packet
DEFAULT_LANGUAGE, ID_NOT_AVAILABLE
 
Constructor Summary
NewMailNotificationIQ()
           
 
Method Summary
 String getChildElementXML()
          Returns the sub-element XML section of the IQ packet.
 
Methods inherited from class org.jivesoftware.smack.packet.IQ
createErrorResponse, createResultIQ, getType, setType, toXML
 
Methods inherited from class org.jivesoftware.smack.packet.Packet
addExtension, deleteProperty, equals, getDefaultLanguage, getError, getExtension, getExtension, getExtensions, getExtensionsXML, getFrom, getPacketID, getProperty, getPropertyNames, getTo, getXmlns, hashCode, nextID, removeExtension, setDefaultXmlns, setError, setFrom, setPacketID, setProperty, setTo
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAMESPACE

public static final String NAMESPACE
The name space for new mail notification packets.

See Also:
Constant Field Values

ELEMENT_NAME

public static final String ELEMENT_NAME
The name of the element that Google use to transport new mail notifications.

See Also:
Constant Field Values
Constructor Detail

NewMailNotificationIQ

public NewMailNotificationIQ()
Method Detail

getChildElementXML

public String getChildElementXML()
Returns the sub-element XML section of the IQ packet.

Specified by:
getChildElementXML in class org.jivesoftware.smack.packet.IQ
Returns:
the child element section of the IQ XML

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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