VirtualBox

Ignore:
Timestamp:
Aug 29, 2008 2:09:39 PM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
35651
Message:

made Qt4 the default GUI; VBOX_VRDP => VBOX_WITH_VRDP; VBOX_HGCM => VBOX_WITH_HGCM; Makefile cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/MachineImpl.cpp

    r11699 r11820  
    12751275STDMETHODIMP Machine::COMGETTER(VRDPServer)(IVRDPServer **vrdpServer)
    12761276{
    1277 #ifdef VBOX_VRDP
     1277#ifdef VBOX_WITH_VRDP
    12781278    if (!vrdpServer)
    12791279        return E_POINTER;
     
    36243624
    36253625    Bstr type (aType);
    3626     if (type == "gui" || type == "GUI/Qt3")
    3627     {
    3628 #ifdef RT_OS_DARWIN /* Avoid Lanuch Services confusing this with the selector by using a helper app. */
    3629         const char VirtualBox_exe[] = "../Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM3";
    3630 #else
    3631         const char VirtualBox_exe[] = "VirtualBox3" HOSTSUFF_EXE;
    3632 #endif
     3626
     3627    /* Qt4 is default */
     3628#ifdef VBOX_WITH_QT4GUI
     3629    if (type == "gui" || type == "GUI/Qt4")
     3630    {
     3631# ifdef RT_OS_DARWIN /* Avoid Lanuch Services confusing this with the selector by using a helper app. */
     3632        const char VirtualBox_exe[] = "../Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM";
     3633# else
     3634        const char VirtualBox_exe[] = "VirtualBox" HOSTSUFF_EXE;
     3635# endif
    36333636        Assert (sz >= sizeof (VirtualBox_exe));
    36343637        strcpy (cmd, VirtualBox_exe);
    36353638
    36363639        Utf8Str idStr = mData->mUuid.toString();
    3637 #ifdef RT_OS_WINDOWS /** @todo drop this once the RTProcCreate bug has been fixed */
     3640# ifdef RT_OS_WINDOWS /** @todo drop this once the RTProcCreate bug has been fixed */
    36383641        const char * args[] = {path, "-startvm", idStr, 0 };
    3639 #else
     3642# else
    36403643        Utf8Str name = mUserData->mName;
    36413644        const char * args[] = {path, "-comment", name, "-startvm", idStr, 0 };
    3642 #endif
     3645# endif
    36433646        vrc = RTProcCreate (path, args, env, 0, &pid);
    36443647    }
     3648#else /* !VBOX_WITH_QT4GUI */
     3649    if (0)
     3650        ;
     3651#endif /* VBOX_WITH_QT4GUI */
     3652
    36453653    else
    3646     if (type == "GUI/Qt4")
    3647     {
    3648 #ifdef RT_OS_DARWIN /* Avoid Lanuch Services confusing this with the selector by using a helper app. */
    3649         const char VirtualBox_exe[] = "../Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM";
    3650 #else
    3651         const char VirtualBox_exe[] = "VirtualBox" HOSTSUFF_EXE;
    3652 #endif
     3654
     3655    /* Qt3 is used sometimes as well, OS/2 does not have Qt4 at all */
     3656#ifdef VBOX_WITH_QTGUI
     3657    if (type == "gui" || type == "GUI/Qt3")
     3658    {
     3659# ifdef RT_OS_DARWIN /* Avoid Lanuch Services confusing this with the selector by using a helper app. */
     3660        const char VirtualBox_exe[] = "../Resources/VirtualBoxVM.app/Contents/MacOS/VirtualBoxVM3";
     3661# else
     3662        const char VirtualBox_exe[] = "VirtualBox3" HOSTSUFF_EXE;
     3663# endif
    36533664        Assert (sz >= sizeof (VirtualBox_exe));
    36543665        strcpy (cmd, VirtualBox_exe);
    36553666
    36563667        Utf8Str idStr = mData->mUuid.toString();
    3657 #ifdef RT_OS_WINDOWS /** @todo drop this once the RTProcCreate bug has been fixed */
     3668# ifdef RT_OS_WINDOWS /** @todo drop this once the RTProcCreate bug has been fixed */
    36583669        const char * args[] = {path, "-startvm", idStr, 0 };
    3659 #else
     3670# else
    36603671        Utf8Str name = mUserData->mName;
    36613672        const char * args[] = {path, "-comment", name, "-startvm", idStr, 0 };
    3662 #endif
     3673# endif
    36633674        vrc = RTProcCreate (path, args, env, 0, &pid);
    36643675    }
     3676#else /* !VBOX_WITH_QTGUI */
     3677    if (0)
     3678        ;
     3679#endif /* !VBOX_WITH_QTGUI */
     3680
    36653681    else
    3666 #ifdef VBOX_VRDP
     3682
     3683#ifdef VBOX_WITH_VRDP
    36673684    if (type == "vrdp")
    36683685    {
     
    36723689
    36733690        Utf8Str idStr = mData->mUuid.toString();
    3674 #ifdef RT_OS_WINDOWS
     3691# ifdef RT_OS_WINDOWS
    36753692        const char * args[] = {path, "-startvm", idStr, 0 };
    3676 #else
     3693# else
    36773694        Utf8Str name = mUserData->mName;
    36783695        const char * args[] = {path, "-comment", name, "-startvm", idStr, 0 };
    3679 #endif
     3696# endif
    36803697        vrc = RTProcCreate (path, args, env, 0, &pid);
    36813698    }
     3699#else /* !VBOX_WITH_VRDP */
     3700    if (0)
     3701        ;
     3702#endif /* !VBOX_WITH_VRDP */
     3703
    36823704    else
    3683 #endif /* VBOX_VRDP */
     3705
     3706#ifdef VBOX_WITH_HEADLESS
    36843707    if (type == "capture")
    36853708    {
     
    36893712
    36903713        Utf8Str idStr = mData->mUuid.toString();
    3691 #ifdef RT_OS_WINDOWS
     3714# ifdef RT_OS_WINDOWS
    36923715        const char * args[] = {path, "-startvm", idStr, "-capture", 0 };
    3693 #else
     3716# else
    36943717        Utf8Str name = mUserData->mName;
    36953718        const char * args[] = {path, "-comment", name, "-startvm", idStr, "-capture", 0 };
    3696 #endif
     3719# endif
    36973720        vrc = RTProcCreate (path, args, env, 0, &pid);
    36983721    }
     3722#else /* !VBOX_WITH_HEADLESS */
     3723    if (0)
     3724        ;
     3725#endif /* !VBOX_WITH_HEADLESS */
    36993726    else
    37003727    {
     
    41234150    mBIOSSettings->init (this);
    41244151
    4125 #ifdef VBOX_VRDP
     4152#ifdef VBOX_WITH_VRDP
    41264153    /* create an associated VRDPServer object (default is disabled) */
    41274154    unconst (mVRDPServer).createObject();
     
    42524279    }
    42534280
    4254 #ifdef VBOX_VRDP
     4281#ifdef VBOX_WITH_VRDP
    42554282    if (mVRDPServer)
    42564283    {
     
    48084835    }
    48094836
    4810 #ifdef VBOX_VRDP
     4837#ifdef VBOX_WITH_VRDP
    48114838    /* RemoteDisplay */
    48124839    rc = mVRDPServer->loadSettings (aNode);
     
    61936220    }
    61946221
    6195 #ifdef VBOX_VRDP
     6222#ifdef VBOX_WITH_VRDP
    61966223    /* VRDP settings (optional) */
    61976224    rc = mVRDPServer->saveSettings (aNode);
     
    72757302        mHWData.isBackedUp() ||
    72767303        mHDData.isBackedUp() ||
    7277 #ifdef VBOX_VRDP
     7304#ifdef VBOX_WITH_VRDP
    72787305        (mVRDPServer && mVRDPServer->isModified()) ||
    72797306#endif
     
    73187345        /* ignore mHDData */
    73197346        //mHDData.hasActualChanges() ||
    7320 #ifdef VBOX_VRDP
     7347#ifdef VBOX_WITH_VRDP
    73217348        (mVRDPServer && mVRDPServer->isReallyModified()) ||
    73227349#endif
     
    73947421        mBIOSSettings->rollback();
    73957422
    7396 #ifdef VBOX_VRDP
     7423#ifdef VBOX_WITH_VRDP
    73977424    if (mVRDPServer)
    73987425        vrdpChanged = mVRDPServer->rollback();
     
    74957522
    74967523    mBIOSSettings->commit();
    7497 #ifdef VBOX_VRDP
     7524#ifdef VBOX_WITH_VRDP
    74987525    mVRDPServer->commit();
    74997526#endif
     
    75617588
    75627589    mBIOSSettings->copyFrom (aThat->mBIOSSettings);
    7563 #ifdef VBOX_VRDP
     7590#ifdef VBOX_WITH_VRDP
    75647591    mVRDPServer->copyFrom (aThat->mVRDPServer);
    75657592#endif
     
    78087835    unconst (mBIOSSettings).createObject();
    78097836    mBIOSSettings->init (this, aMachine->mBIOSSettings);
    7810 #ifdef VBOX_VRDP
     7837#ifdef VBOX_WITH_VRDP
    78117838    /* create another VRDPServer object that will be mutable */
    78127839    unconst (mVRDPServer).createObject();
     
    1056610593    mBIOSSettings->initCopy (this, mPeer->mBIOSSettings);
    1056710594
    10568 #ifdef VBOX_VRDP
     10595#ifdef VBOX_WITH_VRDP
    1056910596    unconst (mVRDPServer).createObject();
    1057010597    mVRDPServer->initCopy (this, mPeer->mVRDPServer);
     
    1066810695    mBIOSSettings->init (this);
    1066910696
    10670 #ifdef VBOX_VRDP
     10697#ifdef VBOX_WITH_VRDP
    1067110698    unconst (mVRDPServer).createObject();
    1067210699    mVRDPServer->init (this);
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