1 /* 2 * Created on Oct 21, 2014 3 * Created by Paul Gardner 4 * 5 * Copyright 2014 Azureus Software, Inc. All rights reserved. 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. 20 */ 21 22 23 package com.aelitis.azureus.plugins.net.buddy; 24 25 import java.util.Map; 26 27 import org.gudy.azureus2.core3.download.DownloadManager; 28 29 import com.aelitis.azureus.plugins.net.buddy.BuddyPluginBeta.ChatInstance; 30 31 public interface 32 BuddyPluginViewInterface 33 { 34 public void openChat( ChatInstance chat )35 openChat( 36 ChatInstance chat ); 37 38 public static final String VP_SWT_COMPOSITE = "swt_comp"; 39 public static final String VP_DOWNLOAD = "download"; // DownloadAdapter 40 public static final String VP_CHAT = "chat"; // ChatInstance 41 42 public View buildView( Map<String,Object> properties, ViewListener listener )43 buildView( 44 Map<String,Object> properties, 45 ViewListener listener ); 46 47 public interface 48 DownloadAdapter 49 { 50 public DownloadManager getCoreDownload()51 getCoreDownload(); 52 53 public String[] getNetworks()54 getNetworks(); 55 56 public String getChatKey()57 getChatKey(); 58 } 59 60 public interface 61 View 62 { 63 public void activate()64 activate(); 65 66 public void handleDrop( String drop )67 handleDrop( 68 String drop ); 69 70 public void destroy()71 destroy(); 72 } 73 74 public interface 75 ViewListener 76 { 77 public void chatActivated( ChatInstance chat )78 chatActivated( 79 ChatInstance chat ); 80 } 81 } 82