summaryrefslogtreecommitdiffstats
path: root/src/main/java/org/openslx/util/vm/VboxMetaData.java
diff options
context:
space:
mode:
authorVictor Mocanu2017-10-26 12:58:30 +0200
committerVictor Mocanu2017-10-26 12:58:30 +0200
commita9b730ee13d921616d4f9d6e3420bc7453c654f3 (patch)
tree1d0649a22bd18e5efc32f028a60ffa8cedef5de2 /src/main/java/org/openslx/util/vm/VboxMetaData.java
parent[VBox] changed comments to english, renamed some variables (diff)
downloadmaster-sync-shared-a9b730ee13d921616d4f9d6e3420bc7453c654f3.tar.gz
master-sync-shared-a9b730ee13d921616d4f9d6e3420bc7453c654f3.tar.xz
master-sync-shared-a9b730ee13d921616d4f9d6e3420bc7453c654f3.zip
[VBox] work in progress for the DropDownSelectWindow... everything was vmx specific, made it more generic
Diffstat (limited to 'src/main/java/org/openslx/util/vm/VboxMetaData.java')
-rw-r--r--src/main/java/org/openslx/util/vm/VboxMetaData.java113
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;
+ }
}