diff options
Diffstat (limited to 'proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/INotifier.java')
-rw-r--r-- | proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/INotifier.java | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/INotifier.java b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/INotifier.java new file mode 100644 index 0000000000..edeb2280a3 --- /dev/null +++ b/proctools/plugins/org.eclipse.sequoyah.device.linuxtools.base/src/org/eclipse/sequoyah/device/linuxtools/tools/INotifier.java @@ -0,0 +1,51 @@ +/******************************************************************************** + * Copyright (c) 2008 Motorola Inc. All rights reserved. + * This program and the accompanying materials are made available under the terms + * of the Eclipse Public License v1.0 which accompanies this distribution, and is + * available at http://www.eclipse.org/legal/epl-v10.html + * + * Initial Contributor: + * Otavio Ferranti (Motorola) + * + * Contributors: + * {Name} (company) - description of contribution. + ********************************************************************************/ + +package org.eclipse.sequoyah.device.linuxtools.tools; + +import java.util.List; + +import org.eclipse.sequoyah.device.linuxtools.network.IConstants.EventCode; + +/** + * @author Otavio Ferranti + */ +public interface INotifier { + + /** + * @param listener + */ + public void addListener(IListener listener); + + /** + * @return + */ + public List<IListener> listeners(); + + /** + * @param event + * @param result + */ + public void notifyListeners (EventCode event, Object result); + + /** + * + */ + public void removeAllListeners (); + + /** + * @param listener + */ + public void removeListener (IListener listener); + +} |