1 /*
2 * $HeadURL: $
3 * $Date: $
4 * $Revision: $
5 * $Author: $
6 *
7 * Copyright (c) 2005 MindTree Consulting Ltd.
8 *
9 * This file is part of Insight.
10 *
11 * Insight is free software: you can redistribute it and/or modify it under the
12 * terms of the GNU General Public License as published by the Free Software
13 * Foundation, either version 3 of the License, or (at your option) any later
14 * version.
15 *
16 * Insight is distributed in the hope that it will be useful, but
17 * WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
19 * Public License for more details.
20 *
21 * You should have received a copy of the GNU General Public License along with
22 * Insight. If not, see <http://www.gnu.org/licenses/>.
23 */
24 package com.mindtree.techworks.insight.receiver;
25
26 /**
27 *
28 * The <code>ReceiverInterpreter</code> interface is a used for notifying
29 * for notifying ReciverListeners. All the Receiver which intend to notify
30 * Listeners need to implement this interface.
31 *
32 * @author Shailesh Sinha
33 * @version 1.0, 04/10/25
34 */
35
36 public interface ReceiverInterpreter {
37
38 /**
39 * Constants for Info flags reported at the end of loading files
40 */
41 public static final int SUCCESS = 0;
42 public static final int FAILURE = 1;
43
44 /**
45 * Adds the specified ReceiverListener.
46 * @param receiverListener the ReceiverListener to add
47 */
48 public void addReceiverListener (ReceiverListener receiverListener);
49
50 /**
51 * Removes the specified ReceiverListener
52 * @param receiverListener the ReceiverListener to remove
53 */
54 public void removeReceiverListener (ReceiverListener receiverListener);
55
56 }