Source code: plugins/Messenger/MessengerEngine.java
1 /*
2 This file is part of DeXter - Java Internet Communication Solution
3 Copyright (c) 2002 Tobias Riemer
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 */
19
20 /*
21 * MessengerEngine.java
22 *
23 * Created on 03. Oktober 2002, 13:14
24 */
25
26 package plugins.Messenger;
27 /**
28 *
29 * @author Tobias Riemer
30 */
31 public interface MessengerEngine {
32
33 public String getName();
34 public javax.swing.ImageIcon getOfflineIcon();
35 public javax.swing.ImageIcon getOnlineIcon();
36 public String getIniFileName();
37 public java.util.Map getStatusMap();
38 public void setStatus(String status);
39 public String getStatus();
40 public void connect() throws Exception;
41 public void syncronize();
42 public void process() throws Exception ;
43
44 public String getAccount();
45 public String getNick();
46 public String getPassword();
47 public void setAccount(String account) ;
48
49 public void sendNick(String nick);
50 public void setPassword(String password);
51
52 public void blockContact(String login);
53 public void unblockContact(String login);
54 public void addContact(String login);
55 public void removeContact(plugins.Messenger.entity.Contact con);
56
57 public java.util.Map getContactList();
58 public void startConversation(plugins.Messenger.entity.Contact con);
59 public void addContactChangeListener(plugins.Messenger.event.ContactChangeListener ccl);
60 public void removeContactChangeListener(plugins.Messenger.event.ContactChangeListener ccl);
61
62 public void addConversationStartListener(plugins.Messenger.event.ConversationStartListener cl);
63 public void removeConversationStartListener(plugins.Messenger.event.ConversationStartListener cl);
64
65 public void setMessenger(Messenger messenger);
66 public Messenger getMessenger();
67 }