Example #1
0
 public List<String> getMachines() {
   try {
     String[] retVal = getTypedWrapped().getMachines(null);
     return Helper.wrap(retVal);
   } catch (org.mozilla.xpcom.XPCOMException e) {
     throw new VBoxException(e.getMessage(), e);
   }
 }
Example #2
0
 public static IAppliance queryInterface(IUnknown obj) {
   nsISupports nsobj = obj != null ? (nsISupports) obj.getWrapped() : null;
   if (nsobj == null) return null;
   org.mozilla.interfaces.IAppliance qiobj =
       Helper.queryInterface(
           nsobj,
           "{3059cf9e-25c7-4f0b-9fa5-3c42e441670b}",
           org.mozilla.interfaces.IAppliance.class);
   return qiobj == null ? null : new IAppliance(qiobj);
 }
Example #3
0
 public List<org.virtualbox_4_3.IVirtualSystemDescription> getVirtualSystemDescriptions() {
   try {
     org.mozilla.interfaces.IVirtualSystemDescription[] retVal =
         getTypedWrapped().getVirtualSystemDescriptions(null);
     return Helper.wrap2(
         org.virtualbox_4_3.IVirtualSystemDescription.class,
         org.mozilla.interfaces.IVirtualSystemDescription.class,
         retVal);
   } catch (org.mozilla.xpcom.XPCOMException e) {
     throw new VBoxException(e.getMessage(), e);
   }
 }
Example #4
0
 public org.virtualbox_4_3.IProgress importMachines(
     List<org.virtualbox_4_3.ImportOptions> options) {
   try {
     org.mozilla.interfaces.IProgress retVal;
     retVal =
         getTypedWrapped()
             .importMachines(
                 options != null ? options.size() : 0,
                 Helper.unwrapEnum(org.virtualbox_4_3.ImportOptions.class, options));
     return (retVal != null) ? new org.virtualbox_4_3.IProgress(retVal) : null;
   } catch (org.mozilla.xpcom.XPCOMException e) {
     throw new VBoxException(e.getMessage(), e);
   }
 }
Example #5
0
 public org.virtualbox_4_3.IProgress write(
     String format, List<org.virtualbox_4_3.ExportOptions> options, String path) {
   try {
     org.mozilla.interfaces.IProgress retVal;
     retVal =
         getTypedWrapped()
             .write(
                 format,
                 options != null ? options.size() : 0,
                 Helper.unwrapEnum(org.virtualbox_4_3.ExportOptions.class, options),
                 path);
     return (retVal != null) ? new org.virtualbox_4_3.IProgress(retVal) : null;
   } catch (org.mozilla.xpcom.XPCOMException e) {
     throw new VBoxException(e.getMessage(), e);
   }
 }