Permalink
Browse files

Removed unused/redundant code in modules directory.

git-svn-id: http://vboxweb.googlecode.com/svn/trunk@63 729376a8-6c6b-11de-afdd-bb9f892af8c1
  • Loading branch information...
1 parent b8b66c4 commit ebd9e6e939c061cc0871b6e45f065c71a3b771fd vboxweb committed Aug 21, 2009
Showing with 0 additions and 336 deletions.
  1. +0 −168 modules/vboxGuestMonitor.py
  2. +0 −168 modules/vboxVBoxMonitor.py
@@ -82,171 +82,3 @@ def onCanShowWindow(self):
def onShowWindow(self, winId):
print "%s: onShowWindow: %d" %(self.mach.name, winId)
-#!/usr/bin/env python
-#
-# Copyright (C) 2009 Sun Microsystems, Inc.
-
-# Permission is hereby granted, free of charge, to any person
-# obtaining a copy of this software and associated documentation
-# files (the "Software"), to deal in the Software without
-# restriction, including without limitation the rights to use,
-# copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the
-# Software is furnished to do so, subject to the following
-# conditions:
-
-# The above copyright notice and this permission notice shall be
-# included in all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-# OTHER DEALINGS IN THE SOFTWARE.
-
-# Implementation of IConsoleCallback
-class VBoxGuestMonitor:
- def __init__(self, mach):
- self.mach = mach
-
- def onMousePointerShapeChange(self, visible, alpha, xHot, yHot, width, height, shape):
- print "%s: onMousePointerShapeChange: visible=%d" %(self.mach.name, visible)
-
- def onMouseCapabilityChange(self, supportsAbsolute, needsHostCursor):
- print "%s: onMouseCapabilityChange: needsHostCursor=%d" %(self.mach.name, needsHostCursor)
-
- def onKeyboardLedsChange(self, numLock, capsLock, scrollLock):
- print "%s: onKeyboardLedsChange capsLock=%d" %(self.mach.name, capsLock)
-
- def onStateChange(self, state):
- print "%s: onStateChange state=%d" %(self.mach.name, state)
-
- def onAdditionsStateChange(self):
- print "%s: onAdditionsStateChange" %(self.mach.name)
-
- def onDVDDriveChange(self):
- print "%s: onDVDDriveChange" %(self.mach.name)
-
- def onFloppyDriveChange(self):
- print "%s: onFloppyDriveChange" %(self.mach.name)
-
- def onNetworkAdapterChange(self, adapter):
- print "%s: onNetworkAdapterChange" %(self.mach.name)
-
- def onSerialPortChange(self, port):
- print "%s: onSerialPortChange" %(self.mach.name)
-
- def onParallelPortChange(self, port):
- print "%s: onParallelPortChange" %(self.mach.name)
-
- def onStorageControllerChange(self):
- print "%s: onStorageControllerChange" %(self.mach.name)
-
- def onVRDPServerChange(self):
- print "%s: onVRDPServerChange" %(self.mach.name)
-
- def onUSBControllerChange(self):
- print "%s: onUSBControllerChange" %(self.mach.name)
-
- def onUSBDeviceStateChange(self, device, attached, error):
- print "%s: onUSBDeviceStateChange" %(self.mach.name)
-
- def onSharedFolderChange(self, scope):
- print "%s: onSharedFolderChange" %(self.mach.name)
-
- def onRuntimeError(self, fatal, id, message):
- print "%s: onRuntimeError fatal=%d message=%s" %(self.mach.name, fatal, message)
-
- def onCanShowWindow(self):
- print "%s: onCanShowWindow" %(self.mach.name)
- return True
-
- def onShowWindow(self, winId):
- print "%s: onShowWindow: %d" %(self.mach.name, winId)
-#!/usr/bin/env python
-#
-# Copyright (C) 2009 Sun Microsystems, Inc.
-
-# Permission is hereby granted, free of charge, to any person
-# obtaining a copy of this software and associated documentation
-# files (the "Software"), to deal in the Software without
-# restriction, including without limitation the rights to use,
-# copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the
-# Software is furnished to do so, subject to the following
-# conditions:
-
-# The above copyright notice and this permission notice shall be
-# included in all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-# OTHER DEALINGS IN THE SOFTWARE.
-
-# Implementation of IConsoleCallback
-class VBoxGuestMonitor:
- def __init__(self, mach):
- self.mach = mach
-
- def onMousePointerShapeChange(self, visible, alpha, xHot, yHot, width, height, shape):
- print "%s: onMousePointerShapeChange: visible=%d" %(self.mach.name, visible)
-
- def onMouseCapabilityChange(self, supportsAbsolute, needsHostCursor):
- print "%s: onMouseCapabilityChange: needsHostCursor=%d" %(self.mach.name, needsHostCursor)
-
- def onKeyboardLedsChange(self, numLock, capsLock, scrollLock):
- print "%s: onKeyboardLedsChange capsLock=%d" %(self.mach.name, capsLock)
-
- def onStateChange(self, state):
- print "%s: onStateChange state=%d" %(self.mach.name, state)
-
- def onAdditionsStateChange(self):
- print "%s: onAdditionsStateChange" %(self.mach.name)
-
- def onDVDDriveChange(self):
- print "%s: onDVDDriveChange" %(self.mach.name)
-
- def onFloppyDriveChange(self):
- print "%s: onFloppyDriveChange" %(self.mach.name)
-
- def onNetworkAdapterChange(self, adapter):
- print "%s: onNetworkAdapterChange" %(self.mach.name)
-
- def onSerialPortChange(self, port):
- print "%s: onSerialPortChange" %(self.mach.name)
-
- def onParallelPortChange(self, port):
- print "%s: onParallelPortChange" %(self.mach.name)
-
- def onStorageControllerChange(self):
- print "%s: onStorageControllerChange" %(self.mach.name)
-
- def onVRDPServerChange(self):
- print "%s: onVRDPServerChange" %(self.mach.name)
-
- def onUSBControllerChange(self):
- print "%s: onUSBControllerChange" %(self.mach.name)
-
- def onUSBDeviceStateChange(self, device, attached, error):
- print "%s: onUSBDeviceStateChange" %(self.mach.name)
-
- def onSharedFolderChange(self, scope):
- print "%s: onSharedFolderChange" %(self.mach.name)
-
- def onRuntimeError(self, fatal, id, message):
- print "%s: onRuntimeError fatal=%d message=%s" %(self.mach.name, fatal, message)
-
- def onCanShowWindow(self):
- print "%s: onCanShowWindow" %(self.mach.name)
- return True
-
- def onShowWindow(self, winId):
- print "%s: onShowWindow: %d" %(self.mach.name, winId)
@@ -82,171 +82,3 @@ def onSnapshotChange(self, mach, id):
def onGuestPropertyChange(self, id, name, newValue, flags):
print "onGuestPropertyChange: %s: %s=%s" %(id, name, newValue)
self.parent.onGuestPropertyChange(id, name, newValue, flags)
-#!/usr/bin/env python
-#
-# Copyright (C) 2009 Sun Microsystems, Inc.
-
-# Permission is hereby granted, free of charge, to any person
-# obtaining a copy of this software and associated documentation
-# files (the "Software"), to deal in the Software without
-# restriction, including without limitation the rights to use,
-# copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the
-# Software is furnished to do so, subject to the following
-# conditions:
-
-# The above copyright notice and this permission notice shall be
-# included in all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-# OTHER DEALINGS IN THE SOFTWARE.
-
-import sys
-
-# Implementation of IVirtualBoxCallback, simply re-routes to page object (parent)
-class VBoxMonitor:
- def __init__(self, parent):
- print "VBoxMonitor callback registered. Parent =",parent
- self.parent = parent
-
- def onMachineStateChange(self, id, state):
- print "onMachineStateChange: %s %d" %(id, state)
- self.parent.onMachineStateChange(id, state)
-
- def onMachineDataChange(self,id):
- print "onMachineDataChange: %s" %(id)
- self.parent.onMachineDataChange(id)
-
- def onExtraDataCanChange(self, id, key, value):
- print "onExtraDataCanChange: %s %s=>%s" %(id, key, value)
- #bRet = self.parent.onExtraDataCanChange(id, key, value)
- bRet = True
-
- # Witty COM bridge thinks if someone wishes to return tuple, hresult
- # is one of values we want to return
- if sys.platform == 'win32':
- return "", 0, bRet
-
- return bRet, ""
-
- def onExtraDataChange(self, id, key, value):
- print "onExtraDataChange: %s %s=>%s" %(id, key, value)
- self.parent.onExtraDataChange(id, key, value)
-
- def onMediaRegistered(self, id, type, registred):
- print "onMediaRegistred: %s" %(id)
- self.parent.onMediaRegistered(id, type, registred)
-
- def onMachineRegistered(self, id, registred):
- print "onMachineRegistred: %s" %(id)
- self.parent.onMachineRegistered(id, registred)
-
- def onSessionStateChange(self, id, state):
- print "onSessionStateChange: %s %d" %(id, state)
- self.parent.onSessionStateChange(id, state)
-
- def onSnapshotTaken(self, mach, id):
- print "onSnapshotTaken: %s %s" %(mach, id)
- self.parent.onSnapshotTaken(mach, id)
-
- def onSnapshotDiscarded(self, mach, id):
- print "onSnapshotDiscarded: %s %s" %(mach, id)
- self.parent.onSnapshotDiscarded(mach, id)
-
- def onSnapshotChange(self, mach, id):
- print "onSnapshotChange: %s %s" %(mach, id)
- self.parent.onSnapshotChange(mach, id)
-
- def onGuestPropertyChange(self, id, name, newValue, flags):
- print "onGuestPropertyChange: %s: %s=%s" %(id, name, newValue)
- self.parent.onGuestPropertyChange(id, name, newValue, flags)
-#!/usr/bin/env python
-#
-# Copyright (C) 2009 Sun Microsystems, Inc.
-
-# Permission is hereby granted, free of charge, to any person
-# obtaining a copy of this software and associated documentation
-# files (the "Software"), to deal in the Software without
-# restriction, including without limitation the rights to use,
-# copy, modify, merge, publish, distribute, sublicense, and/or sell
-# copies of the Software, and to permit persons to whom the
-# Software is furnished to do so, subject to the following
-# conditions:
-
-# The above copyright notice and this permission notice shall be
-# included in all copies or substantial portions of the Software.
-
-# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
-# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
-# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
-# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
-# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-# OTHER DEALINGS IN THE SOFTWARE.
-
-import sys
-
-# Implementation of IVirtualBoxCallback, simply re-routes to page object (parent)
-class VBoxMonitor:
- def __init__(self, parent):
- print "VBoxMonitor callback registered. Parent =",parent
- self.parent = parent
-
- def onMachineStateChange(self, id, state):
- print "onMachineStateChange: %s %d" %(id, state)
- self.parent.onMachineStateChange(id, state)
-
- def onMachineDataChange(self,id):
- print "onMachineDataChange: %s" %(id)
- self.parent.onMachineDataChange(id)
-
- def onExtraDataCanChange(self, id, key, value):
- print "onExtraDataCanChange: %s %s=>%s" %(id, key, value)
- #bRet = self.parent.onExtraDataCanChange(id, key, value)
- bRet = True
-
- # Witty COM bridge thinks if someone wishes to return tuple, hresult
- # is one of values we want to return
- if sys.platform == 'win32':
- return "", 0, bRet
-
- return bRet, ""
-
- def onExtraDataChange(self, id, key, value):
- print "onExtraDataChange: %s %s=>%s" %(id, key, value)
- self.parent.onExtraDataChange(id, key, value)
-
- def onMediaRegistered(self, id, type, registred):
- print "onMediaRegistred: %s" %(id)
- self.parent.onMediaRegistered(id, type, registred)
-
- def onMachineRegistered(self, id, registred):
- print "onMachineRegistred: %s" %(id)
- self.parent.onMachineRegistered(id, registred)
-
- def onSessionStateChange(self, id, state):
- print "onSessionStateChange: %s %d" %(id, state)
- self.parent.onSessionStateChange(id, state)
-
- def onSnapshotTaken(self, mach, id):
- print "onSnapshotTaken: %s %s" %(mach, id)
- self.parent.onSnapshotTaken(mach, id)
-
- def onSnapshotDiscarded(self, mach, id):
- print "onSnapshotDiscarded: %s %s" %(mach, id)
- self.parent.onSnapshotDiscarded(mach, id)
-
- def onSnapshotChange(self, mach, id):
- print "onSnapshotChange: %s %s" %(mach, id)
- self.parent.onSnapshotChange(mach, id)
-
- def onGuestPropertyChange(self, id, name, newValue, flags):
- print "onGuestPropertyChange: %s: %s=%s" %(id, name, newValue)
- self.parent.onGuestPropertyChange(id, name, newValue, flags)

0 comments on commit ebd9e6e

Please sign in to comment.