VirtualBox

Changeset 50117 in vbox for trunk


Ignore:
Timestamp:
Jan 20, 2014 2:05:02 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91661
Message:

Main+Frontends: clear out some cruft code, outdated EventQueue stuff and whitespace cleanup

Location:
trunk/src/VBox
Files:
9 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/testcase/tstHeadless.cpp

    r48244 r50117  
    66
    77/*
    8  * Copyright (C) 2006-2011 Oracle Corporation
     8 * Copyright (C) 2006-2014 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2222#include <VBox/com/ErrorInfo.h>
    2323#include <VBox/com/errorprint.h>
    24 #include <VBox/com/EventQueue.h>
    2524
    2625#include <VBox/com/VirtualBox.h>
     
    3837 *  Entry point.
    3938 */
    40 int main (int argc, char **argv)
     39int main(int argc, char **argv)
    4140{
    4241    // initialize VBox Runtime
     
    5655    if (!name || !operation)
    5756    {
    58         RTPrintf ("\nUsage:\n\n"
    59                   "%s <machine_name> [on|off|pause|resume]\n\n",
    60                   argv [0]);
     57        RTPrintf("\nUsage:\n\n"
     58                 "%s <machine_name> [on|off|pause|resume]\n\n",
     59                 argv [0]);
    6160        return 0;
    6261    }
    6362
    64     RTPrintf ("\n");
    65     RTPrintf ("tstHeadless STARTED.\n");
    66 
    67     RTPrintf ("VM name   : {%s}\n"
    68               "Operation : %s\n\n",
    69               name, operation);
     63    RTPrintf("\n");
     64    RTPrintf("tstHeadless STARTED.\n");
     65
     66    RTPrintf("VM name   : {%s}\n"
     67             "Operation : %s\n\n",
     68             name, operation);
    7069
    7170    HRESULT rc;
     
    8382        ComPtr <ISession> session;
    8483
    85         RTPrintf ("Creating VirtualBox object...\n");
    86         rc = virtualBox.createLocalObject (CLSID_VirtualBox);
     84        RTPrintf("Creating VirtualBox object...\n");
     85        rc = virtualBox.createLocalObject(CLSID_VirtualBox);
    8786        if (FAILED(rc))
    8887            RTPrintf("ERROR: failed to create the VirtualBox object!\n");
     
    9493        }
    9594
    96         if (FAILED (rc))
     95        if (FAILED(rc))
    9796        {
    9897            com::ErrorInfo info;
     
    106105            break;
    107106        }
    108 
    109         // create the event queue
    110         // (here it is necessary only to process remaining XPCOM/IPC events
    111         // after the session is closed)
    112         EventQueue eventQ;
    113107
    114108        ComPtr <IMachine> m;
     
    121115        {
    122116            ComPtr <IProgress> progress;
    123             RTPrintf ("Opening a new (remote) session...\n");
    124             CHECK_ERROR_BREAK (m,
    125                                LaunchVMProcess(session, Bstr("vrdp").raw(),
    126                                                NULL, progress.asOutParam()));
    127 
    128             RTPrintf ("Waiting for the remote session to open...\n");
    129             CHECK_ERROR_BREAK (progress, WaitForCompletion (-1));
     117            RTPrintf("Opening a new (remote) session...\n");
     118            CHECK_ERROR_BREAK(m,
     119                              LaunchVMProcess(session, Bstr("vrdp").raw(),
     120                                              NULL, progress.asOutParam()));
     121
     122            RTPrintf("Waiting for the remote session to open...\n");
     123            CHECK_ERROR_BREAK(progress, WaitForCompletion(-1));
    130124
    131125            BOOL completed;
    132             CHECK_ERROR_BREAK (progress, COMGETTER(Completed) (&completed));
    133             ASSERT (completed);
     126            CHECK_ERROR_BREAK(progress, COMGETTER(Completed)(&completed));
     127            ASSERT(completed);
    134128
    135129            LONG resultCode;
    136             CHECK_ERROR_BREAK (progress, COMGETTER(ResultCode) (&resultCode));
    137             if (FAILED (resultCode))
     130            CHECK_ERROR_BREAK(progress, COMGETTER(ResultCode)(&resultCode));
     131            if (FAILED(resultCode))
    138132            {
    139133                ProgressErrorInfo info(progress);
     
    142136            else
    143137            {
    144                 RTPrintf ("Remote session has been successfully opened.\n");
     138                RTPrintf("Remote session has been successfully opened.\n");
    145139            }
    146140        }
    147141        else
    148142        {
    149             RTPrintf ("Opening an existing session...\n");
     143            RTPrintf("Opening an existing session...\n");
    150144            CHECK_ERROR_BREAK(m, LockMachine(session, LockType_Shared));
    151145
     
    153147            CHECK_ERROR_BREAK(session, COMGETTER(Console)(console.asOutParam()));
    154148
    155             if (!strcmp (operation, "off"))
     149            if (!strcmp(operation, "off"))
    156150            {
    157151                ComPtr <IProgress> progress;
    158                 RTPrintf ("Powering the VM off...\n");
    159                 CHECK_ERROR_BREAK (console, PowerDown(progress.asOutParam()));
    160 
    161                 RTPrintf ("Waiting for the VM to power down...\n");
    162                 CHECK_ERROR_BREAK (progress, WaitForCompletion (-1));
     152                RTPrintf("Powering the VM off...\n");
     153                CHECK_ERROR_BREAK(console, PowerDown(progress.asOutParam()));
     154
     155                RTPrintf("Waiting for the VM to power down...\n");
     156                CHECK_ERROR_BREAK(progress, WaitForCompletion(-1));
    163157
    164158                BOOL completed;
    165                 CHECK_ERROR_BREAK (progress, COMGETTER(Completed) (&completed));
    166                 ASSERT (completed);
     159                CHECK_ERROR_BREAK(progress, COMGETTER(Completed)(&completed));
     160                ASSERT(completed);
    167161
    168162                LONG resultCode;
    169                 CHECK_ERROR_BREAK (progress, COMGETTER(ResultCode) (&resultCode));
    170                 if (FAILED (resultCode))
     163                CHECK_ERROR_BREAK(progress, COMGETTER(ResultCode)(&resultCode));
     164                if (FAILED(resultCode))
    171165                {
    172166                    ProgressErrorInfo info(progress);
     
    175169                else
    176170                {
    177                     RTPrintf ("VM is powered down.\n");
     171                    RTPrintf("VM is powered down.\n");
    178172                }
    179173            }
    180174            else
    181             if (!strcmp (operation, "pause"))
    182             {
    183                 RTPrintf ("Pausing the VM...\n");
    184                 CHECK_ERROR_BREAK (console, Pause());
    185             }
    186             else
    187             if (!strcmp (operation, "resume"))
    188             {
    189                 RTPrintf ("Resuming the VM...\n");
    190                 CHECK_ERROR_BREAK (console, Resume());
    191             }
    192             else
    193             {
    194                 RTPrintf ("Invalid operation!\n");
     175            if (!strcmp(operation, "pause"))
     176            {
     177                RTPrintf("Pausing the VM...\n");
     178                CHECK_ERROR_BREAK(console, Pause());
     179            }
     180            else
     181            if (!strcmp(operation, "resume"))
     182            {
     183                RTPrintf("Resuming the VM...\n");
     184                CHECK_ERROR_BREAK(console, Resume());
     185            }
     186            else
     187            {
     188                RTPrintf("Invalid operation!\n");
    195189            }
    196190        }
     
    200194    }
    201195    while (0);
    202     RTPrintf ("\n");
     196    RTPrintf("\n");
    203197
    204198    com::Shutdown();
    205199
    206     RTPrintf ("tstHeadless FINISHED.\n");
     200    RTPrintf("tstHeadless FINISHED.\n");
    207201
    208202    return rc;
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp

    r47908 r50117  
    55
    66/*
    7  * Copyright (C) 2006-2013 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2727
    2828#include <iprt/asm.h>
    29 
    30 /* missing XPCOM <-> COM wrappers */
    31 #ifndef STDMETHOD_
    32 # define STDMETHOD_(ret, meth) NS_IMETHOD_(ret) meth
    33 #endif
    34 #ifndef NS_GET_IID
    35 # define NS_GET_IID(I) IID_##I
    36 #endif
    37 #ifndef RT_OS_WINDOWS
    38 #define IUnknown nsISupports
    39 #endif
    4029
    4130using namespace com;
     
    7160    {
    7261        Guid guid(iid);
    73         if (guid == Guid(NS_GET_IID(IUnknown)))
     62        if (guid == Guid(COM_IIDOF(IUnknown)))
    7463            *ppvObject = (IUnknown *)this;
    7564#ifdef RT_OS_WINDOWS
    76         else if (guid == Guid(NS_GET_IID(IDispatch)))
     65        else if (guid == Guid(COM_IIDOF(IDispatch)))
    7766            *ppvObject = (IDispatch *)this;
    7867#endif
    79         else if (guid == Guid(NS_GET_IID(IUSBDevice)))
     68        else if (guid == Guid(COM_IIDOF(IUSBDevice)))
    8069            *ppvObject = (IUSBDevice *)this;
    8170        else
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/COMDefs.h

    r44528 r50117  
    1010
    1111/*
    12  * Copyright (C) 2006-2012 Oracle Corporation
     12 * Copyright (C) 2006-2014 Oracle Corporation
    1313 *
    1414 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    4949    // ...
    5050
    51     QVector <LONG> in (3);
    52     in [0] = -1;
    53     in [1] = -2;
    54     in [2] = -3;
    55 
    56     QVector <LONG> out;
    57     QVector <LONG> ret;
    58 
    59     ret = component.TestArrays (in, out);
     51    QVector<LONG> in(3);
     52    in[0] = -1;
     53    in[1] = -2;
     54    in[2] = -3;
     55
     56    QVector<LONG> out;
     57    QVector<LONG> ret;
     58
     59    ret = component.TestArrays(in, out);
    6060
    6161    for (size_t i = 0; i < ret.size(); ++ i)
    62         LogFlow (("*** ret[%u]=%d\n", i, ret [i]));
     62        LogFlow(("*** ret[%u]=%d\n", i, ret[i]));
    6363
    6464 * @endcode
     
    8888 */
    8989
    90 #if !defined (VBOX_WITH_XPCOM)
    91 
    92 #else /* !defined (VBOX_WITH_XPCOM) */
     90#if !defined(VBOX_WITH_XPCOM)
     91
     92#else /* !defined(VBOX_WITH_XPCOM) */
    9393
    9494#include <nsXPCOM.h>
     
    9898class XPCOMEventQSocketListener;
    9999
    100 #endif /* !defined (VBOX_WITH_XPCOM) */
     100#endif /* !defined(VBOX_WITH_XPCOM) */
    101101
    102102
    103103/* VirtualBox interfaces declarations */
    104 #if !defined (VBOX_WITH_XPCOM)
     104#if !defined(VBOX_WITH_XPCOM)
    105105    #include <VirtualBox.h>
    106 #else /* !defined (VBOX_WITH_XPCOM) */
     106#else /* !defined(VBOX_WITH_XPCOM) */
    107107    #include <VirtualBox_XPCOM.h>
    108 #endif /* !defined (VBOX_WITH_XPCOM) */
     108#endif /* !defined(VBOX_WITH_XPCOM) */
    109109
    110110/////////////////////////////////////////////////////////////////////////////
     
    170170    void fetchFromCurrentThread(IUnknown *callee, const GUID *calleeIID);
    171171
    172     static QString getInterfaceNameFromIID (const QUuid &id);
     172    static QString getInterfaceNameFromIID(const QUuid &id);
    173173
    174174    bool mIsNull : 1;
     
    210210    HRESULT lastRC() const { return mRC; }
    211211
    212 #if !defined (VBOX_WITH_XPCOM)
     212#if !defined(VBOX_WITH_XPCOM)
    213213
    214214    /** Converts a GUID value to QUuid */
    215     static QUuid ToQUuid (const GUID &id)
    216     {
    217         return QUuid (id.Data1, id.Data2, id.Data3,
    218                       id.Data4[0], id.Data4[1], id.Data4[2], id.Data4[3],
    219                       id.Data4[4], id.Data4[5], id.Data4[6], id.Data4[7]);
    220     }
    221 
    222 #else /* !defined (VBOX_WITH_XPCOM) */
     215    static QUuid ToQUuid(const GUID &id)
     216    {
     217        return QUuid(id.Data1, id.Data2, id.Data3,
     218                     id.Data4[0], id.Data4[1], id.Data4[2], id.Data4[3],
     219                     id.Data4[4], id.Data4[5], id.Data4[6], id.Data4[7]);
     220    }
     221
     222#else /* !defined(VBOX_WITH_XPCOM) */
    223223
    224224    /** Converts a GUID value to QUuid */
    225     static QUuid ToQUuid (const nsID &id)
    226     {
    227         return QUuid (id.m0, id.m1, id.m2,
    228                       id.m3[0], id.m3[1], id.m3[2], id.m3[3],
    229                       id.m3[4], id.m3[5], id.m3[6], id.m3[7]);
    230     }
    231 
    232 #endif /* !defined (VBOX_WITH_XPCOM) */
     225    static QUuid ToQUuid(const nsID &id)
     226    {
     227        return QUuid(id.m0, id.m1, id.m2,
     228                     id.m3[0], id.m3[1], id.m3[2], id.m3[3],
     229                     id.m3[4], id.m3[5], id.m3[6], id.m3[7]);
     230    }
     231
     232#endif /* !defined(VBOX_WITH_XPCOM) */
    233233
    234234    /* Arrays of arbitrary types */
    235235
    236236    template <typename QT, typename CT>
    237     static void ToSafeArray (const QVector <QT> &aVec, com::SafeArray <CT> &aArr)
    238     {
    239         aArr.reset (aVec.size());
     237    static void ToSafeArray(const QVector<QT> &aVec, com::SafeArray<CT> &aArr)
     238    {
     239        aArr.reset(aVec.size());
    240240        for (int i = 0; i < aVec.size(); ++i)
    241             aArr [i] = static_cast<CT> (aVec.at (i));
     241            aArr[i] = static_cast<CT>(aVec.at(i));
    242242    }
    243243
    244244    template <typename CT, typename QT>
    245     static void FromSafeArray (const com::SafeArray <CT> &aArr, QVector <QT> &aVec)
    246     {
    247         aVec.resize (static_cast<int> (aArr.size()));
     245    static void FromSafeArray(const com::SafeArray<CT> &aArr, QVector<QT> &aVec)
     246    {
     247        aVec.resize(static_cast<int>(aArr.size()));
    248248        for (int i = 0; i < aVec.size(); ++i)
    249             aVec [i] = static_cast<QT> (aArr [i]);
     249            aVec[i] = static_cast<QT>(aArr[i]);
    250250    }
    251251
    252252    template <typename QT, typename CT>
    253     static void ToSafeArray (const QVector <QT *> &aVec, com::SafeArray <CT *> &aArr)
    254     {
    255         Q_UNUSED (aVec);
    256         Q_UNUSED (aArr);
    257         AssertMsgFailedReturnVoid (("No conversion!\n"));
     253    static void ToSafeArray(const QVector<QT *> &aVec, com::SafeArray<CT *> &aArr)
     254    {
     255        Q_UNUSED(aVec);
     256        Q_UNUSED(aArr);
     257        AssertMsgFailedReturnVoid(("No conversion!\n"));
    258258    }
    259259
    260260    template <typename CT, typename QT>
    261     static void FromSafeArray (const com::SafeArray <CT *> &aArr, QVector <QT *> &aVec)
    262     {
    263         Q_UNUSED (aArr);
    264         Q_UNUSED (aVec);
    265         AssertMsgFailedReturnVoid (("No conversion!\n"));
     261    static void FromSafeArray(const com::SafeArray<CT *> &aArr, QVector<QT *> &aVec)
     262    {
     263        Q_UNUSED(aArr);
     264        Q_UNUSED(aVec);
     265        AssertMsgFailedReturnVoid(("No conversion!\n"));
    266266    }
    267267
     
    269269
    270270    template <typename T>
    271     static void ToSafeArray (const QVector <T> &aVec, com::SafeArray <T> &aArr)
    272     {
    273         aArr.reset (aVec.size());
     271    static void ToSafeArray(const QVector<T> &aVec, com::SafeArray<T> &aArr)
     272    {
     273        aArr.reset(aVec.size());
    274274        for (int i = 0; i < aVec.size(); ++i)
    275             aArr [i] = aVec.at (i);
     275            aArr[i] = aVec.at(i);
    276276    }
    277277
    278278    template <typename T>
    279     static void FromSafeArray (const com::SafeArray <T> &aArr, QVector <T> &aVec)
    280     {
    281         aVec.resize (static_cast<int> (aArr.size()));
     279    static void FromSafeArray(const com::SafeArray<T> &aArr, QVector<T> &aVec)
     280    {
     281        aVec.resize(static_cast<int>(aArr.size()));
    282282        for (int i = 0; i < aVec.size(); ++i)
    283             aVec [i] = aArr [i];
     283            aVec[i] = aArr[i];
    284284    }
    285285
    286286    /* Arrays of strings */
    287287
    288     static void ToSafeArray (const QVector <QString> &aVec,
    289                              com::SafeArray <BSTR> &aArr);
    290     static void FromSafeArray (const com::SafeArray <BSTR> &aArr,
    291                                QVector <QString> &aVec);
     288    static void ToSafeArray(const QVector<QString> &aVec,
     289                            com::SafeArray<BSTR> &aArr);
     290    static void FromSafeArray(const com::SafeArray<BSTR> &aArr,
     291                              QVector<QString> &aVec);
    292292
    293293    /* Arrays of GUID */
    294294
    295     static void ToSafeArray (const QVector <QUuid> &aVec,
    296                              com::SafeGUIDArray &aArr);
    297     static void FromSafeArray (const com::SafeGUIDArray &aArr,
    298                                QVector <QUuid> &aVec);
     295    static void ToSafeArray(const QVector<QUuid> &aVec,
     296                            com::SafeGUIDArray &aArr);
     297    static void FromSafeArray(const com::SafeGUIDArray &aArr,
     298                              QVector<QUuid> &aVec);
    299299
    300300    /* Arrays of enums. Does a cast similar to what ENUMOut does. */
    301301
    302302    template <typename QE, typename CE>
    303     static void ToSafeArray (const QVector <QE> &aVec,
    304                              com::SafeIfaceArray <CE> &aArr)
    305     {
    306         aArr.reset (static_cast <int> (aVec.size()));
     303    static void ToSafeArray(const QVector<QE> &aVec,
     304                            com::SafeIfaceArray<CE> &aArr)
     305    {
     306        aArr.reset(static_cast<int>(aVec.size()));
    307307        for (int i = 0; i < aVec.size(); ++i)
    308             aArr [i] = static_cast <CE> (aVec.at (i));
     308            aArr[i] = static_cast<CE>(aVec.at(i));
    309309    }
    310310
    311311    template <typename CE, typename QE>
    312     static void FromSafeArray (const com::SafeIfaceArray <CE> &aArr,
    313                                QVector <QE> &aVec)
    314     {
    315         aVec.resize (static_cast <int> (aArr.size()));
     312    static void FromSafeArray(const com::SafeIfaceArray<CE> &aArr,
     313                              QVector<QE> &aVec)
     314    {
     315        aVec.resize(static_cast<int>(aArr.size()));
    316316        for (int i = 0; i < aVec.size(); ++i)
    317             aVec [i] = static_cast <QE> (aArr [i]);
     317            aVec[i] = static_cast<QE>(aArr[i]);
    318318    }
    319319
    320320    /* Arrays of interface pointers. Note: we need a separate pair of names
    321321     * only because the MSVC8 template matching algorithm is poor and tries to
    322      * instantiate a com::SafeIfaceArray <BSTR> (!!!) template otherwise for
     322     * instantiate a com::SafeIfaceArray<BSTR> (!!!) template otherwise for
    323323     * *no* reason and fails. Note that it's also not possible to choose the
    324324     * correct function by specifying template arguments explicitly because then
    325      * it starts to try to instantiate the com::SafeArray <I> template for
     325     * it starts to try to instantiate the com::SafeArray<I> template for
    326326     * *no* reason again and fails too. Definitely, broken. Works in GCC like a
    327327     * charm. */
    328328
    329329    template <class CI, class I>
    330     static void ToSafeIfaceArray (const QVector <CI> &aVec,
    331                                   com::SafeIfaceArray <I> &aArr)
    332     {
    333         aArr.reset (static_cast<int> (aVec.size()));
     330    static void ToSafeIfaceArray(const QVector<CI> &aVec,
     331                                 com::SafeIfaceArray<I> &aArr)
     332    {
     333        aArr.reset(static_cast<int>(aVec.size()));
    334334        for (int i = 0; i < aVec.size(); ++i)
    335335        {
    336             aArr [i] = aVec.at (i).raw();
    337             if (aArr [i])
    338                 aArr [i]->AddRef();
     336            aArr[i] = aVec.at(i).raw();
     337            if (aArr[i])
     338                aArr[i]->AddRef();
    339339        }
    340340    }
    341341
    342342    template <class I, class CI>
    343     static void FromSafeIfaceArray (const com::SafeIfaceArray <I> &aArr,
    344                                     QVector <CI> &aVec)
    345     {
    346         aVec.resize (static_cast<int> (aArr.size()));
     343    static void FromSafeIfaceArray(const com::SafeIfaceArray<I> &aArr,
     344                                   QVector<CI> &aVec)
     345    {
     346        aVec.resize(static_cast<int>(aArr.size()));
    347347        for (int i = 0; i < aVec.size(); ++i)
    348             aVec [i].attach (aArr [i]);
     348            aVec[i].attach(aArr[i]);
    349349    }
    350350
     
    352352
    353353    /* no arbitrary instance creations */
    354     COMBase() : mRC (S_OK) {}
    355 
    356 #if defined (VBOX_WITH_XPCOM)
     354    COMBase() : mRC(S_OK) {}
     355
     356#if defined(VBOX_WITH_XPCOM)
    357357    static XPCOMEventQSocketListener *sSocketListener;
    358358#endif
     
    363363    public:
    364364
    365         BSTRIn (const QString &s) : bstr (SysAllocString ((const OLECHAR *)
     365        BSTRIn(const QString &s) : bstr(SysAllocString((const OLECHAR *)
    366366            (s.isNull() ? 0 : s.utf16()))) {}
    367367
     
    369369        {
    370370            if (bstr)
    371                 SysFreeString (bstr);
     371                SysFreeString(bstr);
    372372        }
    373373
     
    384384    public:
    385385
    386         BSTROut (QString &s) : str (s), bstr (0) {}
     386        BSTROut(QString &s) : str(s), bstr(0) {}
    387387
    388388        ~BSTROut()
    389389        {
    390390            if (bstr) {
    391                 str = QString::fromUtf16 (bstr);
    392                 SysFreeString (bstr);
     391                str = QString::fromUtf16(bstr);
     392                SysFreeString(bstr);
    393393            }
    394394        }
     
    413413    public:
    414414
    415         ENUMOut (QE &e) : qe (e), ce ((CE) 0) {}
    416         ~ENUMOut() { qe = (QE) ce; }
     415        ENUMOut(QE &e) : qe(e), ce((CE)0) {}
     416        ~ENUMOut() { qe = (QE)ce; }
    417417        operator CE *() { return &ce; }
    418418
     
    423423    };
    424424
    425 #if !defined (VBOX_WITH_XPCOM)
     425#if !defined(VBOX_WITH_XPCOM)
    426426
    427427    /** Adapter to pass QUuid as input GUID params */
    428     static GUID GUIDIn (const QUuid &uuid) { return uuid; }
     428    static GUID GUIDIn(const QUuid &uuid) { return uuid; }
    429429
    430430    /** Adapter to pass QUuid as output GUID params */
     
    433433    public:
    434434
    435         GUIDOut (QUuid &id) : uuid (id)
    436         {
    437             ::memset (&guid, 0, sizeof (GUID));
     435        GUIDOut(QUuid &id) : uuid(id)
     436        {
     437            ::memset(&guid, 0, sizeof(GUID));
    438438        }
    439439
    440440        ~GUIDOut()
    441441        {
    442             uuid = QUuid (
     442            uuid = QUuid(
    443443                guid.Data1, guid.Data2, guid.Data3,
    444444                guid.Data4[0], guid.Data4[1], guid.Data4[2], guid.Data4[3],
     
    454454    };
    455455
    456 #else /* !defined (VBOX_WITH_XPCOM) */
     456#else /* !defined(VBOX_WITH_XPCOM) */
    457457
    458458    /** Adapter to pass QUuid as input GUID params */
    459     static const nsID &GUIDIn (const QUuid &uuid)
     459    static const nsID &GUIDIn(const QUuid &uuid)
    460460    {
    461461        return *(const nsID *) &uuid;
     
    467467    public:
    468468
    469         GUIDOut (QUuid &id) : uuid (id), nsid (0) {}
     469        GUIDOut(QUuid &id) : uuid(id), nsid(0) {}
    470470
    471471        ~GUIDOut()
     
    473473            if (nsid)
    474474            {
    475                 uuid = QUuid (
     475                uuid = QUuid(
    476476                    nsid->m0, nsid->m1, nsid->m2,
    477477                    nsid->m3[0], nsid->m3[1], nsid->m3[2], nsid->m3[3],
    478478                    nsid->m3[4], nsid->m3[5], nsid->m3[6], nsid->m3[7]);
    479                 nsMemory::Free (nsid);
     479                nsMemory::Free(nsid);
    480480            }
    481481        }
     
    489489    };
    490490
    491 #endif /* !defined (VBOX_WITH_XPCOM) */
    492 
    493     static void addref (IUnknown *aIface) { if (aIface) aIface->AddRef(); }
    494     static void release (IUnknown *aIface) { if (aIface) aIface->Release(); }
     491#endif /* !defined(VBOX_WITH_XPCOM) */
     492
     493    static void addref(IUnknown *aIface) { if (aIface) aIface->AddRef(); }
     494    static void release(IUnknown *aIface) { if (aIface) aIface->Release(); }
    495495
    496496protected:
     
    523523
    524524    /* no arbitrary instance creation */
    525     COMBaseWithEI() : COMBase () {};
    526 
    527     void setErrorInfo (const COMErrorInfo &aErrInfo) { mErrInfo = aErrInfo; }
    528 
    529     void fetchErrorInfo (IUnknown *aCallee, const GUID *aCalleeIID) const
    530     {
    531         mErrInfo.fetchFromCurrentThread (aCallee, aCalleeIID);
     525    COMBaseWithEI() : COMBase() {};
     526
     527    void setErrorInfo(const COMErrorInfo &aErrInfo) { mErrInfo = aErrInfo; }
     528
     529    void fetchErrorInfo(IUnknown *aCallee, const GUID *aCalleeIID) const
     530    {
     531        mErrInfo.fetchFromCurrentThread(aCallee, aCalleeIID);
    532532    }
    533533
     
    544544public:
    545545
    546     COMResult() : mRC (S_OK) {}
     546    COMResult() : mRC(S_OK) {}
    547547
    548548    /**
    549549     * Queries the current result code from the given component.
    550550     */
    551     explicit COMResult (const COMBase &aComponent)
    552         : mRC (aComponent.lastRC()) {}
     551    explicit COMResult(const COMBase &aComponent)
     552        : mRC(aComponent.lastRC()) {}
    553553
    554554    /**
     
    563563     * Queries the current result code from the given component.
    564564     */
    565     COMResult &operator= (const COMBase &aComponent)
     565    COMResult &operator=(const COMBase &aComponent)
    566566    {
    567567        mRC = aComponent.lastRC();
     
    572572     * Queries the current result code and error info from the given component.
    573573     */
    574     COMResult &operator= (const COMBaseWithEI &aComponent)
     574    COMResult &operator=(const COMBaseWithEI &aComponent)
    575575    {
    576576        mRC = aComponent.lastRC();
     
    585585     * warnings).
    586586     */
    587     bool isOk() const { return SUCCEEDED (mRC); }
     587    bool isOk() const { return SUCCEEDED(mRC); }
    588588
    589589    /**
     
    591591     * warnings.
    592592     */
    593     bool isWarning() const { return SUCCEEDED_WARNING (mRC); }
     593    bool isWarning() const { return SUCCEEDED_WARNING(mRC); }
    594594
    595595    /**
     
    635635    }
    636636
    637     CInterface (const CInterface &that) : B (that)
     637    CInterface(const CInterface &that) : B(that)
    638638    {
    639639        clear();
     
    642642    }
    643643
    644     CInterface (I *aIface)
     644    CInterface(I *aIface)
    645645    {
    646646        clear();
    647         setPtr (aIface);
    648         this->addref (aIface);
     647        setPtr(aIface);
     648        this->addref(aIface);
    649649    }
    650650
     
    658658
    659659    // utility methods
    660     void createInstance (const CLSID &aClsId)
    661     {
    662         AssertMsg (ptr() == NULL, ("Instance is already non-NULL\n"));
     660    void createInstance(const CLSID &aClsId)
     661    {
     662        AssertMsg(ptr() == NULL, ("Instance is already non-NULL\n"));
    663663        if (ptr() == NULL)
    664664        {
    665665            I* pObj = NULL;
    666 #if !defined (VBOX_WITH_XPCOM)
    667             B::mRC = CoCreateInstance (aClsId, NULL, CLSCTX_ALL,
    668                                        _ATL_IIDOF (I), (void **) &pObj);
     666#if !defined(VBOX_WITH_XPCOM)
     667            B::mRC = CoCreateInstance(aClsId, NULL, CLSCTX_ALL,
     668                                      _ATL_IIDOF(I), (void **)&pObj);
    669669#else
    670             nsCOMPtr <nsIComponentManager> manager;
    671             B::mRC = NS_GetComponentManager (getter_AddRefs (manager));
    672             if (SUCCEEDED (B::mRC))
    673                 B::mRC = manager->CreateInstance (aClsId, nsnull, NS_GET_IID (I),
    674                                                   (void **) &pObj);
    675 #endif
    676 
    677             if (SUCCEEDED (B::mRC))
     670            nsCOMPtr<nsIComponentManager> manager;
     671            B::mRC = NS_GetComponentManager(getter_AddRefs(manager));
     672            if (SUCCEEDED(B::mRC))
     673                B::mRC = manager->CreateInstance(aClsId, nsnull, NS_GET_IID(I),
     674                                                 (void **)&pObj);
     675#endif
     676
     677            if (SUCCEEDED(B::mRC))
    678678               setPtr(pObj);
    679679            else
     
    683683             * reasons can lead to an error (w/o providing error info), not only
    684684             * the instance initialization code (that should always provide it) */
    685             B::fetchErrorInfo (NULL, NULL);
     685            B::fetchErrorInfo(NULL, NULL);
    686686         }
    687687    }
     
    692692     */
    693693    template <class OI>
    694     void attach (OI *aIface)
     694    void attach(OI *aIface)
    695695    {
    696696#ifdef DEBUG
     
    699699        /* be aware of self assignment */
    700700        I* amIface = ptr();
    701         this->addref (aIface);
    702         this->release (amIface);
     701        this->addref(aIface);
     702        this->release(amIface);
    703703        if (aIface)
    704704        {
    705705            amIface = NULL;
    706             B::mRC = aIface->QueryInterface (COM_IIDOF (I), (void **) &amIface);
    707             this->release (aIface);
     706            B::mRC = aIface->QueryInterface(COM_IIDOF(I), (void **)&amIface);
     707            this->release(aIface);
    708708            setPtr(amIface);
    709709        }
     
    716716
    717717    /** Specialization of attach() for our own interface I. Never fails. */
    718     void attach (I *aIface)
     718    void attach(I *aIface)
    719719    {
    720720#ifdef DEBUG
     
    722722#endif
    723723        /* be aware of self assignment */
    724         this->addref (aIface);
    725         this->release (ptr());
     724        this->addref(aIface);
     725        this->release(ptr());
    726726        setPtr(aIface);
    727727        B::mRC = S_OK;
     
    734734       Assert(!mDead);
    735735#endif
    736        this->release (ptr());
     736       this->release(ptr());
    737737       setPtr(NULL);
    738738    }
     
    751751     * warnings).
    752752     */
    753     bool isOk() const { return !isNull() && SUCCEEDED (B::mRC); }
     753    bool isOk() const { return !isNull() && SUCCEEDED(B::mRC); }
    754754
    755755    /**
     
    757757     * warnings.
    758758     */
    759     bool isWarning() const { return !isNull() && SUCCEEDED_WARNING (B::mRC); }
     759    bool isWarning() const { return !isNull() && SUCCEEDED_WARNING(B::mRC); }
    760760
    761761    /**
     
    766766    // utility operators
    767767
    768     CInterface &operator= (const CInterface &that)
    769     {
    770         attach (that.ptr());
    771         B::operator= (that);
     768    CInterface &operator=(const CInterface &that)
     769    {
     770        attach(that.ptr());
     771        B::operator=(that);
    772772        return *this;
    773773    }
    774774
    775     CInterface &operator= (I *aIface)
    776     {
    777         attach (aIface);
     775    CInterface &operator=(I *aIface)
     776    {
     777        attach(aIface);
    778778        return *this;
    779779    }
     
    788788    }
    789789
    790     bool operator== (const CInterface &that) const { return ptr() == that.ptr(); }
    791     bool operator!= (const CInterface &that) const { return ptr() != that.ptr(); }
     790    bool operator==(const CInterface &that) const { return ptr() == that.ptr(); }
     791    bool operator!=(const CInterface &that) const { return ptr() != that.ptr(); }
    792792
    793793    I* ptr() const
     
    825825/////////////////////////////////////////////////////////////////////////////
    826826
    827 class CUnknown : public CInterface <IUnknown, COMBaseWithEI>
     827class CUnknown : public CInterface<IUnknown, COMBaseWithEI>
    828828{
    829829public:
    830830
    831     typedef CInterface <IUnknown, COMBaseWithEI> Base;
     831    typedef CInterface<IUnknown, COMBaseWithEI> Base;
    832832
    833833    CUnknown() {}
     
    835835    /** Creates an instance given another CInterface-based instance. */
    836836    template <class OI, class OB>
    837     explicit CUnknown (const CInterface <OI, OB> &that)
    838     {
    839         attach (that.ptr());
    840         if (SUCCEEDED (mRC))
     837    explicit CUnknown(const CInterface<OI, OB> &that)
     838    {
     839        attach(that.ptr());
     840        if (SUCCEEDED(mRC))
    841841        {
    842842            /* preserve old error info if any */
    843843            mRC = that.lastRC();
    844             setErrorInfo (that.errorInfo());
     844            setErrorInfo(that.errorInfo());
    845845        }
    846846    }
    847847
    848848    /** Constructor specialization for IUnknown. */
    849     CUnknown (const CUnknown &that) : Base (that) {}
     849    CUnknown(const CUnknown &that) : Base(that) {}
    850850
    851851    /** Creates an instance given a foreign interface pointer. */
    852852    template <class OI>
    853     explicit CUnknown (OI *aIface)
    854     {
    855         attach (aIface);
     853    explicit CUnknown(OI *aIface)
     854    {
     855        attach(aIface);
    856856    }
    857857
    858858    /** Constructor specialization for IUnknown. */
    859     explicit CUnknown (IUnknown *aIface) : Base (aIface) {}
     859    explicit CUnknown(IUnknown *aIface) : Base(aIface) {}
    860860
    861861    /** Assigns from another CInterface-based instance. */
    862862    template <class OI, class OB>
    863     CUnknown &operator= (const CInterface <OI, OB> &that)
    864     {
    865         attach (that.ptr());
    866         if (SUCCEEDED (mRC))
     863    CUnknown &operator=(const CInterface<OI, OB> &that)
     864    {
     865        attach(that.ptr());
     866        if (SUCCEEDED(mRC))
    867867        {
    868868            /* preserve old error info if any */
    869869            mRC = that.lastRC();
    870             setErrorInfo (that.errorInfo());
     870            setErrorInfo(that.errorInfo());
    871871        }
    872872        return *this;
     
    874874
    875875    /** Assignment specialization for CUnknown. */
    876     CUnknown &operator= (const CUnknown &that)
    877     {
    878         Base::operator= (that);
     876    CUnknown &operator=(const CUnknown &that)
     877    {
     878        Base::operator=(that);
    879879        return *this;
    880880    }
     
    882882    /** Assigns from a foreign interface pointer. */
    883883    template <class OI>
    884     CUnknown &operator= (OI *aIface)
    885     {
    886         attach (aIface);
     884    CUnknown &operator=(OI *aIface)
     885    {
     886        attach(aIface);
    887887        return *this;
    888888    }
    889889
    890890    /** Assignment specialization for IUnknown. */
    891     CUnknown &operator= (IUnknown *aIface)
    892     {
    893         Base::operator= (aIface);
     891    CUnknown &operator=(IUnknown *aIface)
     892    {
     893        Base::operator=(aIface);
    894894        return *this;
    895895    }
  • trunk/src/VBox/Main/glue/initterm.cpp

    r48282 r50117  
    66
    77/*
    8  * Copyright (C) 2006-2013 Oracle Corporation
     8 * Copyright (C) 2006-2014 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2121# include <objbase.h>
    2222
    23 #else /* !defined (VBOX_WITH_XPCOM) */
     23#else /* !defined(VBOX_WITH_XPCOM) */
    2424
    2525# include <stdlib.h>
     
    173173        return rv;
    174174
    175     return localFile->QueryInterface(NS_GET_IID (nsIFile), (void **)aRetval);
     175    return localFile->QueryInterface(NS_GET_IID(nsIFile), (void **)aRetval);
    176176}
    177177
     
    187187static unsigned int gXPCOMInitCount = 0;
    188188
    189 #else /* !defined (VBOX_WITH_XPCOM) */
     189#else /* !defined(VBOX_WITH_XPCOM) */
    190190
    191191/**
     
    199199static uint32_t gCOMMainInitCount = 0;
    200200
    201 #endif /* !defined (VBOX_WITH_XPCOM) */
     201#endif /* !defined(VBOX_WITH_XPCOM) */
    202202
    203203
     
    295295        gCOMMainInitCount = 1;
    296296
    297 #else /* !defined (VBOX_WITH_XPCOM) */
     297#else /* !defined(VBOX_WITH_XPCOM) */
    298298
    299299    /* Unused here */
     
    499499    }
    500500
    501 #endif /* !defined (VBOX_WITH_XPCOM) */
     501#endif /* !defined(VBOX_WITH_XPCOM) */
    502502
    503503    AssertComRCReturnRC(rc);
     
    537537    CoUninitialize();
    538538
    539 #else /* !defined (VBOX_WITH_XPCOM) */
     539#else /* !defined(VBOX_WITH_XPCOM) */
    540540
    541541    nsCOMPtr<nsIEventQueue> eventQ;
  • trunk/src/VBox/Main/src-server/xpcom/server_module.cpp

    r47117 r50117  
    55
    66/*
    7  * Copyright (C) 2006-2011 Oracle Corporation
     7 * Copyright (C) 2006-2014 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    9292 */
    9393
    94 NS_DECL_CLASSINFO (VirtualBox)
    95 NS_IMPL_CI_INTERFACE_GETTER1 (VirtualBox, IVirtualBox)
     94NS_DECL_CLASSINFO(VirtualBox)
     95NS_IMPL_CI_INTERFACE_GETTER1(VirtualBox, IVirtualBox)
    9696
    9797static nsresult vboxsvcSpawnDaemon(void)
     
    168168 */
    169169static NS_IMETHODIMP
    170 VirtualBoxConstructor (nsISupports *aOuter, REFNSIID aIID,
    171                        void **aResult)
     170VirtualBoxConstructor(nsISupports *aOuter, REFNSIID aIID,
     171                      void **aResult)
    172172{
    173173    LogFlowFuncEnter();
     
    189189            /* Get the directory containing XPCOM components -- the VBoxSVC
    190190             * executable is expected in the parent directory. */
    191             nsCOMPtr <nsIProperties> dirServ = do_GetService (NS_DIRECTORY_SERVICE_CONTRACTID, &rc);
     191            nsCOMPtr<nsIProperties> dirServ = do_GetService(NS_DIRECTORY_SERVICE_CONTRACTID, &rc);
    192192            if (NS_SUCCEEDED(rc))
    193193            {
    194                 nsCOMPtr <nsIFile> componentDir;
    195                 rc = dirServ->Get (NS_XPCOM_COMPONENT_DIR,
    196                                    NS_GET_IID (nsIFile), getter_AddRefs (componentDir));
     194                nsCOMPtr<nsIFile> componentDir;
     195                rc = dirServ->Get(NS_XPCOM_COMPONENT_DIR,
     196                                  NS_GET_IID(nsIFile), getter_AddRefs(componentDir));
    197197
    198198                if (NS_SUCCEEDED(rc))
    199199                {
    200200                    nsCAutoString path;
    201                     componentDir->GetNativePath (path);
    202 
    203                     LogFlowFunc (("component directory = \"%s\"\n", path.get()));
    204                     AssertBreakStmt (path.Length() + strlen (VBoxSVC_exe) < RTPATH_MAX,
    205                                      rc = NS_ERROR_FAILURE);
     201                    componentDir->GetNativePath(path);
     202
     203                    LogFlowFunc(("component directory = \"%s\"\n", path.get()));
     204                    AssertBreakStmt(path.Length() + strlen(VBoxSVC_exe) < RTPATH_MAX,
     205                                    rc = NS_ERROR_FAILURE);
    206206
    207207#if defined(RT_OS_SOLARIS) && defined(VBOX_WITH_HARDENING)
    208208                    char achKernArch[128];
    209                     int cbKernArch = sysinfo (SI_ARCHITECTURE_K, achKernArch, sizeof(achKernArch));
     209                    int cbKernArch = sysinfo(SI_ARCHITECTURE_K, achKernArch, sizeof(achKernArch));
    210210                    if (cbKernArch > 0)
    211211                    {
     
    216216                        rc = NS_ERROR_UNEXPECTED;
    217217#else
    218                     strcpy (VBoxSVCPath, path.get());
    219                     RTPathStripFilename (VBoxSVCPath);
    220                     strcat (VBoxSVCPath, VBoxSVC_exe);
     218                    strcpy(VBoxSVCPath, path.get());
     219                    RTPathStripFilename(VBoxSVCPath);
     220                    strcat(VBoxSVCPath, VBoxSVC_exe);
    221221
    222222                    IsVBoxSVCPathSet = true;
     
    228228        }
    229229
    230         nsCOMPtr <ipcIService> ipcServ = do_GetService (IPC_SERVICE_CONTRACTID, &rc);
     230        nsCOMPtr<ipcIService> ipcServ = do_GetService(IPC_SERVICE_CONTRACTID, &rc);
    231231        if (NS_FAILED(rc))
    232232            break;
     
    239239        do
    240240        {
    241             LogFlowFunc (("Resolving server name \"%s\"...\n", VBOXSVC_IPC_NAME));
     241            LogFlowFunc(("Resolving server name \"%s\"...\n", VBOXSVC_IPC_NAME));
    242242
    243243            PRUint32 serverID = 0;
    244             rc = ipcServ->ResolveClientName (VBOXSVC_IPC_NAME, &serverID);
     244            rc = ipcServ->ResolveClientName(VBOXSVC_IPC_NAME, &serverID);
    245245            if (NS_FAILED(rc))
    246246            {
    247                 LogFlowFunc (("Starting server \"%s\"...\n", VBoxSVCPath));
     247                LogFlowFunc(("Starting server \"%s\"...\n", VBoxSVCPath));
    248248
    249249                startedOnce = true;
     
    256256                do
    257257                {
    258                     RTThreadSleep (VBoxSVC_WaitSlice);
    259                     rc = ipcServ->ResolveClientName (VBOXSVC_IPC_NAME, &serverID);
     258                    RTThreadSleep(VBoxSVC_WaitSlice);
     259                    rc = ipcServ->ResolveClientName(VBOXSVC_IPC_NAME, &serverID);
    260260                    if (NS_SUCCEEDED(rc))
    261261                        break;
     
    276276            }
    277277
    278             LogFlowFunc (("Connecting to server (ID=%d)...\n", serverID));
    279 
    280             nsCOMPtr <ipcIDConnectService> dconServ =
    281                 do_GetService (IPC_DCONNECTSERVICE_CONTRACTID, &rc);
     278            LogFlowFunc(("Connecting to server (ID=%d)...\n", serverID));
     279
     280            nsCOMPtr<ipcIDConnectService> dconServ =
     281                do_GetService(IPC_DCONNECTSERVICE_CONTRACTID, &rc);
    282282            if (NS_FAILED(rc))
    283283                break;
    284284
    285             rc = dconServ->CreateInstance (serverID,
    286                                            CLSID_VirtualBox,
    287                                            aIID, aResult);
     285            rc = dconServ->CreateInstance(serverID,
     286                                          CLSID_VirtualBox,
     287                                          aIID, aResult);
    288288            if (NS_SUCCEEDED(rc))
    289289                break;
    290290
    291             LogFlowFunc (("Failed to connect (rc=%Rhrc (%#08x))\n", rc, rc));
     291            LogFlowFunc(("Failed to connect (rc=%Rhrc (%#08x))\n", rc, rc));
    292292
    293293            /* It's possible that the server gets shut down after we
     
    298298            {
    299299                nsresult rc2 =
    300                     ipcServ->ResolveClientName (VBOXSVC_IPC_NAME, &serverID);
     300                    ipcServ->ResolveClientName(VBOXSVC_IPC_NAME, &serverID);
    301301                if (NS_SUCCEEDED(rc2))
    302302                    break;
    303303
    304                 LogFlowFunc (("Server seems to have terminated before "
    305                               "receiving our request. Will try again.\n"));
     304                LogFlowFunc(("Server seems to have terminated before receiving our request. Will try again.\n"));
    306305            }
    307306            else
     
    312311    while (0);
    313312
    314     LogFlowFunc (("rc=%Rhrc (%#08x), vrc=%Rrc\n", rc, rc, vrc));
     313    LogFlowFunc(("rc=%Rhrc (%#08x), vrc=%Rrc\n", rc, rc, vrc));
    315314    LogFlowFuncLeave();
    316315
     
    331330 */
    332331static NS_IMETHODIMP
    333 VirtualBoxRegistration (nsIComponentManager *aCompMgr,
    334                         nsIFile *aPath,
    335                         const char *aLoaderStr,
    336                         const char *aType,
    337                         const nsModuleComponentInfo *aInfo)
     332VirtualBoxRegistration(nsIComponentManager *aCompMgr,
     333                       nsIFile *aPath,
     334                       const char *aLoaderStr,
     335                       const char *aType,
     336                       const nsModuleComponentInfo *aInfo)
    338337{
    339338    nsCAutoString modulePath;
    340     aPath->GetNativePath (modulePath);
     339    aPath->GetNativePath(modulePath);
    341340    nsCAutoString moduleTarget;
    342     aPath->GetNativeTarget (moduleTarget);
    343 
    344     LogFlowFunc (("aPath=%s, aTarget=%s, aLoaderStr=%s, aType=%s\n",
    345                   modulePath.get(), moduleTarget.get(), aLoaderStr, aType));
     341    aPath->GetNativeTarget(moduleTarget);
     342
     343    LogFlowFunc(("aPath=%s, aTarget=%s, aLoaderStr=%s, aType=%s\n",
     344                 modulePath.get(), moduleTarget.get(), aLoaderStr, aType));
    346345
    347346    nsresult rc = NS_OK;
     
    372371};
    373372
    374 NS_IMPL_NSGETMODULE (VirtualBox_Server_Module, components)
     373NS_IMPL_NSGETMODULE(VirtualBox_Server_Module, components)
  • trunk/src/VBox/Main/testcase/tstAPI.cpp

    r48955 r50117  
    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
     
    2525#include <VBox/com/ErrorInfo.h>
    2626#include <VBox/com/errorprint.h>
    27 #include <VBox/com/EventQueue.h>
    2827
    2928#include <VBox/com/VirtualBox.h>
     
    369368    }
    370369#endif
    371 
    372     // create the event queue
    373     // (here it is necessary only to process remaining XPCOM/IPC events
    374     // after the session is closed)
    375     EventQueue eventQ;
    376370
    377371#if 0
  • trunk/src/VBox/Main/testcase/tstOVF.cpp

    r45068 r50117  
    66
    77/*
    8  * Copyright (C) 2010-2013 Oracle Corporation
     8 * Copyright (C) 2010-2014 Oracle Corporation
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2424#include <VBox/com/ErrorInfo.h>
    2525#include <VBox/com/errorprint.h>
    26 #include <VBox/com/EventQueue.h>
    2726
    2827#include <iprt/initterm.h>
     
    306305        if (FAILED(rc)) throw MyError(rc, "failed to create a session object!\n");
    307306
    308         // create the event queue
    309         // (here it is necessary only to process remaining XPCOM/IPC events after the session is closed)
    310         EventQueue eventQ;
    311 
    312307        // for each testcase, we will copy the dummy VMDK image to the subdirectory with the OVF testcase
    313308        // so that the import will find the disks it expects; this is just for testing the import since
  • trunk/src/VBox/Main/testcase/tstVBoxAPIXPCOM.cpp

    r49452 r50117  
    88
    99/*
    10  * Copyright (C) 2006-2013 Oracle Corporation
     10 * Copyright (C) 2006-2014 Oracle Corporation
    1111 *
    1212 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    8080#include <VBox/com/ErrorInfo.h>
    8181#include <VBox/com/errorprint.h>
    82 #include <VBox/com/EventQueue.h>
    8382
    8483#include <VBox/com/VirtualBox.h>
  • trunk/src/VBox/Main/webservice/websrv-cpp.xsl

    r47578 r50117  
    1212        generated for the webservice.
    1313
    14     Copyright (C) 2007-2013 Oracle Corporation
     14    Copyright (C) 2007-2014 Oracle Corporation
    1515
    1616    This file is part of VirtualBox Open Source Edition (OSE), as
     
    6666#include <VBox/com/ErrorInfo.h>
    6767#include <VBox/com/errorprint.h>
    68 #include <VBox/com/EventQueue.h>
    6968#include <VBox/VBoxAuth.h>
    7069
Note: See TracChangeset for help on using the changeset viewer.

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