org.rococoa.cocoa.launchservices
Class LSApplicationParameters
java.lang.Object
com.sun.jna.Structure
com.ochafik.lang.jnaerator.runtime.Structure
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.
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 |
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.
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.
byReference
public LSApplicationParameters.ByReference byReference()
byValue
public LSApplicationParameters.ByValue byValue()
clone
public LSApplicationParameters clone()
- Overrides:
clone
in class Object