Figuring out the classes in the SDK

This is for discussing general topics about how to use VirtualBox.
Post Reply
rjzak
Posts: 7
Joined: 16. Dec 2008, 16:24
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Ubuntu, Windows, BSD

Figuring out the classes in the SDK

Post 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.
kebabbert
Volunteer
Posts: 321
Joined: 31. May 2008, 10:00
Primary OS: OpenSolaris 11
VBox Version: OSE other
Guest OSses: WinXP, RedHat, Ubuntu

Re: Figuring out the classes in the SDK

Post 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.
Post Reply