org.rococoa.cocoa.launchservices
Class LSApplicationParameters

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure
          extended by org.rococoa.cocoa.launchservices.LSApplicationParameters
Direct Known Subclasses:
LSApplicationParameters.ByReference, LSApplicationParameters.ByValue

public class LSApplicationParameters
extends com.ochafik.lang.jnaerator.runtime.Structure

LSApplicationParameters
* This structure is used by the new LSOpen functions to specify
an application, launch flags, and additional parameters
controlling how an application is launched.
* A version field allows the structure to be extended in
future releases.
This file was autogenerated by JNAerator,
a tool written by Olivier Chafik that uses a few opensource projects..
For help, please visit NativeLibs4Java, Rococoa, or JNA.


Nested Class Summary
static class LSApplicationParameters.ByReference
           
static class LSApplicationParameters.ByValue
           
 
Field Summary
 FSRef.ByReference application
           
 HIServicesLibrary.__CFArray argv
          (a dictionary of CFStringRef keys and values).
 Pointer asyncLaunchRefCon
           
 HIServicesLibrary.__CFDictionary environment
           
 int flags
           
 LaunchServicesLibrary.AERecord initialEvent
          (which must be CFStringRefs) are passed as arguments to main() in the launched process.
 NativeLong version
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Constructor Summary
LSApplicationParameters()
           
LSApplicationParameters(NativeLong version, int flags, FSRef.ByReference application, Pointer asyncLaunchRefCon, HIServicesLibrary.__CFDictionary environment, HIServicesLibrary.__CFArray argv, LaunchServicesLibrary.AERecord initialEvent)
           
 
Method Summary
 LSApplicationParameters.ByReference byReference()
           
 LSApplicationParameters.ByValue byValue()
           
 LSApplicationParameters clone()
           
 
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure
setupClone
 
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

version

public NativeLong version

flags

public int flags

application

public FSRef.ByReference application

asyncLaunchRefCon

public Pointer asyncLaunchRefCon

environment

public HIServicesLibrary.__CFDictionary environment

argv

public HIServicesLibrary.__CFArray argv
(a dictionary of CFStringRef keys and values). Can be NULL.
Note: argv is ignored on 10.4. On 10.5 and later, the array elements


initialEvent

public LaunchServicesLibrary.AERecord initialEvent
(which must be CFStringRefs) are passed as arguments to main() in the launched process.
The first Apple Event to be sent to the launched process. Can be NULL.

Constructor Detail

LSApplicationParameters

public LSApplicationParameters()

LSApplicationParameters

public LSApplicationParameters(NativeLong version,
                               int flags,
                               FSRef.ByReference application,
                               Pointer asyncLaunchRefCon,
                               HIServicesLibrary.__CFDictionary environment,
                               HIServicesLibrary.__CFArray argv,
                               LaunchServicesLibrary.AERecord initialEvent)
Parameters:
version - This must be set to zero by the client
flags - See the LSLaunchFlags enum
application - The application to open (and possibly handle documents/URLs)
asyncLaunchRefCon - The client refCon which will appear in subsequent launch notifications
environment - Environment variables to set in the launched process
argv - (a dictionary of CFStringRef keys and values). Can be NULL.
Note: argv is ignored on 10.4. On 10.5 and later, the array elements
initialEvent - (which must be CFStringRefs) are passed as arguments to main() in the launched process.
The first Apple Event to be sent to the launched process. Can be NULL.
Method Detail

byReference

public LSApplicationParameters.ByReference byReference()

byValue

public LSApplicationParameters.ByValue byValue()

clone

public LSApplicationParameters clone()
Overrides:
clone in class Object