1 /*
2 * (C) 2002 David Carr david@carr.name
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 */
18
19 package net.sourceforge.mflow.api;
20
21 import javax.swing.JDialog;
22
23 /***
24 * @author carrd
25 */
26 public interface Account {
27 /***
28 * @return the name of the account
29 */
30 String getName();
31
32 /***
33 * @return a description of the account type
34 */
35 String getType();
36
37 /***
38 * @return the class name of account implementation
39 */
40 String getClassName();
41
42 /***
43 * @return a configuration dialog for the account
44 */
45 JDialog getConfigurationDialog();
46
47 /***
48 * @return the message receiver, if any, associated with the account, or null
49 */
50 MsgReceiver getReceiver();
51
52 /***
53 * @return the message source, if any, associated with the account, or null
54 */
55 MsgSource getSource();
56
57 /***
58 * @return the message folder, if any, associated with the account, or null
59 */
60 MsgFolder getFolder();
61
62 /***
63 * @return a dialog to create a new message in this account
64 */
65 JDialog getNewMessageDialog();
66
67 /***
68 * @param msg the message to reply to
69 * @return a dialog to reply to the message
70 */
71 JDialog getReplyDialog(Msg msg);
72
73 /***
74 * @param msg the message to forward
75 * @return a dialog to forward the message
76 */
77 JDialog getForwardDialog(Msg msg);
78 }
This page was automatically generated by Maven