VirtualBox

Ignore:
Timestamp:
Mar 4, 2015 2:47:32 PM (10 years ago)
Author:
vboxsync
Message:

FE/Qt: Reverting r98765 as it's too early for it, need to make it build under Win/X11 first.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
8 edited

Legend:

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

    r54622 r54627  
    2121
    2222/* Qt includes: */
    23 # include <QSocketNotifier>
    24 
    25 /* GUI includes: */
     23# include <QObject>
     24
     25/* COM includes: */
    2626# include "COMDefs.h"
    27 
    28 /* COM includes: */
     27# include "UIDefs.h"
    2928# include "CVirtualBoxErrorInfo.h"
    3029
    3130#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    3231
    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 */
     32#include <QSocketNotifier>
    3933
    4034#ifdef VBOX_WITH_XPCOM
     
    4337# include <iprt/env.h>
    4438# include <iprt/err.h>
    45 # include <iprt/log.h>
    4639# include <iprt/path.h>
    4740# include <iprt/param.h>
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.h

    r54622 r54627  
    6969
    7070#include <VBox/com/com.h>
    71 #include <VBox/com/defs.h>
    7271#include <VBox/com/array.h>
    7372#include <VBox/com/assert.h>
     
    9796class XPCOMEventQSocketListener;
    9897
     98#endif /* !defined(VBOX_WITH_XPCOM) */
     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>
    99106#endif /* !defined(VBOX_WITH_XPCOM) */
    100107
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/COMWrappers.xsl

    r54622 r54627  
    239239    <xsl:text> * Generator : src/VBox/Frontends/VirtualBox/include/COMWrappers.xsl&#x0A;</xsl:text>
    240240    <xsl:text> */&#x0A;&#x0A;</xsl:text>
    241     <xsl:text>/* VirtualBox interface declarations: */&#x0A;</xsl:text>
    242     <xsl:text>#ifndef VBOX_WITH_XPCOM&#x0A;</xsl:text>
    243     <xsl:text># include "VirtualBox.h"&#x0A;</xsl:text>
    244     <xsl:text>#else /* !VBOX_WITH_XPCOM */&#x0A;</xsl:text>
    245     <xsl:text># include "VirtualBox_XPCOM.h"&#x0A;</xsl:text>
    246     <xsl:text>#endif /* VBOX_WITH_XPCOM */&#x0A;&#x0A;</xsl:text>
    247241    <xsl:text>/* COM includes: */&#x0A;</xsl:text>
    248242    <xsl:text>#include "COMEnums.h"&#x0A;</xsl:text>
     
    301295    <xsl:text>&#x0A;</xsl:text>
    302296
    303     <!-- Interface forward declaration: -->
    304     <xsl:text>/* Interface forward declaration: */&#x0A;</xsl:text>
    305     <xsl:text>class I</xsl:text>
    306     <xsl:value-of select="substring(@name,2)"/>
    307     <xsl:text>;&#x0A;&#x0A;</xsl:text>
    308 
    309     <!-- Interface wrapper declaration: -->
    310     <xsl:text>/* Interface wrapper declaration: */&#x0A;</xsl:text>
     297    <!-- Interface declaration: -->
     298    <xsl:text>/* Interface declaration: */&#x0A;</xsl:text>
    311299    <xsl:text>class C</xsl:text>
    312300    <xsl:value-of select="substring(@name,2)"/>
     
    342330    <xsl:text>Q_DECLARE_METATYPE(</xsl:text>
    343331    <xsl:value-of select="concat('C',substring(@name,2))"/>
    344     <xsl:text>);&#x0A;&#x0A;</xsl:text>
     332    <xsl:text>)&#x0A;&#x0A;</xsl:text>
    345333
    346334    <!-- Declare safe-array -->
     
    478466  <xsl:text>    C</xsl:text>
    479467  <xsl:value-of select="substring(@name,2)"/>
    480   <xsl:text>();&#x0A;</xsl:text>
    481   <!-- default destructor -->
    482   <xsl:text>    ~C</xsl:text>
    483   <xsl:value-of select="substring(@name,2)"/>
    484   <xsl:text>();&#x0A;&#x0A;</xsl:text>
     468  <xsl:text>() {}&#x0A;&#x0A;</xsl:text>
    485469  <!-- constructor taking CWhatever -->
    486470  <xsl:text>    template&lt;class OI, class OB&gt; explicit C</xsl:text>
     
    502486  <xsl:text>(const C</xsl:text>
    503487  <xsl:value-of select="substring(@name,2)"/>
    504   <xsl:text> &amp; that);&#x0A;&#x0A;</xsl:text>
     488  <xsl:text> &amp; that) : Base(that) {}&#x0A;&#x0A;</xsl:text>
    505489  <!-- constructor taking a raw iface pointer -->
    506490  <xsl:text>    template&lt;class OI&gt; explicit C</xsl:text>
     
    512496  <xsl:text>(</xsl:text>
    513497  <xsl:value-of select="@name"/>
    514   <xsl:text> * aIface);&#x0A;&#x0A;</xsl:text>
     498  <xsl:text> * aIface) : Base(aIface) {}&#x0A;&#x0A;</xsl:text>
    515499  <!-- assignment taking CWhatever -->
    516500  <xsl:text>    template&lt;class OI, class OB&gt; C</xsl:text>
     
    533517  <xsl:text> &amp; operator=(const C</xsl:text>
    534518  <xsl:value-of select="substring(@name,2)"/>
    535 <xsl:text> &amp; that);&#x0A;</xsl:text>
     519<xsl:text> &amp; that)
     520    {
     521        Base::operator=(that);
     522        return *this;
     523    }
     524</xsl:text>
    536525  <xsl:text>&#x0A;</xsl:text>
    537526  <!-- assignment taking a raw iface pointer -->
     
    550539  <xsl:text> &amp; operator=(</xsl:text>
    551540  <xsl:value-of select="@name"/>
    552 <xsl:text> * aIface);&#x0A;</xsl:text>
     541<xsl:text> * aIface)
     542    {
     543        Base::operator=(aIface);
     544        return *this;
     545    }
     546</xsl:text>
    553547  <xsl:text>&#x0A;</xsl:text>
    554548
     
    661655</xsl:template>
    662656
    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>() {}&#x0A;&#x0A;</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>() {}&#x0A;&#x0A;</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> &amp;that) : Base(that) {}&#x0A;&#x0A;</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) {}&#x0A;&#x0A;</xsl:text>
    696 
    697   <!-- operator= -->
    698   <xsl:text>C</xsl:text>
    699   <xsl:value-of select="substring(@name,2)"/>
    700   <xsl:text>&amp; </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> &amp;that)
    706 {
    707     Base::operator=(that);
    708     return *this;
    709 }
    710 </xsl:text>
    711   <xsl:text>&#x0A;</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>&amp; </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>&#x0A;</xsl:text>
    728 
    729 </xsl:template>
    730 
    731657<xsl:template name="defineAttributes">
    732658
     
    968894
    969895<xsl:template name="defineMembers">
    970   <xsl:call-template name="defineConstructors">
    971     <xsl:with-param name="iface" select="."/>
    972   </xsl:call-template>
    973896  <xsl:call-template name="defineAttributes">
    974897    <xsl:with-param name="iface" select="."/>
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.cpp

    r54622 r54627  
    172172#endif /* Q_WS_X11 */
    173173
    174 /* VirtualBox interface declarations: */
    175 #ifndef VBOX_WITH_XPCOM
    176 # include "VirtualBox.h"
    177 #else /* !VBOX_WITH_XPCOM */
    178 # include "VirtualBox_XPCOM.h"
    179 #endif /* VBOX_WITH_XPCOM */
    180174
    181175//#define VBOX_WITH_FULL_DETAILS_REPORT /* hidden for now */
  • trunk/src/VBox/Frontends/VirtualBox/src/selector/graphics/details/UIGMachinePreview.cpp

    r54622 r54627  
    4141#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    4242
    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 */
    4943
    5044UIGMachinePreview::UIGMachinePreview(QIGraphicsWidget *pParent)
  • trunk/src/VBox/Frontends/VirtualBox/src/settings/machine/UIMachineSettingsUSB.cpp

    r54622 r54627  
    4242# include "CUSBDeviceFilter.h"
    4343# include "CHostUSBDevice.h"
    44 # include "CHostUSBDeviceFilter.h"
    4544# include "CExtPackManager.h"
    4645# include "CExtPack.h"
     
    4847#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    4948
    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 */
     49#include "CHostUSBDeviceFilter.h"
     50
    5651
    5752/**
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVM.cpp

    r54622 r54627  
    3939#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    4040
    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 */
    4741
    4842/* Namespaces: */
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/newvm/UIWizardNewVMPageBasic3.cpp

    r54622 r54627  
    3939#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
    4040
    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 */
    4741
    4842UIWizardNewVMPage3::UIWizardNewVMPage3()
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