All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mindoo.domino.jna.internal.structs.NotesFileObjectStruct Maven / Gradle / Ivy

There is a newer version: 0.9.53
Show newest version
package com.mindoo.domino.jna.internal.structs;

import java.security.AccessController;
import java.security.PrivilegedAction;
import java.util.Arrays;
import java.util.List;

import com.sun.jna.Pointer;
import com.sun.jna.Structure;

/**
 * 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. */ public class NotesFileObjectStruct extends BaseStructure { /** * object header
* C type : OBJECT_DESCRIPTOR */ public NotesObjectDescriptorStruct Header; /** length of file name */ public short FileNameLength; /** text delimiters (HOST_xxx) */ public short HostType; /** compression used (COMPRESS_xxx) */ public short CompressionType; /** orig. file attribs (ATTRIB_xxx) */ public short FileAttributes; /** misc. flags (FILEFLAG_xxx) */ public short Flags; /** orig. file size */ public int FileSize; /** * orig. file date/time of creation
* C type : TIMEDATE */ public NotesTimeDateStruct FileCreated; /** * orig. file date/time of mod.
* C type : TIMEDATE */ public NotesTimeDateStruct FileModified; /** * @deprecated only public to be used by JNA; use static newInstance method instead to run in AccessController.doPrivileged block */ public NotesFileObjectStruct() { super(); setAlignType(Structure.ALIGN_NONE); } public static NotesFileObjectStruct newInstance() { return AccessController.doPrivileged(new PrivilegedAction() { @Override public NotesFileObjectStruct run() { return new NotesFileObjectStruct(); } }); } @Override protected List getFieldOrder() { return Arrays.asList("Header", "FileNameLength", "HostType", "CompressionType", "FileAttributes", "Flags", "FileSize", "FileCreated", "FileModified"); } /** * @param Header object header
* C type : OBJECT_DESCRIPTOR
* @param FileNameLength length of file name
* @param HostType text delimiters (HOST_xxx)
* @param CompressionType compression used (COMPRESS_xxx)
* @param FileAttributes orig. file attribs (ATTRIB_xxx)
* @param Flags misc. flags (FILEFLAG_xxx)
* @param FileSize orig. file size
* @param FileCreated orig. file date/time of creation
* C type : TIMEDATE
* @param FileModified orig. file date/time of mod.
* C type : TIMEDATE * @deprecated only public to be used by JNA; use static newInstance method instead to run in AccessController.doPrivileged block */ public NotesFileObjectStruct(NotesObjectDescriptorStruct Header, short FileNameLength, short HostType, short CompressionType, short FileAttributes, short Flags, int FileSize, NotesTimeDateStruct FileCreated, NotesTimeDateStruct FileModified) { super(); setAlignType(Structure.ALIGN_NONE); this.Header = Header; this.FileNameLength = FileNameLength; this.HostType = HostType; this.CompressionType = CompressionType; this.FileAttributes = FileAttributes; this.Flags = Flags; this.FileSize = FileSize; this.FileCreated = FileCreated; this.FileModified = FileModified; } public static NotesFileObjectStruct newInstance(final NotesObjectDescriptorStruct Header, final short FileNameLength, final short HostType, final short CompressionType, final short FileAttributes, final short Flags, final int FileSize, final NotesTimeDateStruct FileCreated, final NotesTimeDateStruct FileModified) { return AccessController.doPrivileged(new PrivilegedAction() { @Override public NotesFileObjectStruct run() { return new NotesFileObjectStruct(Header, FileNameLength, HostType, CompressionType, FileAttributes, Flags, FileSize, FileCreated, FileModified); } }); } /** * @deprecated only public to be used by JNA; use static newInstance method instead to run in AccessController.doPrivileged block * * @param peer pointer */ public NotesFileObjectStruct(Pointer peer) { super(peer); setAlignType(Structure.ALIGN_NONE); } public static NotesFileObjectStruct newInstance(final Pointer peer) { return AccessController.doPrivileged(new PrivilegedAction() { @Override public NotesFileObjectStruct run() { return new NotesFileObjectStruct(peer); } }); } public static class ByReference extends NotesFileObjectStruct implements Structure.ByReference { }; public static class ByValue extends NotesFileObjectStruct implements Structure.ByValue { }; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy