Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  
  /*
   *  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 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 also:
IMachine.getParallelPort(java.lang.Long) Interface ID: {0C925F06-DD10-4B77-8DE8-294D738C3214}
 
 public class IParallelPort extends IUnknown {
 
     public IParallelPort(String wrappedVboxPortType port) {
           super(wrappedport);
     }
Slot number this parallel port is plugged into. Corresponds to the value you pass to IMachine.getParallelPort(java.lang.Long) to obtain this instance.

Returns:
Long
 
     public Long getSlot() {
       try {
          Long retVal = .iParallelPortGetSlot();
          return retVal;
      } catch (InvalidObjectFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      } catch (RuntimeFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      }
     }
Flag whether the parallel port is enabled. If disabled, the parallel port will not be reported to the guest OS.

Returns:
Boolean
 
     public Boolean getEnabled() {
       try {
          Boolean retVal = .iParallelPortGetEnabled();
          return retVal;
      } catch (InvalidObjectFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      } catch (RuntimeFaultMsg e) {
           throw new VBoxException(ee.getMessage());
      }
     }
Flag whether the parallel port is enabled. If disabled, the parallel port will not be reported to the guest OS.

Parameters:
value Boolean
 
     public void setEnabled(Boolean value) {
       try {
         .iParallelPortSetEnabled(value);
      } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
Base I/O address of the parallel port.

Returns:
Long
    public Long getIOBase() {
      try {
         Long retVal = .iParallelPortGetIOBase();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
Base I/O address of the parallel port.

Parameters:
value Long
    public void setIOBase(Long value) {
      try {
        .iParallelPortSetIOBase(value);
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
IRQ number of the parallel port.

Returns:
Long
    public Long getIRQ() {
      try {
         Long retVal = .iParallelPortGetIRQ();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
IRQ number of the parallel port.

Parameters:
value Long
    public void setIRQ(Long value) {
      try {
        .iParallelPortSetIRQ(value);
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.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.

Returns:
String
    public String getPath() {
      try {
         String retVal = .iParallelPortGetPath();
         return retVal;
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.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.

Parameters:
value String
    public void setPath(String value) {
      try {
        .iParallelPortSetPath(value);
     } catch (InvalidObjectFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     } catch (RuntimeFaultMsg e) {
          throw new VBoxException(ee.getMessage());
     }
    }
    public static IParallelPort queryInterface(IUnknown obj) {
       return obj == null ?  null : new IParallelPort(obj.getWrapped(), obj.getRemoteWSPort());
    }
New to GrepCode? Check out our FAQ X