Changeset 6917 in vbox
- Timestamp:
- Feb 12, 2008 9:56:36 AM (17 years ago)
- Location:
- trunk/src/VBox/Frontends/VirtualBox
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxGlobal.h
r6904 r6917 415 415 #endif 416 416 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); } 418 421 419 422 bool startMachine (const QUuid &id); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxGlobal.cpp
r6904 r6917 1827 1827 * If this method succeeds, don't forget to close the returned session when 1828 1828 * 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 */ 1835 CSession VBoxGlobal::openSession (const QUuid &aId, bool aExisting /* = false */) 1831 1836 { 1832 1837 CSession session; … … 1838 1843 } 1839 1844 1840 aExisting ? mVBox.OpenExistingSession (session, id) : 1841 mVBox.OpenSession (session, id); 1845 aExisting ? mVBox.OpenExistingSession (session, aId) : 1846 mVBox.OpenSession (session, aId); 1847 1842 1848 if (!mVBox.isOk()) 1843 1849 { 1844 CMachine machine = CVirtualBox (mVBox).GetMachine ( id);1850 CMachine machine = CVirtualBox (mVBox).GetMachine (aId); 1845 1851 vboxProblem().cannotOpenSession (mVBox, machine); 1846 1852 session.detach(); -
trunk/src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp
r6904 r6917 975 975 AssertMsgReturn (item, ("Item must be always selected here"), (void) 0); 976 976 977 CSession session = vboxGlobal().open Session (item->id(), true);977 CSession session = vboxGlobal().openExistingSession (item->id()); 978 978 if (session.isNull()) 979 979 return;
Note:
See TracChangeset
for help on using the changeset viewer.