1 /* 2 * File : PluginEvent.java 3 * Created : 06-Feb-2004 4 * By : parg 5 * 6 * Azureus - a Java Bittorrent client 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details ( see the LICENSE file ). 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 21 */ 22 23 package org.gudy.azureus2.plugins; 24 25 /** allow config wizard progress to be determined 26 * 27 * @author parg 28 * @since 2.0.8.0 29 */ 30 public interface 31 PluginEvent 32 { 33 /** 34 * Not guaranteed to trigger. Used to be triggered at startup 35 */ 36 public static final int PEV_CONFIGURATION_WIZARD_STARTS = 1; 37 /** 38 * Not guaranteed to trigger. Used to be triggered at startup 39 */ 40 public static final int PEV_CONFIGURATION_WIZARD_COMPLETES = 2; 41 public static final int PEV_INITIALISATION_PROGRESS_TASK = 3; 42 public static final int PEV_INITIALISATION_PROGRESS_PERCENT = 4; 43 /** 44 * @since 2403 45 */ 46 public static final int PEV_INITIAL_SHARING_COMPLETE = 5; 47 48 /** 49 * Triggered when UI Initialization is complete. This is after the UI 50 * is attached. This trigger is helpful if you need access to an UI 51 * element from a plugin after you in the UI attachment order. 52 * 53 * @since 2403 54 */ 55 public static final int PEV_INITIALISATION_UI_COMPLETES = 6; 56 57 /** 58 * This event is triggered when all plugins have had their 'initialize' method called 59 * on startup. This differs from the 'initialisationComplete' callback on PluginListener 60 * in that it is *guranteed* to be triggered before any other initialisation actions 61 * take place. 62 */ 63 64 public static final int PEV_ALL_PLUGINS_INITIALISED = 7; 65 66 /** 67 * Data is the PluginInterface of installed plugin 68 * @since 4.1.0.1 69 */ 70 public static final int PEV_PLUGIN_OPERATIONAL = 8; 71 72 public static final int PEV_PLUGIN_NOT_OPERATIONAL = 9; 73 74 public static final int PEV_PLUGIN_INSTALLED = 10; // value is String plugin_id 75 public static final int PEV_PLUGIN_UPDATED = 11; // value is String plugin_id 76 public static final int PEV_PLUGIN_UNINSTALLED = 12; // value is String plugin_id 77 78 /** 79 * Plugin specific events can be raised by a plugin to communicate with 80 * other components. The event type must start from the number below 81 */ 82 83 public static final int PEV_FIRST_USER_EVENT = 1024; 84 85 public int getType()86 getType(); 87 88 public Object getValue()89 getValue(); 90 } 91