com.moneydance.apps.md.model
Class OnlineMailList

java.lang.Object
  extended by com.moneydance.apps.md.model.OnlineMailList

public class OnlineMailList
extends java.lang.Object

This class contains a set of mails that are used for online bill-mail. This information is very fluid and the structure will probably change, so all of the information is represented a StreamTable/Vector structure that can easily be serialized and deserialized from the data file.


Constructor Summary
OnlineMailList(StreamTable info)
           
 
Method Summary
 void addNewMail(OnlineMail mail)
          Adds the specified mail to the mail list.
 void clearAllMails()
          Remove all mails from the list (so that they can be resynchronized from the server.
 StreamTable getInfo()
          Should only be called from the io.*Writer classes for saving info in a file.
 OnlineMail getMail(int i)
          Get a service object for the service at the specified index.
 OnlineMail getMailByID(java.lang.String id)
           
 int getMailCount()
          Get the number of online services that the user has access to.
 int indexOf(OnlineMail mail)
          returns the index of the given mail message in the list, or -1 if it is not in the list.
 OnlineMail newMail()
          This creates a new mail that is associated with this list and the specified payee.
 void removeMail(int i)
          Remove the mail object at the specified index.
 boolean removeMail(OnlineMail mail)
          Remove the given mail object from the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OnlineMailList

public OnlineMailList(StreamTable info)
Method Detail

getInfo

public StreamTable getInfo()
Should only be called from the io.*Writer classes for saving info in a file.


clearAllMails

public void clearAllMails()
Remove all mails from the list (so that they can be resynchronized from the server.


getMailCount

public int getMailCount()
Get the number of online services that the user has access to.


getMailByID

public OnlineMail getMailByID(java.lang.String id)

getMail

public OnlineMail getMail(int i)
Get a service object for the service at the specified index. Returns null if the index is out of bounds.


indexOf

public int indexOf(OnlineMail mail)
returns the index of the given mail message in the list, or -1 if it is not in the list.


removeMail

public void removeMail(int i)
Remove the mail object at the specified index.


removeMail

public boolean removeMail(OnlineMail mail)
Remove the given mail object from the list. Returns true if the value was found in the list.


newMail

public OnlineMail newMail()
This creates a new mail that is associated with this list and the specified payee. Note: The mail is not added to the list. That should be done only by the OFXConnection.


addNewMail

public void addNewMail(OnlineMail mail)
Adds the specified mail to the mail list. This should only be called from the OFXConnection during mail list synchronization.