Class ZmConv
Class Detail
ZmConv(id, list)
Creates a conversation.
Method Detail
addMsg(msg, index)
Adds the message at the given index.
<static>
{ZmConv}
ZmConv.createFromDom(node, args)
Creates a conv from its JSON representation.
<static>
{ZmConv}
ZmConv.createFromMsg(msg, args)
Creates a conv from msg data.
{AjxVector}
getAddresses(type)
Gets a vector of addresses of the given type.
{ZmMailMsg}
getFirstHotMsg(params, callback)
Gets the first relevant msg of this conv, loading the conv msg list if necessary. If the
msg itself hasn't been loaded we also load the conv. The conv load is a SearchConvRequest
which fetches the content of the first msg and returns it via a callback. If no
callback is provided, the conv will not be loaded - if it already has a msg list, the msg
will come from there; otherwise, a skeletal msg with an ID is returned. Note that a conv
always has at least one msg.
{String}
getMuteIcon()
Gets the mute/unmute icon.
getNumUnreadMsgs()
Returns the number of unread messages in this conversation.
{String}
getStatusTooltip()
Gets the status tool tip.
{Boolean}
hasFlag(flag, value)
Checks if any of the msgs within this conversation has the given value for
the given flag. If the conv hasn't been loaded, looks at the conv-level flag.
{Boolean}
hasMatchingMsg(search, defaultValue)
Checks if this conversation has a message that matches the given search.
If we're not able to tell whether a msg matches, we return the given default value.
{Boolean}
isReadOnly()
Checks if the conversation is read only. Returns false if it cannot be determined.
load(params, callback)
Ensures that the requested range of msgs is loaded, getting them from the server if needed.
Because the list of msgs returned by the server contains info about which msgs matched the
search, we need to be careful about caching those msgs within the conv. This load function
should be used when in a search context, for example when expanding a conv that is the result
of a search.
loadMsgs(params, callback, batchCmd)
This method supports ZmZimletBase::getMsgsForConv. It loads *all* of this conv's
messages, including their content. Note that it is not search-based, and uses
GetConvRequest rather than SearchConvRequest.
removeMsg(msg)
Removes the message.
|
||||||||||||||||||||||||||||||||||
Documentation generated by JsDoc Toolkit 2.3.0 on Tue Jun 28 2016 21:01:35 GMT-0400 (EDT)
|