当前位置: 首页>>代码示例>>Java>>正文


Java AZ3Functions类代码示例

本文整理汇总了Java中com.aelitis.azureus.core.util.AZ3Functions的典型用法代码示例。如果您正苦于以下问题:Java AZ3Functions类的具体用法?Java AZ3Functions怎么用?Java AZ3Functions使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


AZ3Functions类属于com.aelitis.azureus.core.util包,在下文中一共展示了AZ3Functions类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: subscribeToCategory

import com.aelitis.azureus.core.util.AZ3Functions; //导入依赖的package包/类
public void
subscribeToCategory(
	String	cat )

	throws BuddyPluginException
{
	AZ3Functions.provider az3 = AZ3Functions.getProvider();

	if ( az3 == null ){
		
		throw( new BuddyPluginException( "AZ3 subsystem not available" ));
	}
	
	try{
		az3.subscribeToRSS( 
			getName() + ": " + cat, 
			getSubscriptionURL(cat),
			15,
			false,
			getPublicKey() + ":" + cat );
			
	}catch( Throwable e ){
			
		throw( new BuddyPluginException( "Failed to add subscription", e ));
	}
}
 
开发者ID:thangbn,项目名称:Direct-File-Downloader,代码行数:27,代码来源:BuddyPluginBuddy.java

示例2: addLocalActivity

import com.aelitis.azureus.core.util.AZ3Functions; //导入依赖的package包/类
public static void
addLocalActivity(
	String															uid,
	String															icon_id,
	String															name,
	String[]														actions,
	Class<? extends AZ3Functions.provider.LocalActivityCallback>	callback,
	Map<String,String>												callback_data )
{
}
 
开发者ID:vuze,项目名称:vuze-remote-for-android,代码行数:11,代码来源:LocalActivityManager.java

示例3: run

import com.aelitis.azureus.core.util.AZ3Functions; //导入依赖的package包/类
public static void run( final DownloadManager dm) {
if(dm != null) {
	LaunchManager	launch_manager = LaunchManager.getManager();
	
	LaunchManager.LaunchTarget target = launch_manager.createTarget( dm );
	
	launch_manager.launchRequest(
		target,
		new LaunchManager.LaunchAction()
		{
			public void
			actionAllowed()
			{
				AZ3Functions.provider prov = AZ3Functions.getProvider();
				
				if ( prov != null ){
					
					prov.setOpened( dm, true );
				}
				
				Utils.execSWTThread(
					new Runnable()
					{
						public void
						run()
						{
						   	if (run != null) {
					    		run.run(dm);
					    	} else {
					    		Utils.launch(dm.getSaveLocation().toString());
					    	}
						}
					});
			}
			
			public void
			actionDenied(
				Throwable			reason )
			{
				Debug.out( "Launch request denied", reason );
			}
		});
}
 }
 
开发者ID:AcademicTorrents,项目名称:AcademicTorrents-Downloader,代码行数:45,代码来源:ManagerUtils.java

示例4: defaultSelected

import com.aelitis.azureus.core.util.AZ3Functions; //导入依赖的package包/类
public void defaultSelected(TableRowCore[] rows, int stateMask) {
	DiskManagerFileInfo fileInfo = (DiskManagerFileInfo) tv.getFirstSelectedDataSource();
	
	if ( fileInfo == null ){
		return;
	}
	
	String mode = COConfigurationManager.getStringParameter("list.dm.dblclick");
	
	if ( mode.equals("2")){
		
		boolean openMode = COConfigurationManager.getBooleanParameter("MyTorrentsView.menu.show_parent_folder_enabled");
		
		ManagerUtils.open( fileInfo, openMode) ;
		
	}else if ( mode.equals( "3" )){
		
		if ( fileInfo.getAccessMode() == DiskManagerFileInfo.READ ){
			
			Utils.launch(fileInfo);
		}	
	}else{
		
		AZ3Functions.provider az3 = AZ3Functions.getProvider();
		
		if ( az3 != null ){
			
			DownloadManager dm = fileInfo.getDownloadManager();
			
			if ( az3.canPlay(dm, fileInfo.getIndex()) || (stateMask & SWT.CONTROL) != 0 ){
				
				az3.play( dm, fileInfo.getIndex() );
				
				return;
			}
		}
		
		if ( fileInfo.getAccessMode() == DiskManagerFileInfo.READ ){
			
			Utils.launch(fileInfo);
		}
	}
}
 
开发者ID:AcademicTorrents,项目名称:AcademicTorrents-Downloader,代码行数:44,代码来源:FilesView.java


注:本文中的com.aelitis.azureus.core.util.AZ3Functions类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。