1 /* 2 * Created on Aug 6, 2008 3 * Created by Paul Gardner 4 * 5 * Copyright (C) Azureus Software, Inc, All Rights Reserved. 6 * 7 * This program is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License 9 * as published by the Free Software Foundation; either version 2 10 * of the License, or (at your option) any later version. 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 */ 19 20 21 package com.aelitis.azureus.core.subs; 22 23 public interface 24 SubscriptionScheduler 25 { 26 public boolean download( Subscription subs, boolean is_auto )27 download( 28 Subscription subs, 29 boolean is_auto ) 30 31 throws SubscriptionException; 32 33 public void downloadAsync( Subscription subs, boolean is_auto )34 downloadAsync( 35 Subscription subs, 36 boolean is_auto ) 37 38 throws SubscriptionException; 39 40 public void download( Subscription subs, boolean is_auto, SubscriptionDownloadListener listener )41 download( 42 Subscription subs, 43 boolean is_auto, 44 SubscriptionDownloadListener listener ) 45 46 throws SubscriptionException; 47 48 public void download( Subscription subs, SubscriptionResult result )49 download( 50 Subscription subs, 51 SubscriptionResult result ); 52 } 53