VirtualBox

Ignore:
Timestamp:
Jan 27, 2010 1:33:54 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
56994
Message:

Main/Session+Console: By default, create a console with no sub-objects (saves resources). VM processes need to explicitly ask for a full console when before opening the session.

Location:
trunk/src/VBox/Frontends/VirtualBox/src/globals
Files:
2 edited

Legend:

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

    r26034 r26067  
    66
    77/*
    8  * Copyright (C) 2008-2009 Sun Microsystems, Inc.
     8 * Copyright (C) 2008-2010 Sun Microsystems, Inc.
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    21902190 *                      which is already running, @c false to open a new direct
    21912191 *                      session.
    2192  */
    2193 CSession VBoxGlobal::openSession (const QString &aId, bool aExisting /* = false */)
     2192 *  @param aFullConsole @c true to create a full console, suitable of running
     2193 *                      a VM, @c false to create a minimal console suitable
     2194 *                      for API clients. Only significant if @a aExisting is
     2195 *                      @false.
     2196 */
     2197CSession VBoxGlobal::openSession (const QString &aId, bool aExisting /* = false */, bool aFullConsole /* = false */)
    21942198{
    21952199    CSession session;
     
    22052209    else
    22062210    {
     2211        session.SetFullConsole(aFullConsole);
    22072212        mVBox.OpenSession (session, aId);
    22082213        CMachine machine = session.GetMachine ();
     
    22312236    AssertReturn (mValid, false);
    22322237
    2233     CSession session = vboxGlobal().openSession (id);
     2238    CSession session = vboxGlobal().openSession (id, false, true);
    22342239    if (session.isNull())
    22352240        return false;
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/VBoxGlobal.h

    r25318 r26067  
    66
    77/*
    8  * Copyright (C) 2006-2009 Sun Microsystems, Inc.
     8 * Copyright (C) 2006-2010 Sun Microsystems, Inc.
    99 *
    1010 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    670670#endif
    671671
    672     CSession openSession (const QString &aId, bool aExisting = false);
     672    CSession openSession (const QString &aId, bool aExisting = false, bool aFullConsole = false);
    673673
    674674    /** Shortcut to openSession (aId, true). */
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