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

org.virtualbox_4_2.IParallelPort Maven / Gradle / Ivy

There is a newer version: 4.2.8
Show newest version

/*
 *  Copyright (C) 2010-2011 Oracle Corporation
 *
 *  This file is part of the VirtualBox SDK, as available from
 *  http://www.virtualbox.org.  This library is free software; you can
 *  redistribute it and/or modify it under the terms of the GNU Lesser General
 *  Public License as published by the Free Software Foundation, in version 2.1
 *  as it comes in the "COPYING.LIB" file of the VirtualBox SDK distribution.
 *  This library is distributed in the hope that it will be useful, but WITHOUT
 *  ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
 *  FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
 *  License for more details.
 *
 * IParallelPort.java
 *
 * DO NOT EDIT! This is a generated file.
 * Generated from: src/VBox/Main/idl/VirtualBox.xidl (VirtualBox's interface definitions in XML)
 * Generator: src/VBox/Main/glue/glue-java.xsl
 */

package org.virtualbox_4_2;

import org.virtualbox_4_2.jaxws.*;
import javax.xml.ws.*;
import java.util.List;

/**

      The IParallelPort interface represents the virtual parallel port device.

      The virtual parallel port device acts like an ordinary parallel port
      inside the virtual machine. This device communicates to the real
      parallel port hardware using the name of the parallel device on the host
      computer specified in the #path attribute.

      Each virtual parallel port device is assigned a base I/O address and an
      IRQ number that will be reported to the guest operating system and used
      to operate the given parallel port from within the virtual machine.

      
@see org.virtualbox_4_2.IMachine#getParallelPort(Long)

Interface ID: {0C925F06-DD10-4B77-8DE8-294D738C3214}
*/
public class IParallelPort extends IUnknown {

    public IParallelPort(String wrapped, VboxPortType port) {
          super(wrapped, port);
    }
/**

        Slot number this parallel port is plugged into. Corresponds to
        the value you pass to {@link org.virtualbox_4_2.IMachine#getParallelPort(Long)}
        to obtain this instance.
      
@return Long

*/
    public Long getSlot() {
      try {
         Long retVal = port.iParallelPortGetSlot(obj);
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     }
    }
/**

        Flag whether the parallel port is enabled. If disabled,
        the parallel port will not be reported to the guest OS.
      
@return Boolean

*/
    public Boolean getEnabled() {
      try {
         Boolean retVal = port.iParallelPortGetEnabled(obj);
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     }
    }
/**

        Flag whether the parallel port is enabled. If disabled,
        the parallel port will not be reported to the guest OS.
      
@param value Boolean

*/
    public void setEnabled(Boolean value) {
      try {
        port.iParallelPortSetEnabled(obj, value);
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     }
    }
/**
Base I/O address of the parallel port.
@return Long

*/
    public Long getIOBase() {
      try {
         Long retVal = port.iParallelPortGetIOBase(obj);
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     }
    }
/**
Base I/O address of the parallel port.
@param value Long

*/
    public void setIOBase(Long value) {
      try {
        port.iParallelPortSetIOBase(obj, value);
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     }
    }
/**
IRQ number of the parallel port.
@return Long

*/
    public Long getIRQ() {
      try {
         Long retVal = port.iParallelPortGetIRQ(obj);
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     }
    }
/**
IRQ number of the parallel port.
@param value Long

*/
    public void setIRQ(Long value) {
      try {
        port.iParallelPortSetIRQ(obj, value);
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     }
    }
/**

        Host parallel device name. If this parallel port is enabled, setting a
         null or an empty string as this attribute's value will result in
        an error.
      
@return String

*/
    public String getPath() {
      try {
         String retVal = port.iParallelPortGetPath(obj);
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     }
    }
/**

        Host parallel device name. If this parallel port is enabled, setting a
         null or an empty string as this attribute's value will result in
        an error.
      
@param value String

*/
    public void setPath(String value) {
      try {
        port.iParallelPortSetPath(obj, value);
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(e, e.getMessage());
     }
    }
    public static IParallelPort queryInterface(IUnknown obj) {
       return obj == null ?  null : new IParallelPort(obj.getWrapped(), obj.getRemoteWSPort());
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy