Changeset 3911 in vbox
- Timestamp:
- Jul 27, 2007 8:04:47 PM (18 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/VBoxConsoleView.cpp
r3807 r3911 232 232 const QString &aAddVersion, 233 233 bool aAddActive, 234 bool aS eamlessActive) :234 bool aSupportsSeamless) : 235 235 QEvent ((QEvent::Type) VBoxDefs::AdditionsStateChangeEventType), 236 236 mOsTypeId (aOsTypeId), mAddVersion (aAddVersion), 237 mAddActive (aAddActive), mS eamlessActive (aSeamlessActive) {}237 mAddActive (aAddActive), mSupportsSeamless (aSupportsSeamless) {} 238 238 const QString &osTypeId() const { return mOsTypeId; } 239 239 const QString &additionVersion() const { return mAddVersion; } 240 240 bool additionActive() const { return mAddActive; } 241 bool s eamlessActive() const { return mSeamlessActive; }241 bool supportsSeamless() const { return mSupportsSeamless; } 242 242 private: 243 243 QString mOsTypeId; 244 244 QString mAddVersion; 245 245 bool mAddActive; 246 bool mS eamlessActive;246 bool mSupportsSeamless; 247 247 }; 248 248 … … 396 396 guest.GetAdditionsVersion(), 397 397 guest.GetAdditionsActive(), 398 guest.GetS eamlessSupport()));398 guest.GetSupportsSeamless())); 399 399 return S_OK; 400 400 } … … 1045 1045 emit additionsStateChanged (ge->additionVersion(), 1046 1046 ge->additionActive(), 1047 ge->s eamlessActive());1047 ge->supportsSeamless()); 1048 1048 return true; 1049 1049 } -
trunk/src/VBox/Main/DisplayImpl.cpp
r3827 r3911 1536 1536 lock.leave (); 1537 1537 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); 1539 1541 return S_OK; 1540 1542 } … … 1548 1550 lock.leave (); 1549 1551 if (mParent->getVMMDev()) 1550 mParent->getVMMDev()->getVMMDevPort()->pfnRequestSeamlessChange(mParent->getVMMDev()->getVMMDevPort(), !!enabled); 1552 mParent->getVMMDev()->getVMMDevPort()-> 1553 pfnRequestSeamlessChange (mParent->getVMMDev()->getVMMDevPort(), 1554 !!enabled); 1551 1555 return S_OK; 1552 1556 } -
trunk/src/VBox/Main/GuestImpl.cpp
r3582 r3911 141 141 } 142 142 143 STDMETHODIMP Guest::COMGETTER(S eamlessSupport) (BOOL *aSeamlessSupport)144 { 145 if (!aS eamlessSupport)146 return E_POINTER; 147 148 AutoCaller autoCaller (this); 149 CheckComRCReturnRC (autoCaller.rc()); 150 151 AutoReaderLock alock (this); 152 153 *aS eamlessSupport = mData.mSeamlessSupport;143 STDMETHODIMP 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; 154 154 155 155 return S_OK; … … 201 201 } 202 202 203 void Guest::setS eamlessSupport(BOOL aSeamlessSupport)203 void Guest::setSupportsSeamless (BOOL aSupportsSeamless) 204 204 { 205 205 AutoCaller autoCaller (this); … … 208 208 AutoLock alock (this); 209 209 210 mData.mS eamlessSupport = aSeamlessSupport;211 } 210 mData.mSupportsSeamless = aSupportsSeamless; 211 } -
trunk/src/VBox/Main/VMMDevInterface.cpp
r3808 r3911 206 206 Assert(!(newCapabilities & ~VMMDEV_GUEST_SUPPORTS_SEAMLESS)); 207 207 208 guest->setS eamlessSupport(BOOL (newCapabilities & VMMDEV_GUEST_SUPPORTS_SEAMLESS));208 guest->setSupportsSeamless(BOOL (newCapabilities & VMMDEV_GUEST_SUPPORTS_SEAMLESS)); 209 209 210 210 /* -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r3796 r3911 4150 4150 <interface 4151 4151 name="IGuest" extends="$unknown" 4152 uuid=" d7a3f7cf-84c4-4628-9267-a1cff0e5f3bc"4152 uuid="4a61e982-172b-4116-b12e-024b8a9a2b9d" 4153 4153 wsmap="suppress" 4154 4154 > … … 4193 4193 </attribute> 4194 4194 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. 4198 4199 </desc> 4199 4200 </attribute> … … 6307 6308 to="PixelFormat::PixelFormatOpaque"/> then direct access to the guest 6308 6309 VRAM buffer is not available -- the @a VRAM, @a bitsPerPixel and @a 6309 bytesPerLine parameters must be i ngored and the implementation must use6310 bytesPerLine parameters must be ignored and the implementation must use 6310 6311 the indirect mode (where it provides its own buffer in one of the 6311 6312 supported formats). In all other cases, @a pixelFormat together with @a … … 6625 6626 should issue the request and wait for a resolution change and 6626 6627 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 6632 6639 </desc> 6633 6640 <param name="width" type="unsigned long" dir="in"/> … … 6639 6646 <method name="setSeamlessMode"> 6640 6647 <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> 6642 6654 </desc> 6643 6655 <param name="enabled" type="boolean" dir="in"/> -
trunk/src/VBox/Main/include/GuestImpl.h
r3582 r3911 59 59 STDMETHOD(COMGETTER(AdditionsActive)) (BOOL *aAdditionsActive); 60 60 STDMETHOD(COMGETTER(AdditionsVersion)) (BSTR *aAdditionsVersion); 61 STDMETHOD(COMGETTER(S eamlessSupport)) (BOOL *aSeamlessSupport);61 STDMETHOD(COMGETTER(SupportsSeamless)) (BOOL *aSupportsSeamless); 62 62 63 63 // IGuest methods … … 68 68 void setAdditionsVersion (Bstr aVersion); 69 69 70 void setS eamlessSupport(BOOL aSeamlessSupport);70 void setSupportsSeamless (BOOL aSupportsSeamless); 71 71 72 72 // for VirtualBoxSupportErrorInfoImpl … … 77 77 struct Data 78 78 { 79 Data() : mAdditionsActive (FALSE), mS eamlessSupport(FALSE) {}79 Data() : mAdditionsActive (FALSE), mSupportsSeamless (FALSE) {} 80 80 81 81 Bstr mOSTypeId; 82 82 BOOL mAdditionsActive; 83 83 Bstr mAdditionsVersion; 84 BOOL mS eamlessSupport;84 BOOL mSupportsSeamless; 85 85 }; 86 86
Note:
See TracChangeset
for help on using the changeset viewer.