org.rococoa.cocoa.launchservices
Class LSApplicationParameters

java.lang.Object
  extended by com.sun.jna.Structure
      extended by com.ochafik.lang.jnaerator.runtime.Structure<LSApplicationParameters,LSApplicationParameters.ByValue,LSApplicationParameters.ByReference>
          extended by org.rococoa.cocoa.launchservices.LSApplicationParameters
All Implemented Interfaces:
StructureType, StructureTypeDependent, Comparable<Structure<LSApplicationParameters,LSApplicationParameters.ByValue,LSApplicationParameters.ByReference>>
Direct Known Subclasses:
LSApplicationParameters.ByReference, LSApplicationParameters.ByValue

public class LSApplicationParameters
extends Structure<LSApplicationParameters,LSApplicationParameters.ByValue,LSApplicationParameters.ByReference>

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.
native declaration : /System/Library/Frameworks/CoreServices.framework/Versions/Current/Frameworks/LaunchServices.framework/Headers/LSOpen.h:249
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
          The application to open (and possibly handle documents/URLs)
C type : const FSRef*
 HIServicesLibrary.__CFArray argv
          (a dictionary of CFStringRef keys and values).
 Pointer asyncLaunchRefCon
          The client refCon which will appear in subsequent launch notifications
C type : void*
 HIServicesLibrary.__CFDictionary environment
          Environment variables to set in the launched process
C type : CFDictionaryRef
 int flags
          See the LSLaunchFlags enum
C type : LSLaunchFlags
 AEDesc.ByReference initialEvent
          (which must be CFStringRefs) are passed as arguments to main() in the launched process.
 NativeLong version
          This must be set to zero by the client
C type : CFIndex
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE
 
Constructor Summary
LSApplicationParameters()
           
LSApplicationParameters(NativeLong version, int flags, FSRef.ByReference application, Pointer asyncLaunchRefCon, HIServicesLibrary.__CFDictionary environment, HIServicesLibrary.__CFArray argv, AEDesc.ByReference initialEvent)
           
 
Method Summary
static LSApplicationParameters[] newArray(int arrayLength)
           
 
Methods inherited from class com.ochafik.lang.jnaerator.runtime.Structure
byReference, byValue, castToArray, castToArray, castToArray, castToReferenceArray, castToReferenceArray, castToValueArray, castToValueArray, clone, compareTo, newArray, read, setDependency, toArray, toArray, toArray, toReferenceArray, toReferenceArray, toValueArray, toValueArray, use, use, use, use, write
 
Methods inherited from class com.sun.jna.Structure
autoRead, autoRead, autoWrite, autoWrite, clear, equals, getAutoRead, getAutoWrite, getPointer, hashCode, newInstance, readField, setAutoRead, setAutoSynch, setAutoWrite, size, toString, writeField, writeField
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.ochafik.lang.jnaerator.runtime.StructureType
getPointer, size
 

Field Detail

version

public NativeLong version
This must be set to zero by the client
C type : CFIndex


flags

public int flags
See the LSLaunchFlags enum
C type : LSLaunchFlags


application

public FSRef.ByReference application
The application to open (and possibly handle documents/URLs)
C type : const FSRef*


asyncLaunchRefCon

public Pointer asyncLaunchRefCon
The client refCon which will appear in subsequent launch notifications
C type : void*


environment

public HIServicesLibrary.__CFDictionary environment
Environment variables to set in the launched process
C type : CFDictionaryRef


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
C type : CFArrayRef


initialEvent

public AEDesc.ByReference 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.
C type : AppleEvent*

Constructor Detail

LSApplicationParameters

public LSApplicationParameters()

LSApplicationParameters

public LSApplicationParameters(NativeLong version,
                               int flags,
                               FSRef.ByReference application,
                               Pointer asyncLaunchRefCon,
                               HIServicesLibrary.__CFDictionary environment,
                               HIServicesLibrary.__CFArray argv,
                               AEDesc.ByReference initialEvent)
Parameters:
version - This must be set to zero by the client
C type : CFIndex
flags - See the LSLaunchFlags enum
C type : LSLaunchFlags
application - The application to open (and possibly handle documents/URLs)
C type : const FSRef*
asyncLaunchRefCon - The client refCon which will appear in subsequent launch notifications
C type : void*
environment - Environment variables to set in the launched process
C type : CFDictionaryRef
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
C type : CFArrayRef
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.
C type : AppleEvent*
Method Detail

newArray

public static LSApplicationParameters[] newArray(int arrayLength)


Copyright © 2009. All Rights Reserved.