VirtualBox

Changeset 3911 in vbox


Ignore:
Timestamp:
Jul 27, 2007 8:04:47 PM (18 years ago)
Author:
vboxsync
Message:

Main: IGuest::seamlessSupport => supportsSeamless.

Location:
trunk/src/VBox
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp

    r3807 r3911  
    232232                         const QString &aAddVersion,
    233233                         bool aAddActive,
    234                          bool aSeamlessActive) :
     234                         bool aSupportsSeamless) :
    235235        QEvent ((QEvent::Type) VBoxDefs::AdditionsStateChangeEventType),
    236236        mOsTypeId (aOsTypeId), mAddVersion (aAddVersion),
    237         mAddActive (aAddActive), mSeamlessActive (aSeamlessActive) {}
     237        mAddActive (aAddActive), mSupportsSeamless (aSupportsSeamless) {}
    238238    const QString &osTypeId() const { return mOsTypeId; }
    239239    const QString &additionVersion() const { return mAddVersion; }
    240240    bool additionActive() const { return mAddActive; }
    241     bool seamlessActive() const { return mSeamlessActive; }
     241    bool supportsSeamless() const { return mSupportsSeamless; }
    242242private:
    243243    QString mOsTypeId;
    244244    QString mAddVersion;
    245245    bool mAddActive;
    246     bool mSeamlessActive;
     246    bool mSupportsSeamless;
    247247};
    248248
     
    396396                                     guest.GetAdditionsVersion(),
    397397                                     guest.GetAdditionsActive(),
    398                                      guest.GetSeamlessSupport()));
     398                                     guest.GetSupportsSeamless()));
    399399        return S_OK;
    400400    }
     
    10451045                emit additionsStateChanged (ge->additionVersion(),
    10461046                                            ge->additionActive(),
    1047                                             ge->seamlessActive());
     1047                                            ge->supportsSeamless());
    10481048                return true;
    10491049            }
  • trunk/src/VBox/Main/DisplayImpl.cpp

    r3827 r3911  
    15361536    lock.leave ();
    15371537    if (mParent->getVMMDev())
    1538         mParent->getVMMDev()->getVMMDevPort()->pfnRequestDisplayChange(mParent->getVMMDev()->getVMMDevPort(), aWidth, aHeight, aBitsPerPixel, aDisplay);
     1538        mParent->getVMMDev()->getVMMDevPort()->
     1539            pfnRequestDisplayChange (mParent->getVMMDev()->getVMMDevPort(),
     1540                                     aWidth, aHeight, aBitsPerPixel, aDisplay);
    15391541    return S_OK;
    15401542}
     
    15481550    lock.leave ();
    15491551    if (mParent->getVMMDev())
    1550         mParent->getVMMDev()->getVMMDevPort()->pfnRequestSeamlessChange(mParent->getVMMDev()->getVMMDevPort(), !!enabled);
     1552        mParent->getVMMDev()->getVMMDevPort()->
     1553            pfnRequestSeamlessChange (mParent->getVMMDev()->getVMMDevPort(),
     1554                                      !!enabled);
    15511555    return S_OK;
    15521556}
  • trunk/src/VBox/Main/GuestImpl.cpp

    r3582 r3911  
    141141}
    142142
    143 STDMETHODIMP Guest::COMGETTER(SeamlessSupport) (BOOL *aSeamlessSupport)
    144 {
    145     if (!aSeamlessSupport)
    146         return E_POINTER;
    147 
    148     AutoCaller autoCaller (this);
    149     CheckComRCReturnRC (autoCaller.rc());
    150 
    151     AutoReaderLock alock (this);
    152 
    153     *aSeamlessSupport = mData.mSeamlessSupport;
     143STDMETHODIMP Guest::COMGETTER(SupportsSeamless) (BOOL *aSupportsSeamless)
     144{
     145    if (!aSupportsSeamless)
     146        return E_POINTER;
     147
     148    AutoCaller autoCaller (this);
     149    CheckComRCReturnRC (autoCaller.rc());
     150
     151    AutoReaderLock alock (this);
     152
     153    *aSupportsSeamless = mData.mSupportsSeamless;
    154154
    155155    return S_OK;
     
    201201}
    202202
    203 void Guest::setSeamlessSupport(BOOL aSeamlessSupport)
     203void Guest::setSupportsSeamless (BOOL aSupportsSeamless)
    204204{
    205205    AutoCaller autoCaller (this);
     
    208208    AutoLock alock (this);
    209209
    210     mData.mSeamlessSupport = aSeamlessSupport;
    211 }
     210    mData.mSupportsSeamless = aSupportsSeamless;
     211}
  • trunk/src/VBox/Main/VMMDevInterface.cpp

    r3808 r3911  
    206206    Assert(!(newCapabilities & ~VMMDEV_GUEST_SUPPORTS_SEAMLESS));
    207207
    208     guest->setSeamlessSupport(BOOL (newCapabilities & VMMDEV_GUEST_SUPPORTS_SEAMLESS));
     208    guest->setSupportsSeamless(BOOL (newCapabilities & VMMDEV_GUEST_SUPPORTS_SEAMLESS));
    209209
    210210    /*
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r3796 r3911  
    41504150  <interface
    41514151     name="IGuest" extends="$unknown"
    4152      uuid="d7a3f7cf-84c4-4628-9267-a1cff0e5f3bc"
     4152     uuid="4a61e982-172b-4116-b12e-024b8a9a2b9d"
    41534153     wsmap="suppress"
    41544154     >
     
    41934193    </attribute>
    41944194
    4195     <attribute name="seamlessSupport" type="boolean" readonly="yes">
    4196       <desc>
    4197         Flag whether seamless guest display rendering is supported.
     4195    <attribute name="supportsSeamless" type="boolean" readonly="yes">
     4196      <desc>
     4197        Flag whether seamless guest display rendering (seamless desktop
     4198        integration) is supported.
    41984199      </desc>
    41994200    </attribute>
     
    63076308        to="PixelFormat::PixelFormatOpaque"/> then direct access to the guest
    63086309        VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and @a
    6309         bytesPerLine parameters must be ingored and the implementation must use
     6310        bytesPerLine parameters must be ignored and the implementation must use
    63106311        the indirect mode (where it provides its own buffer in one of the
    63116312        supported formats). In all other cases, @a pixelFormat together with @a
     
    66256626        should issue the request and wait for a resolution change and
    66266627        after a timeout retry.
    6627         Specifying "0" for either width and height or the color depth
    6628         means that the dimensions or color depth should not be changed.
    6629         It is possible to specify the number of the guest display
    6630         that has to be resized, if guest supports multimonitor configuration.
    6631         The display value 0 means primary display, 1 - first secondary.
     6628       
     6629        Specifying <tt>0</tt> for either @a width, @a height or @a bitsPerPixel
     6630        parameters means that the corresponding values should be taken from the
     6631        current video mode (i.e. left unchanged).
     6632
     6633        If the guest OS supports multi-monitor configuration then the @a display
     6634        parameter specifies the number of the guest display to send the hint to:
     6635        <tt>0</tt> is the primary display, <tt>1</tt> is the first secondary and
     6636        so on. If the multi-monitor configuration is not supported, @a display
     6637        must be <tt>0</tt>.
     6638
    66326639      </desc>
    66336640      <param name="width" type="unsigned long" dir="in"/>
     
    66396646    <method name="setSeamlessMode">
    66406647      <desc>
    6641         Current guest seamless mode.
     6648        Enables or disables seamless guest display rendering (seamless desktop
     6649        integration) mode.
     6650        <note>
     6651          Calling this method has no effect if <link
     6652          to="IGuest::supportsSeamless"/> returns <tt>false</tt>.
     6653        </note>
    66426654      </desc>
    66436655      <param name="enabled" type="boolean" dir="in"/>
  • trunk/src/VBox/Main/include/GuestImpl.h

    r3582 r3911  
    5959    STDMETHOD(COMGETTER(AdditionsActive)) (BOOL *aAdditionsActive);
    6060    STDMETHOD(COMGETTER(AdditionsVersion)) (BSTR *aAdditionsVersion);
    61     STDMETHOD(COMGETTER(SeamlessSupport)) (BOOL *aSeamlessSupport);
     61    STDMETHOD(COMGETTER(SupportsSeamless)) (BOOL *aSupportsSeamless);
    6262
    6363    // IGuest methods
     
    6868    void setAdditionsVersion (Bstr aVersion);
    6969
    70     void setSeamlessSupport(BOOL aSeamlessSupport);
     70    void setSupportsSeamless (BOOL aSupportsSeamless);
    7171
    7272    // for VirtualBoxSupportErrorInfoImpl
     
    7777    struct Data
    7878    {
    79         Data() : mAdditionsActive (FALSE), mSeamlessSupport (FALSE) {}
     79        Data() : mAdditionsActive (FALSE), mSupportsSeamless (FALSE) {}
    8080
    8181        Bstr mOSTypeId;
    8282        BOOL mAdditionsActive;
    8383        Bstr mAdditionsVersion;
    84         BOOL mSeamlessSupport;
     84        BOOL mSupportsSeamless;
    8585    };
    8686
Note: See TracChangeset for help on using the changeset viewer.

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