CommandLinePluginInterface::RunResult RemoteAccessFeaturePlugin::handle_control( const QStringList& arguments )
{
	if( arguments.count() < 1 )
	{
		return NotEnoughArguments;
	}

	Computer remoteComputer;
	remoteComputer.setHostAddress( arguments.first() );

	new RemoteAccessWidget( remoteComputer, false );

	qApp->exec();

	return Successful;
}
CommandLinePluginInterface::RunResult RemoteAccessFeaturePlugin::handle_view( const QStringList& arguments )
{
	if( arguments.count() < 1 )
	{
		return NotEnoughArguments;
	}

	if( initAuthentication() == false )
	{
		return Failed;
	}

	Computer remoteComputer;
	remoteComputer.setHostAddress( arguments.first() );

	new RemoteAccessWidget( remoteComputer, true );

	qApp->exec();

	return Successful;
}