VirtualBox

Changeset 6917 in vbox


Ignore:
Timestamp:
Feb 12, 2008 9:56:36 AM (17 years ago)
Author:
vboxsync
Message:

FE/Qt: Be verbose.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h

    r6904 r6917  
    415415#endif
    416416
    417     CSession openSession (const QUuid &id, bool aExisting = false);
     417    CSession openSession (const QUuid &aId, bool aExisting = false);
     418
     419    /** Shortcut to openSession (aId, true). */
     420    CSession openExistingSession (const QUuid &aId) { return openSession (aId, true); }
    418421
    419422    bool startMachine (const QUuid &id);
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp

    r6904 r6917  
    18271827 *  If this method succeeds, don't forget to close the returned session when
    18281828 *  it is no more necessary.
    1829  */
    1830 CSession VBoxGlobal::openSession (const QUuid &id, bool aExisting)
     1829 *
     1830 *  @param aId          Machine ID.
     1831 *  @param aExisting    @c true to open an existing session with the machine
     1832 *                      which is already running, @c false to open a new direct
     1833 *                      session.
     1834 */
     1835CSession VBoxGlobal::openSession (const QUuid &aId, bool aExisting /* = false */)
    18311836{
    18321837    CSession session;
     
    18381843    }
    18391844
    1840     aExisting ? mVBox.OpenExistingSession (session, id) :
    1841                         mVBox.OpenSession (session, id);
     1845    aExisting ? mVBox.OpenExistingSession (session, aId) :
     1846                mVBox.OpenSession (session, aId);
     1847
    18421848    if (!mVBox.isOk())
    18431849    {
    1844         CMachine machine = CVirtualBox (mVBox).GetMachine (id);
     1850        CMachine machine = CVirtualBox (mVBox).GetMachine (aId);
    18451851        vboxProblem().cannotOpenSession (mVBox, machine);
    18461852        session.detach();
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp

    r6904 r6917  
    975975    AssertMsgReturn (item, ("Item must be always selected here"), (void) 0);
    976976
    977     CSession session = vboxGlobal().openSession (item->id(), true);
     977    CSession session = vboxGlobal().openExistingSession (item->id());
    978978    if (session.isNull())
    979979        return;
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