Changeset 20928 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Jun 25, 2009 11:53:37 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 49096
- Location:
- trunk/src/VBox/Frontends/VBoxManage
- Files:
-
- 13 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp
r20864 r20928 9 9 10 10 /* 11 * Copyright (C) 2006-200 7Sun Microsystems, Inc.11 * Copyright (C) 2006-2009 Sun Microsystems, Inc. 12 12 * 13 13 * This file is part of VirtualBox Open Source Edition (OSE), as … … 33 33 #include <VBox/com/Guid.h> 34 34 #include <VBox/com/ErrorInfo.h> 35 #include <VBox/com/errorprint 2.h>35 #include <VBox/com/errorprint.h> 36 36 37 37 #include <VBox/com/VirtualBox.h> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r20521 r20928 30 30 #include <VBox/com/array.h> 31 31 #include <VBox/com/ErrorInfo.h> 32 #include <VBox/com/errorprint 2.h>32 #include <VBox/com/errorprint.h> 33 33 #include <VBox/com/EventQueue.h> 34 34 … … 544 544 CHECK_ERROR_RET(progress, COMGETTER(ErrorInfo)(errorInfo.asOutParam()), 1); 545 545 ErrorInfo info (errorInfo); 546 GluePrintErrorInfo(info);546 com::GluePrintErrorInfo(info); 547 547 } 548 548 else … … 608 608 else if (!strcmp(a->argv[1], "poweroff")) 609 609 { 610 CHECK_ERROR_BREAK (console, PowerDown()); 610 ComPtr<IProgress> progress; 611 CHECK_ERROR_BREAK (console, PowerDown(progress.asOutParam())); 612 613 showProgress(progress); 614 615 LONG iRc; 616 progress->COMGETTER(ResultCode)(&iRc); 617 if (FAILED(iRc)) 618 { 619 com::ProgressErrorInfo info(progress); 620 if (info.isBasicAvailable()) 621 { 622 RTPrintf("Error: failed to power off machine. Error message: %lS\n", info.getText().raw()); 623 } 624 else 625 { 626 RTPrintf("Error: failed to power off machine. No error message available!\n"); 627 } 628 } 611 629 } 612 630 else if (!strcmp(a->argv[1], "savestate")) … … 1181 1199 ComPtr<IConsole> console; 1182 1200 CHECK_ERROR_BREAK(a->session, COMGETTER(Console)(console.asOutParam())); 1183 CHECK_ERROR_BREAK(console, DiscardSavedState());1201 CHECK_ERROR_BREAK(console, ForgetSavedState(true)); 1184 1202 } 1185 1203 while (0); … … 1986 2004 } 1987 2005 else 1988 GluePrintErrorInfo(info);2006 com::GluePrintErrorInfo(info); 1989 2007 break; 1990 2008 } -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDHCPServer.cpp
r18323 r20928 27 27 #include <VBox/com/array.h> 28 28 #include <VBox/com/ErrorInfo.h> 29 #include <VBox/com/errorprint 2.h>29 #include <VBox/com/errorprint.h> 30 30 #include <VBox/com/EventQueue.h> 31 31 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp
r20842 r20928 5 5 6 6 /* 7 * Copyright (C) 2006-200 8Sun Microsystems, Inc.7 * Copyright (C) 2006-2009 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 28 28 #include <VBox/com/array.h> 29 29 #include <VBox/com/ErrorInfo.h> 30 #include <VBox/com/errorprint 2.h>30 #include <VBox/com/errorprint.h> 31 31 #include <VBox/com/VirtualBox.h> 32 32 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp
r19239 r20928 5 5 6 6 /* 7 * Copyright (C) 2006-200 8Sun Microsystems, Inc.7 * Copyright (C) 2006-2009 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 30 30 #include <VBox/com/array.h> 31 31 #include <VBox/com/ErrorInfo.h> 32 #include <VBox/com/errorprint 2.h>32 #include <VBox/com/errorprint.h> 33 33 34 34 #include <VBox/com/VirtualBox.h> … … 49 49 * relation to the "guestproperty wait" command. 50 50 */ 51 class GuestPropertyCallback : 51 class GuestPropertyCallback : 52 52 VBOX_SCRIPTABLE_IMPL(IVirtualBoxCallback) 53 53 { -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageHostonly.cpp
r19239 r20928 27 27 #include <VBox/com/array.h> 28 28 #include <VBox/com/ErrorInfo.h> 29 #include <VBox/com/errorprint 2.h>29 #include <VBox/com/errorprint.h> 30 30 #include <VBox/com/EventQueue.h> 31 31 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp
r20221 r20928 31 31 #include <VBox/com/array.h> 32 32 #include <VBox/com/ErrorInfo.h> 33 #include <VBox/com/errorprint 2.h>33 #include <VBox/com/errorprint.h> 34 34 #include <VBox/com/EventQueue.h> 35 35 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp
r20294 r20928 30 30 #include <VBox/com/array.h> 31 31 #include <VBox/com/ErrorInfo.h> 32 #include <VBox/com/errorprint 2.h>32 #include <VBox/com/errorprint.h> 33 33 34 34 #include <VBox/com/VirtualBox.h> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp
r19312 r20928 30 30 #include <VBox/com/array.h> 31 31 #include <VBox/com/ErrorInfo.h> 32 #include <VBox/com/errorprint 2.h>32 #include <VBox/com/errorprint.h> 33 33 34 34 #include <VBox/com/VirtualBox.h> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageMetrics.cpp
r19653 r20928 5 5 6 6 /* 7 * Copyright (C) 2006-200 8Sun Microsystems, Inc.7 * Copyright (C) 2006-2009 Sun Microsystems, Inc. 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 28 28 #include <VBox/com/array.h> 29 29 #include <VBox/com/ErrorInfo.h> 30 #include <VBox/com/errorprint 2.h>30 #include <VBox/com/errorprint.h> 31 31 #include <VBox/com/VirtualBox.h> 32 32 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp
r20842 r20928 27 27 #include <VBox/com/array.h> 28 28 #include <VBox/com/ErrorInfo.h> 29 #include <VBox/com/errorprint 2.h>29 #include <VBox/com/errorprint.h> 30 30 #include <VBox/com/EventQueue.h> 31 31 -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageSnapshot.cpp
r20221 r20928 26 26 #include <VBox/com/string.h> 27 27 #include <VBox/com/ErrorInfo.h> 28 #include <VBox/com/errorprint 2.h>28 #include <VBox/com/errorprint.h> 29 29 30 30 #include <VBox/com/VirtualBox.h> -
trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp
r20834 r20928 25 25 #include <VBox/com/array.h> 26 26 #include <VBox/com/ErrorInfo.h> 27 #include <VBox/com/errorprint 2.h>27 #include <VBox/com/errorprint.h> 28 28 #include <VBox/com/EventQueue.h> 29 29
Note:
See TracChangeset
for help on using the changeset viewer.