|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mucommander.job.FileJob
com.mucommander.job.TransferFileJob
com.mucommander.job.SendMailJob
public class SendMailJob
This job sends one or several files by email.
| Field Summary |
|---|
| Fields inherited from class com.mucommander.job.FileJob |
|---|
APPEND_ACTION, APPEND_TEXT, baseSourceFolder, CANCEL_ACTION, CANCEL_TEXT, currentFile, currentFileIndex, currentFilename, files, FINISHED, INTERRUPTED, mainFrame, nbFiles, NOT_STARTED, PAUSED, progressDialog, RETRY_ACTION, RETRY_TEXT, RUNNING, SKIP_ACTION, SKIP_TEXT |
| Constructor Summary | |
|---|---|
SendMailJob(ProgressDialog progressDialog,
MainFrame mainFrame,
FileSet filesToSend,
java.lang.String recipientString,
java.lang.String mailSubject,
java.lang.String mailBody)
|
|
| Method Summary | |
|---|---|
java.lang.String |
getStatusString()
This method is overridden to return a custom string "Checking integrity of CURRENT_FILE" when the current file is being checked for integrity. |
protected boolean |
hasFolderChanged(AbstractFile folder)
Returns true if the given folder has or may have been modified by this job. |
protected void |
jobStarted()
This method is called when this job starts, before the first call to processFile() is made. |
protected void |
jobStopped()
Method overridden to close connection to the mail server. |
static boolean |
mailPreferencesSet()
Returns true if mail preferences have been set. |
protected boolean |
processFile(AbstractFile file,
java.lang.Object recurseParams)
Automatically called by FileJob.run() for each file that needs to be processed. |
| Methods inherited from class com.mucommander.job.FileJob |
|---|
addFileJobListener, getCurrentFileIndex, getCurrentFilename, getEffectiveJobTime, getEndDate, getNbFiles, getPausedTime, getPauseStartDate, getStartDate, getState, interrupt, jobCompleted, refreshTables, removeFileJobListener, run, selectFileWhenFinished, setAutoUnmark, setPaused, setState, showErrorDialog, showErrorDialog, start, waitForUserResponse |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SendMailJob(ProgressDialog progressDialog,
MainFrame mainFrame,
FileSet filesToSend,
java.lang.String recipientString,
java.lang.String mailSubject,
java.lang.String mailBody)
| Method Detail |
|---|
public static boolean mailPreferencesSet()
protected boolean processFile(AbstractFile file,
java.lang.Object recurseParams)
FileJobFileJob.run() for each file that needs to be processed.
processFile in class FileJobfile - the file or folder to processrecurseParams - array of parameters which can be used when calling this method recursively, contains null when called by FileJob.run()
true if the operation was sucessfulprotected boolean hasFolderChanged(AbstractFile folder)
FileJobtrue if the given folder has or may have been modified by this job.
This method is called after this job has finished processing files, to determine if the current MainFrame's
file tables need to be refreshed to reveal the modified contents.
hasFolderChanged in class FileJobfolder - the folder to test
protected void jobStarted()
processFile() is made.
This method here does nothing but it can be overriden by subclasses to perform some first-time initializations.
jobStarted in class FileJobprotected void jobStopped()
jobStopped in class TransferFileJobpublic java.lang.String getStatusString()
TransferFileJob
getStatusString in class TransferFileJob
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This file is part of muCommander - Copyright (C) 2002-2008 Maxence Bernard