siuying.gm.app.gmailer4j
Class GMailer4j

java.lang.Object
  extended by siuying.gm.app.gmailer4j.GMailer4j

public class GMailer4j
extends java.lang.Object

GMailer4j main program

Version:
0.3.15

Field Summary
protected static int fetcherID
           
static int LOGGING
           
static int LOGON_OFF
           
static int LOGON_ON
           
 
Constructor Summary
GMailer4j()
          Initialize the program and then show it Then it build a background worker thread that check mail periodically
 
Method Summary
 void connect()
          connect to gmail checking user name, password and proxy setting before login
 void conversationDownloaded(GMConversation conv)
          Called when a conversation is downloaded
 void disconnect()
          disconnect from gmail
 void endnotifyOnNew()
           
protected  void fetchBox(byte type, java.lang.String boxname, int position)
          Fetch a mailbox folder from gmail
 void fetchBox(java.lang.String name, int pos)
          Fetch mailbox or label
protected  void fetchConversation(java.lang.String id, int position)
           
protected  void init()
          Initialize the application Initialize preference, storage controllers, views
static void main(java.lang.String[] args)
           
 void notifyOnNew()
           
static void openBrowser(java.lang.String url)
          Open system web browser for the specified url
 void searchMessage()
          Use the search string in search panel text field to search on gmail Calling this function spawn a separate thread to do the job
protected  void setLogonStatus(int status)
          setLogonStatus
 void showMainFrame()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fetcherID

protected static int fetcherID

LOGON_OFF

public static final int LOGON_OFF
See Also:
Constant Field Values

LOGON_ON

public static final int LOGON_ON
See Also:
Constant Field Values

LOGGING

public static final int LOGGING
See Also:
Constant Field Values
Constructor Detail

GMailer4j

public GMailer4j()
Initialize the program and then show it Then it build a background worker thread that check mail periodically

Method Detail

init

protected void init()
Initialize the application Initialize preference, storage controllers, views


showMainFrame

public void showMainFrame()

openBrowser

public static void openBrowser(java.lang.String url)
Open system web browser for the specified url

Parameters:
url - the URL to open

connect

public void connect()
connect to gmail checking user name, password and proxy setting before login

To do:
add error handler

disconnect

public void disconnect()
disconnect from gmail

To do:
add error handler

fetchBox

public void fetchBox(java.lang.String name,
                     int pos)
Fetch mailbox or label


notifyOnNew

public void notifyOnNew()

endnotifyOnNew

public void endnotifyOnNew()

fetchBox

protected void fetchBox(byte type,
                        java.lang.String boxname,
                        int position)
Fetch a mailbox folder from gmail

Parameters:
String - boxname Name of the mailbox
To do:
add error handler

fetchConversation

protected void fetchConversation(java.lang.String id,
                                 int position)

setLogonStatus

protected void setLogonStatus(int status)
setLogonStatus

Parameters:
status - int

searchMessage

public void searchMessage()
Use the search string in search panel text field to search on gmail Calling this function spawn a separate thread to do the job


conversationDownloaded

public void conversationDownloaded(GMConversation conv)
Called when a conversation is downloaded


main

public static void main(java.lang.String[] args)