|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.smack.packet.Packet
org.jivesoftware.smack.packet.IQ
net.java.sip.communicator.impl.protocol.jabber.extensions.mailnotification.MailboxIQ
public class MailboxIQ
A straightforward extension of the IQ. A Mailbox object is created via the MailboxProvider. It contains all the information we need to notify the user about a new E-Mail message.
| 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 | |
|---|---|
MailboxIQ()
|
|
| Method Summary | |
|---|---|
void |
addThread(MailThreadInfo threadInfo)
Adds a thread info element to the list of threads that this MailboxIQ is referring to. |
String |
getChildElementXML()
Returns the sub-element XML section of the IQ packet, or null if there isn't one. |
long |
getDate()
Returns the date of the most recent unread mail content on the mail server, in milliseconds since the UNIX epoch. |
long |
getResultTime()
Returns the time when these results were generated, in milliseconds since the UNIX epoch. |
int |
getThreadCount()
Returns the number of threads that are currently in this MailboxIQ. |
int |
getTotalMatched()
Returns the number of unread mail messages |
String |
getUrl()
Returns the http URL of the mail server containing the messages that this IQ refers to. |
boolean |
isTotalEstimate()
Determines whether the total of unread mail messages is an estimate or not. |
void |
setDate(long date)
Sets the date of the most recent unread mail content on the mail server, in milliseconds since the UNIX epoch. |
void |
setResultTime(long l)
Sets the time these results were generated, in milliseconds since the UNIX epoch. |
void |
setTotalEstimate(boolean totalEstimate)
Specifies whether the total number of unread mail messages contained in this object is an estimate or a precise count. |
void |
setTotalMatched(int totalMatched)
Specifies the number of unread mail messages. |
void |
setUrl(String url)
Specifies an HTTP URL of the mail server that contains the messages indicated in this Mailbox IQ. |
Iterator<MailThreadInfo> |
threads()
Returns the list of threads that this MailboxIQ refers to. |
| 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 |
|---|
public static final String NAMESPACE
public static final String ELEMENT_NAME
| Constructor Detail |
|---|
public MailboxIQ()
| Method Detail |
|---|
public void setDate(long date)
date - the date longpublic long getDate()
public long getResultTime()
public void setResultTime(long l)
l - the resultTime longpublic int getTotalMatched()
public void setTotalMatched(int totalMatched)
totalMatched - the number of matched mail messagespublic boolean isTotalEstimate()
public void setTotalEstimate(boolean totalEstimate)
totalEstimate - true if the number of total messages here
is an estimate and false otherwise.public String getChildElementXML()
getChildElementXML in class org.jivesoftware.smack.packet.IQpublic void setUrl(String url)
url - the http URL where users could check the messages that this
IQ refers to.public String getUrl()
public void addThread(MailThreadInfo threadInfo)
threadInfo - the new thread info instance that we should add to the
thread list.public int getThreadCount()
public Iterator<MailThreadInfo> threads()
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||