Changeset 54644 in vbox for trunk/src/VBox
- Timestamp:
- Mar 5, 2015 11:21:53 AM (10 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox/src
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.cpp
r54637 r54644 21 21 22 22 /* Qt includes: */ 23 # include <QObject> 23 # include <QSocketNotifier> 24 25 /* GUI includes: */ 26 # include "COMDefs.h" 24 27 25 28 /* COM includes: */ 26 # include "COMDefs.h"27 # include "UIDefs.h"28 29 # include "CVirtualBoxErrorInfo.h" 29 30 30 31 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 31 32 32 #include <QSocketNotifier> 33 /* VirtualBox interface declarations: */ 34 #ifndef VBOX_WITH_XPCOM 35 # include "VirtualBox.h" 36 #else /* !VBOX_WITH_XPCOM */ 37 # include "VirtualBox_XPCOM.h" 38 #endif /* VBOX_WITH_XPCOM */ 39 40 /* Other VBox includes: */ 41 #include <iprt/log.h> 33 42 34 43 #ifdef VBOX_WITH_XPCOM -
trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.h
r54637 r54644 98 98 #endif /* !defined(VBOX_WITH_XPCOM) */ 99 99 100 101 /* VirtualBox interfaces declarations */102 #if !defined(VBOX_WITH_XPCOM)103 #include <VirtualBox.h>104 #else /* !defined(VBOX_WITH_XPCOM) */105 #include <VirtualBox_XPCOM.h>106 #endif /* !defined(VBOX_WITH_XPCOM) */107 108 100 ///////////////////////////////////////////////////////////////////////////// 109 101 … … 637 629 clear(); 638 630 mIface = that.mIface; 639 this->addref( ptr());631 this->addref((IUnknown*)ptr()); 640 632 } 641 633 … … 644 636 clear(); 645 637 setPtr(aIface); 646 this->addref( aIface);638 this->addref((IUnknown*)aIface); 647 639 } 648 640 … … 697 689 /* be aware of self assignment */ 698 690 I* amIface = ptr(); 699 this->addref( aIface);700 this->release( amIface);691 this->addref((IUnknown*)aIface); 692 this->release((IUnknown*)amIface); 701 693 if (aIface) 702 694 { 703 695 amIface = NULL; 704 696 B::mRC = aIface->QueryInterface(COM_IIDOF(I), (void **)&amIface); 705 this->release( aIface);697 this->release((IUnknown*)aIface); 706 698 setPtr(amIface); 707 699 } … … 720 712 #endif 721 713 /* be aware of self assignment */ 722 this->addref( aIface);723 this->release( ptr());714 this->addref((IUnknown*)aIface); 715 this->release((IUnknown*)ptr()); 724 716 setPtr(aIface); 725 717 B::mRC = S_OK; … … 732 724 Assert(!mDead); 733 725 #endif 734 this->release( ptr());726 this->release((IUnknown*)ptr()); 735 727 setPtr(NULL); 736 728 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/COMWrappers.xsl
r54637 r54644 239 239 <xsl:text> * Generator : src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl
</xsl:text> 240 240 <xsl:text> */

</xsl:text> 241 <xsl:text>/* VirtualBox interface declarations: */
</xsl:text> 242 <xsl:text>#ifndef VBOX_WITH_XPCOM
</xsl:text> 243 <xsl:text># include "VirtualBox.h"
</xsl:text> 244 <xsl:text>#else /* !VBOX_WITH_XPCOM */
</xsl:text> 245 <xsl:text># include "VirtualBox_XPCOM.h"
</xsl:text> 246 <xsl:text>#endif /* VBOX_WITH_XPCOM */

</xsl:text> 241 247 <xsl:text>/* COM includes: */
</xsl:text> 242 248 <xsl:text>#include "COMEnums.h"
</xsl:text> … … 295 301 <xsl:text>
</xsl:text> 296 302 297 <!-- Interface declaration: --> 298 <xsl:text>/* Interface declaration: */
</xsl:text> 303 <!-- Interface forward declaration: --> 304 <xsl:text>/* Interface forward declaration: */
</xsl:text> 305 <xsl:text>struct I</xsl:text> 306 <xsl:value-of select="substring(@name,2)"/> 307 <xsl:text>;

</xsl:text> 308 309 <!-- Interface wrapper declaration: --> 310 <xsl:text>/* Interface wrapper declaration: */
</xsl:text> 299 311 <xsl:text>class C</xsl:text> 300 312 <xsl:value-of select="substring(@name,2)"/> … … 330 342 <xsl:text>Q_DECLARE_METATYPE(</xsl:text> 331 343 <xsl:value-of select="concat('C',substring(@name,2))"/> 332 <xsl:text>) 

</xsl:text>344 <xsl:text>);

</xsl:text> 333 345 334 346 <!-- Declare safe-array --> … … 466 478 <xsl:text> C</xsl:text> 467 479 <xsl:value-of select="substring(@name,2)"/> 468 <xsl:text>() {}

</xsl:text> 480 <xsl:text>();
</xsl:text> 481 <!-- default destructor --> 482 <xsl:text> ~C</xsl:text> 483 <xsl:value-of select="substring(@name,2)"/> 484 <xsl:text>();

</xsl:text> 469 485 <!-- constructor taking CWhatever --> 470 486 <xsl:text> template<class OI, class OB> explicit C</xsl:text> … … 486 502 <xsl:text>(const C</xsl:text> 487 503 <xsl:value-of select="substring(@name,2)"/> 488 <xsl:text> & that) : Base(that) {}

</xsl:text>504 <xsl:text> & that);

</xsl:text> 489 505 <!-- constructor taking a raw iface pointer --> 490 506 <xsl:text> template<class OI> explicit C</xsl:text> … … 496 512 <xsl:text>(</xsl:text> 497 513 <xsl:value-of select="@name"/> 498 <xsl:text> * aIface) : Base(aIface) {}

</xsl:text>514 <xsl:text> * aIface);

</xsl:text> 499 515 <!-- assignment taking CWhatever --> 500 516 <xsl:text> template<class OI, class OB> C</xsl:text> … … 517 533 <xsl:text> & operator=(const C</xsl:text> 518 534 <xsl:value-of select="substring(@name,2)"/> 519 <xsl:text> & that) 520 { 521 Base::operator=(that); 522 return *this; 523 } 524 </xsl:text> 535 <xsl:text> & that);
</xsl:text> 525 536 <xsl:text>
</xsl:text> 526 537 <!-- assignment taking a raw iface pointer --> … … 539 550 <xsl:text> & operator=(</xsl:text> 540 551 <xsl:value-of select="@name"/> 541 <xsl:text> * aIface) 542 { 543 Base::operator=(aIface); 544 return *this; 545 } 546 </xsl:text> 552 <xsl:text> * aIface);
</xsl:text> 547 553 <xsl:text>
</xsl:text> 548 554 … … 655 661 </xsl:template> 656 662 663 <xsl:template name="defineConstructors"> 664 665 <!-- default constructor --> 666 <xsl:text>C</xsl:text> 667 <xsl:value-of select="substring(@name,2)"/> 668 <xsl:text>::C</xsl:text> 669 <xsl:value-of select="substring(@name,2)"/> 670 <xsl:text>() {}

</xsl:text> 671 672 <!-- default destructor --> 673 <xsl:text>C</xsl:text> 674 <xsl:value-of select="substring(@name,2)"/> 675 <xsl:text>::~C</xsl:text> 676 <xsl:value-of select="substring(@name,2)"/> 677 <xsl:text>() {}

</xsl:text> 678 679 <!-- copy constructor --> 680 <xsl:text>C</xsl:text> 681 <xsl:value-of select="substring(@name,2)"/> 682 <xsl:text>::C</xsl:text> 683 <xsl:value-of select="substring(@name,2)"/> 684 <xsl:text>(const C</xsl:text> 685 <xsl:value-of select="substring(@name,2)"/> 686 <xsl:text> &that) : Base(that) {}

</xsl:text> 687 688 <!-- copy constructor taking interface pointer --> 689 <xsl:text>C</xsl:text> 690 <xsl:value-of select="substring(@name,2)"/> 691 <xsl:text>::C</xsl:text> 692 <xsl:value-of select="substring(@name,2)"/> 693 <xsl:text>(</xsl:text> 694 <xsl:value-of select="@name"/> 695 <xsl:text> *pIface) : Base(pIface) {}

</xsl:text> 696 697 <!-- operator= --> 698 <xsl:text>C</xsl:text> 699 <xsl:value-of select="substring(@name,2)"/> 700 <xsl:text>& </xsl:text> 701 <xsl:text>C</xsl:text> 702 <xsl:value-of select="substring(@name,2)"/> 703 <xsl:text>::operator=(const C</xsl:text> 704 <xsl:value-of select="substring(@name,2)"/> 705 <xsl:text> &that) 706 { 707 Base::operator=(that); 708 return *this; 709 } 710 </xsl:text> 711 <xsl:text>
</xsl:text> 712 713 <!-- operator= taking interface pointer --> 714 <xsl:text>C</xsl:text> 715 <xsl:value-of select="substring(@name,2)"/> 716 <xsl:text>& </xsl:text> 717 <xsl:text>C</xsl:text> 718 <xsl:value-of select="substring(@name,2)"/> 719 <xsl:text>::operator=(</xsl:text> 720 <xsl:value-of select="@name"/> 721 <xsl:text> *pIface) 722 { 723 Base::operator=(pIface); 724 return *this; 725 } 726 </xsl:text> 727 <xsl:text>
</xsl:text> 728 729 </xsl:template> 730 657 731 <xsl:template name="defineAttributes"> 658 732 … … 894 968 895 969 <xsl:template name="defineMembers"> 970 <xsl:call-template name="defineConstructors"> 971 <xsl:with-param name="iface" select="."/> 972 </xsl:call-template> 896 973 <xsl:call-template name="defineAttributes"> 897 974 <xsl:with-param name="iface" select="."/> -
trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp
r54637 r54644 134 134 135 135 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 136 137 /* VirtualBox interface declarations: */ 138 #ifndef VBOX_WITH_XPCOM 139 # include "VirtualBox.h" 140 #else /* !VBOX_WITH_XPCOM */ 141 # include "VirtualBox_XPCOM.h" 142 #endif /* VBOX_WITH_XPCOM */ 136 143 137 144 #include <QLibraryInfo> -
trunk/src/VBox/Frontends/VirtualBox/src/runtime/UIFrameBuffer.cpp
r54637 r54644 46 46 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 47 47 48 /* VirtualBox interface declarations: */ 49 #ifndef VBOX_WITH_XPCOM 50 # include "VirtualBox.h" 51 #else /* !VBOX_WITH_XPCOM */ 52 # include "VirtualBox_XPCOM.h" 53 #endif /* VBOX_WITH_XPCOM */ 54 48 55 /* Other VBox includes: */ 49 56 #include <iprt/critsect.h> -
trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.cpp
r54637 r54644 41 41 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 42 42 43 /* VirtualBox interface declarations: */ 44 #ifndef VBOX_WITH_XPCOM 45 # include "VirtualBox.h" 46 #else /* !VBOX_WITH_XPCOM */ 47 # include "VirtualBox_XPCOM.h" 48 #endif /* VBOX_WITH_XPCOM */ 43 49 44 50 UIGMachinePreview::UIGMachinePreview(QIGraphicsWidget *pParent) -
trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp
r54637 r54644 42 42 # include "CUSBDeviceFilter.h" 43 43 # include "CHostUSBDevice.h" 44 # include "CHostUSBDeviceFilter.h" 44 45 # include "CExtPackManager.h" 45 46 # include "CExtPack.h" … … 47 48 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 48 49 49 #include "CHostUSBDeviceFilter.h" 50 /* VirtualBox interface declarations: */ 51 #ifndef VBOX_WITH_XPCOM 52 # include "VirtualBox.h" 53 #else /* !VBOX_WITH_XPCOM */ 54 # include "VirtualBox_XPCOM.h" 55 #endif /* VBOX_WITH_XPCOM */ 50 56 51 57 -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp
r54637 r54644 39 39 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 40 40 41 /* VirtualBox interface declarations: */ 42 #ifndef VBOX_WITH_XPCOM 43 # include "VirtualBox.h" 44 #else /* !VBOX_WITH_XPCOM */ 45 # include "VirtualBox_XPCOM.h" 46 #endif /* VBOX_WITH_XPCOM */ 41 47 42 48 /* Namespaces: */ -
trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp
r54637 r54644 39 39 #endif /* !VBOX_WITH_PRECOMPILED_HEADERS */ 40 40 41 /* VirtualBox interface declarations: */ 42 #ifndef VBOX_WITH_XPCOM 43 # include "VirtualBox.h" 44 #else /* !VBOX_WITH_XPCOM */ 45 # include "VirtualBox_XPCOM.h" 46 #endif /* VBOX_WITH_XPCOM */ 41 47 42 48 UIWizardNewVMPage3::UIWizardNewVMPage3()
Note:
See TracChangeset
for help on using the changeset viewer.