VirtualBox

儲存庫 vbox 的更動 55589


忽略:
時間撮記:
2015-5-1 下午08:07:25 (10 年 以前)
作者:
vboxsync
svn:sync-xref-src-repo-rev:
99962
訊息:

vboxapi.py: We probably need to abstract setting array attributes too, just like with getting them. If nothing else, it make up a symmetric interface.

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/glue/vboxapi.py

    r54684 r55589  
    293293        return None
    294294
     295    def setArray(self, oInterface, sAttrib, aoArray):
     296        """
     297        Sets the value (aoArray) of the array attribute 'sAttrib' in
     298        interface 'oInterface'.
     299
     300        This is for hiding platform specific differences in attributes
     301        setting arrays.
     302        """
     303        _ = oInterface
     304        _ = sAttrib
     305        _ = aoArray
     306        return None
     307
    295308    def initPerThread(self):
    296309        """
     
    550563    def getArray(self, oInterface, sAttrib):
    551564        return oInterface.__getattr__(sAttrib)
     565
     566    def setArray(self, oInterface, sAttrib, aoArray):
     567        return oInterface.__setattr__(sAttrib, aoArray)
    552568
    553569    def initPerThread(self):
     
    754770        return oInterface.__getattr__('get' + ComifyName(sAttrib))()
    755771
     772    def setArray(self, oInterface, sAttrib, aoArray):
     773        return oInterface.__getattr__('set' + ComifyName(sAttrib))(aoArray)
     774
    756775    def initPerThread(self):
    757776        import xpcom
     
    878897    def getArray(self, oInterface, sAttrib):
    879898        return oInterface.__getattr__(sAttrib)
     899
     900    def setArray(self, oInterface, sAttrib, aoArray):
     901        return oInterface.__setattr__(sAttrib, aoArray)
    880902
    881903    def waitForEvents(self, timeout):
     
    10401062        return self.platform.getArray(oInterface, sAttrib)
    10411063
     1064    def setArray(self, oInterface, sAttrib, aoArray):
     1065        """ See PlatformBase::setArray(). """
     1066        return self.platform.setArray(oInterface, sAttrib, aoArray)
     1067
    10421068    def createListener(self, oImplClass, dArgs=None):
    10431069        """ See PlatformBase::createListener(). """
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette