com.googlecode.android_scripting
Class IntentBuilders

java.lang.Object
  extended by com.googlecode.android_scripting.IntentBuilders

public class IntentBuilders
extends java.lang.Object


Method Summary
static Intent buildBackgroundShortcutIntent(java.io.File script, Parcelable iconResource)
          Builds an intent that creates a shortcut to launch the provided script in the background.
static Intent buildInterpreterShortcutIntent(Interpreter interpreter, Parcelable iconResource)
          Builds an intent that creates a shortcut to launch the provided interpreter.
static Intent buildStartInBackgroundIntent(java.io.File script)
          Builds an intent that will launch a script in the background.
static Intent buildStartInTerminalIntent(java.io.File script)
          Builds an intent that launches a script in a terminal.
static Intent buildStartInterpreterIntent(java.lang.String interpreterName)
          Builds an intent that launches an interpreter.
static Intent buildTerminalShortcutIntent(java.io.File script, Parcelable iconResource)
          Builds an intent that creates a shortcut to launch the provided script in a terminal.
static Intent buildTriggerServiceIntent()
           
static PendingIntent buildTriggerServicePendingIntent(Context context)
          Creates a pending intent that can be used to start the trigger service.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildTriggerServiceIntent

public static Intent buildTriggerServiceIntent()

buildStartInBackgroundIntent

public static Intent buildStartInBackgroundIntent(java.io.File script)
Builds an intent that will launch a script in the background.

Parameters:
script - the script to launch
Returns:
the intent that will launch the script

buildStartInTerminalIntent

public static Intent buildStartInTerminalIntent(java.io.File script)
Builds an intent that launches a script in a terminal.

Parameters:
script - the script to launch
Returns:
the intent that will launch the script

buildStartInterpreterIntent

public static Intent buildStartInterpreterIntent(java.lang.String interpreterName)
Builds an intent that launches an interpreter.

Parameters:
interpreterName - the interpreter to launch
Returns:
the intent that will launch the interpreter

buildInterpreterShortcutIntent

public static Intent buildInterpreterShortcutIntent(Interpreter interpreter,
                                                    Parcelable iconResource)
Builds an intent that creates a shortcut to launch the provided interpreter.

Parameters:
interpreter - the interpreter to link to
iconResource - the icon resource to associate with the shortcut
Returns:
the intent that will create the shortcut

buildBackgroundShortcutIntent

public static Intent buildBackgroundShortcutIntent(java.io.File script,
                                                   Parcelable iconResource)
Builds an intent that creates a shortcut to launch the provided script in the background.

Parameters:
script - the script to link to
iconResource - the icon resource to associate with the shortcut
Returns:
the intent that will create the shortcut

buildTerminalShortcutIntent

public static Intent buildTerminalShortcutIntent(java.io.File script,
                                                 Parcelable iconResource)
Builds an intent that creates a shortcut to launch the provided script in a terminal.

Parameters:
script - the script to link to
iconResource - the icon resource to associate with the shortcut
Returns:
the intent that will create the shortcut

buildTriggerServicePendingIntent

public static PendingIntent buildTriggerServicePendingIntent(Context context)
Creates a pending intent that can be used to start the trigger service.

Parameters:
context - the context under whose authority to launch the intent
Returns:
PendingIntent object for running the trigger service