- /*
- * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
- * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
- */
-
- package javax.mail.event;
-
- import java.util.*;
-
- /**
- * This is the Listener interface for Connection events.
- *
- * @author John Mani
- */
-
- public interface ConnectionListener extends java.util.EventListener {
-
- /**
- * Invoked when a Store/Folder/Transport is opened.
- */
- public void opened(ConnectionEvent e);
-
- /**
- * Invoked when a Store is disconnected. Note that a folder
- * cannot be disconnected, so a folder will not fire this event
- */
- public void disconnected(ConnectionEvent e);
-
- /**
- * Invoked when a Store/Folder/Transport is closed.
- */
- public void closed(ConnectionEvent e);
- }