diff options
Diffstat (limited to 'src/main/java/org/openslx/util/vm/VboxMetaData.java')
-rw-r--r-- | src/main/java/org/openslx/util/vm/VboxMetaData.java | 113 |
1 files changed, 108 insertions, 5 deletions
diff --git a/src/main/java/org/openslx/util/vm/VboxMetaData.java b/src/main/java/org/openslx/util/vm/VboxMetaData.java index f504c70..fe3f31c 100644 --- a/src/main/java/org/openslx/util/vm/VboxMetaData.java +++ b/src/main/java/org/openslx/util/vm/VboxMetaData.java @@ -19,7 +19,49 @@ import org.apache.log4j.Logger; import org.openslx.bwlp.thrift.iface.OperatingSystem; import org.openslx.bwlp.thrift.iface.Virtualizer; -public class VboxMetaData extends VmMetaData +class VBoxSoundCardMeta +{ + public final boolean isPresent; + public final String value; + + public VBoxSoundCardMeta( boolean present, String val ) + { + isPresent = present; + value = val; + } +} + +class VBoxDDAccelMeta +{ + public final boolean isPresent; + + public VBoxDDAccelMeta( boolean present ) + { + isPresent = present; + } +} + +class VBoxHWVersionMeta +{ + public final int version; + + public VBoxHWVersionMeta( int vers ) + { + version = vers; + } +} + +class VBoxEthernetDevTypeMeta +{ + public final String value; + + public VBoxEthernetDevTypeMeta( String val ) + { + value = val; + } +} + +public class VboxMetaData extends VmMetaData<VBoxSoundCardMeta, VBoxDDAccelMeta, VBoxHWVersionMeta, VBoxEthernetDevTypeMeta> { private static final Logger LOGGER = Logger.getLogger( VboxMetaData.class ); @@ -28,8 +70,7 @@ public class VboxMetaData extends VmMetaData private final VboxConfig config; - public VboxMetaData( List<OperatingSystem> osList, File file ) - throws IOException, UnsupportedVirtualizerFormatException + public VboxMetaData( List<OperatingSystem> osList, File file ) throws IOException, UnsupportedVirtualizerFormatException { super( osList ); @@ -37,8 +78,7 @@ public class VboxMetaData extends VmMetaData init(); } - public VboxMetaData( List<OperatingSystem> osList, byte[] vmContent, int length ) - throws IOException, UnsupportedVirtualizerFormatException + public VboxMetaData( List<OperatingSystem> osList, byte[] vmContent, int length ) throws IOException, UnsupportedVirtualizerFormatException { super( osList ); @@ -221,4 +261,67 @@ public class VboxMetaData extends VmMetaData config.changeAttribute( "CPU", "count", "1" ); return true; } + + @Override + public void setSoundCard( org.openslx.util.vm.VmMetaData.SoundCardType type ) + { + // TODO Auto-generated method stub + + } + + @Override + public org.openslx.util.vm.VmMetaData.SoundCardType getSoundCard() + { + // TODO Auto-generated method stub + return null; + } + + @Override + public void setDDAcceleration( org.openslx.util.vm.VmMetaData.DDAcceleration type ) + { + // TODO Auto-generated method stub + + } + + @Override + public org.openslx.util.vm.VmMetaData.DDAcceleration getDDAcceleration() + { + // TODO Auto-generated method stub + return null; + } + + @Override + public void setHWVersion( HWVersion type ) + { + // TODO Auto-generated method stub + + } + + @Override + public HWVersion getHWVersion() + { + // TODO Auto-generated method stub + return null; + } + + @Override + public void setEthernetDevType( int cardIndex, EthernetDevType type ) + { + // TODO Auto-generated method stub + + } + + @Override + public EthernetDevType getEthernetDevType( int cardIndex ) + { + // TODO Auto-generated method stub + return null; + } + + @Override + public byte[] getDefinitionArray() + { + // TODO Auto-generated method stub + return null; + } } |