VirtualBox

忽略:
時間撮記:
2014-6-12 下午04:46:20 (10 年 以前)
作者:
vboxsync
訊息:

6813 Use of server side API wrapper code - ConsoleImpl.cpp

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Main/src-client/VMMDevInterface.cpp

    r51436 r51612  
    55
    66/*
    7  * Copyright (C) 2006-2012 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    160160
    161161    /* Store that information in IGuest */
    162     Guest* guest = pConsole->getGuest();
     162    Guest* guest = pConsole->i_getGuest();
    163163    AssertPtrReturnVoid(guest);
    164164
    165165    guest->setAdditionsStatus((VBoxGuestFacilityType)uFacility, (VBoxGuestFacilityStatus)uStatus, fFlags, pTimeSpecTS);
    166     pConsole->onAdditionsStateChange();
     166    pConsole->i_onAdditionsStateChange();
    167167}
    168168
     
    182182
    183183    /* Store that information in IGuest. */
    184     Guest* pGuest = pConsole->getGuest();
     184    Guest* pGuest = pConsole->i_getGuest();
    185185    AssertPtrReturnVoid(pGuest);
    186186
     
    203203{
    204204    AssertPtrReturnVoid(guestInfo);
    205    
     205
    206206    PDRVMAINVMMDEV pDrv = RT_FROM_MEMBER(pInterface, DRVMAINVMMDEV, Connector);
    207207    Console *pConsole = pDrv->pVMMDev->getParent();
    208208
    209209    /* Store that information in IGuest */
    210     Guest* guest = pConsole->getGuest();
     210    Guest* guest = pConsole->i_getGuest();
    211211    AssertPtrReturnVoid(guest);
    212212
     
    221221         * so that it can notify its consumers.
    222222         */
    223         pConsole->onAdditionsStateChange();
     223        pConsole->i_onAdditionsStateChange();
    224224
    225225        if (guestInfo->interfaceVersion < VMMDEV_VERSION)
    226             pConsole->onAdditionsOutdated();
     226            pConsole->i_onAdditionsOutdated();
    227227    }
    228228    else
     
    239239        RTTimeNow(&TimeSpecTS);
    240240        guest->setAdditionsStatus(VBoxGuestFacilityType_All, VBoxGuestFacilityStatus_Inactive, 0 /*fFlags*/, &TimeSpecTS);
    241         pConsole->onAdditionsStateChange();
     241        pConsole->i_onAdditionsStateChange();
    242242    }
    243243}
     
    254254
    255255    /* Store that information in IGuest. */
    256     Guest *pGuest = pDrv->pVMMDev->getParent()->getGuest();
     256    Guest *pGuest = pDrv->pVMMDev->getParent()->i_getGuest();
    257257    AssertPtrReturnVoid(pGuest);
    258258
     
    283283
    284284    /* store that information in IGuest */
    285     Guest* pGuest = pConsole->getGuest();
     285    Guest* pGuest = pConsole->i_getGuest();
    286286    AssertPtrReturnVoid(pGuest);
    287287
     
    295295     * so that it can notify its consumers.
    296296     */
    297     pConsole->onAdditionsStateChange();
     297    pConsole->i_onAdditionsStateChange();
    298298}
    299299
     
    316316     * so that it can notify its consumers.
    317317     */
    318     Mouse *pMouse = pConsole->getMouse();
     318    Mouse *pMouse = pConsole->i_getMouse();
    319319    if (pMouse)  /** @todo and if not?  Can that actually happen? */
    320320        pMouse->i_onVMMDevGuestCapsChange(fNewCaps & VMMDEV_MOUSE_GUEST_MASK);
     
    356356    if (pShape)
    357357        ::memcpy(shapeData.raw(), pShape, cbShapeSize);
    358     pConsole->onMousePointerShapeChange(fVisible, fAlpha, xHot, yHot, width, height, ComSafeArrayAsInParam(shapeData));
     358    pConsole->i_onMousePointerShapeChange(fVisible, fAlpha, xHot, yHot, width, height, ComSafeArrayAsInParam(shapeData));
    359359}
    360360
     
    364364    Console *pConsole = pDrv->pVMMDev->getParent();
    365365
    366     Display *display = pConsole->getDisplay();
     366    Display *display = pConsole->i_getDisplay();
    367367
    368368    if (display)
     
    379379    Console *pConsole = pDrv->pVMMDev->getParent();
    380380
    381     Display *display = pConsole->getDisplay();
     381    Display *display = pConsole->i_getDisplay();
    382382
    383383    if (display)
     
    400400#endif
    401401    IFramebuffer *framebuffer = NULL;
    402     HRESULT hrc = pConsole->getDisplay()->QueryFramebuffer(display, &framebuffer);
     402    HRESULT hrc = pConsole->i_getDisplay()->QueryFramebuffer(display, &framebuffer);
    403403    if (SUCCEEDED(hrc) && framebuffer)
    404404    {
     
    424424        return VERR_INVALID_PARAMETER;
    425425    IFramebuffer *framebuffer = NULL;
    426     HRESULT hrc = pConsole->getDisplay()->QueryFramebuffer(0, &framebuffer);
     426    HRESULT hrc = pConsole->i_getDisplay()->QueryFramebuffer(0, &framebuffer);
    427427    if (SUCCEEDED(hrc) && framebuffer)
    428428    {
     
    451451
    452452    /* Forward to Display, which calls corresponding framebuffers. */
    453     pConsole->getDisplay()->handleSetVisibleRegion(cRect, pRect);
     453    pConsole->i_getDisplay()->handleSetVisibleRegion(cRect, pRect);
    454454
    455455    return VINF_SUCCESS;
     
    462462
    463463    /* Forward to Display, which calls corresponding framebuffers. */
    464     pConsole->getDisplay()->handleQueryVisibleRegion(pcRect, pRect);
     464    pConsole->i_getDisplay()->handleQueryVisibleRegion(pcRect, pRect);
    465465
    466466    return VINF_SUCCESS;
     
    485485
    486486    /* store that information in IGuest */
    487     Guest* guest = pConsole->getGuest();
     487    Guest* guest = pConsole->i_getGuest();
    488488    AssertPtrReturn(guest, VERR_GENERAL_FAILURE);
    489489
     
    511511
    512512    /* store that information in IGuest */
    513     Guest* guest = pConsole->getGuest();
     513    Guest* guest = pConsole->i_getGuest();
    514514    AssertPtrReturn(guest, VERR_GENERAL_FAILURE);
    515515
     
    537537
    538538    /* store that information in IGuest */
    539     Guest* guest = pConsole->getGuest();
     539    Guest* guest = pConsole->i_getGuest();
    540540    AssertPtrReturn(guest, VERR_GENERAL_FAILURE);
    541541
     
    560560
    561561    /* store that information in IGuest */
    562     Guest* guest = pConsole->getGuest();
     562    Guest* guest = pConsole->i_getGuest();
    563563    AssertPtrReturn(guest, VERR_GENERAL_FAILURE);
    564564
     
    574574
    575575    /** @todo r=bird: Convert from 4KB to 1KB units?
    576      *        CollectorGuestHAL::getGuestMemLoad says it returns KB units to
     576     *        CollectorGuestHAL::i_getGuestMemLoad says it returns KB units to
    577577     *        preCollect().  I might be wrong ofc, this is convoluted code... */
    578578    if (pGuestStats->u32StatCaps & VBOX_GUEST_STAT_PHYS_MEM_TOTAL)
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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