Page 1 of 1

Figuring out the classes in the SDK

Posted: 21. Jul 2011, 17:55
by rjzak
Could anyone shed some light on how the classes are tied together? For example, in my Python code I am able to get a VirtualBox object, and from that, get a listing of machine objects, and some basic information about them:

Code: Select all

import vboxapi
vbox = vboxapi.PlatformXPCOM(None).getVirtualBox()
machines = vbox.getMachines()
for machine in machines:
	machineName = machine.name
        machineStatus = machine.state
But the SDK PDF manual also talks about things like the IGuest class, the IKeyboard class, the ISession class, the IConsole class, etc. How do I get from the vbox or machine class down to some of the other classes? I'd like to copy files to/from the guest OS, and to see information about running processes. It seems all the functions are there, but there is a maze of classes to wade through first. The SDK could really use a diagram to map out class X to class Y though classes A, B, and C. Thanks.

Re: Figuring out the classes in the SDK

Posted: 21. Jul 2011, 18:38
by kebabbert
I think there is a developer mail list, or something similar. Try that instead of this forum. When you login to virtualbox.org you can see "community" part and see developer mail lists, etc. I think.