VirtualBox

Ignore:
Timestamp:
Jun 25, 2009 11:53:37 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
49096
Message:

API/others: Renamed IConsole::discardSavedState to IConsole::forgetSavedState, added parameter. Deleted old IConsole::powerDown, renamed IConsole::powerDownAsync to IConsole::powerDown (as promised for 2.1). Implemented perl sample code for registering a hard disk. Cleaned up constant formatting in the API docs. Updated SDK changelog. Renamed com/errorprint2.h to com/errorprint.h, added a few assertion variants. Eliminated com/errorprint_legacy.h. Adjusted all files using the affected headers and APIs. Renamed tstHeadless2 to tstHeadless.

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
13 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxInternalManage.cpp

    r20864 r20928  
    99
    1010/*
    11  * Copyright (C) 2006-2007 Sun Microsystems, Inc.
     11 * Copyright (C) 2006-2009 Sun Microsystems, Inc.
    1212 *
    1313 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3333#include <VBox/com/Guid.h>
    3434#include <VBox/com/ErrorInfo.h>
    35 #include <VBox/com/errorprint2.h>
     35#include <VBox/com/errorprint.h>
    3636
    3737#include <VBox/com/VirtualBox.h>
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r20521 r20928  
    3030#include <VBox/com/array.h>
    3131#include <VBox/com/ErrorInfo.h>
    32 #include <VBox/com/errorprint2.h>
     32#include <VBox/com/errorprint.h>
    3333#include <VBox/com/EventQueue.h>
    3434
     
    544544            CHECK_ERROR_RET(progress, COMGETTER(ErrorInfo)(errorInfo.asOutParam()), 1);
    545545            ErrorInfo info (errorInfo);
    546             GluePrintErrorInfo(info);
     546            com::GluePrintErrorInfo(info);
    547547        }
    548548        else
     
    608608        else if (!strcmp(a->argv[1], "poweroff"))
    609609        {
    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            }
    611629        }
    612630        else if (!strcmp(a->argv[1], "savestate"))
     
    11811199                ComPtr<IConsole> console;
    11821200                CHECK_ERROR_BREAK(a->session, COMGETTER(Console)(console.asOutParam()));
    1183                 CHECK_ERROR_BREAK(console, DiscardSavedState());
     1201                CHECK_ERROR_BREAK(console, ForgetSavedState(true));
    11841202            }
    11851203            while (0);
     
    19862004        }
    19872005        else
    1988             GluePrintErrorInfo(info);
     2006            com::GluePrintErrorInfo(info);
    19892007        break;
    19902008    }
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDHCPServer.cpp

    r18323 r20928  
    2727#include <VBox/com/array.h>
    2828#include <VBox/com/ErrorInfo.h>
    29 #include <VBox/com/errorprint2.h>
     29#include <VBox/com/errorprint.h>
    3030#include <VBox/com/EventQueue.h>
    3131
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageDisk.cpp

    r20842 r20928  
    55
    66/*
    7  * Copyright (C) 2006-2008 Sun Microsystems, Inc.
     7 * Copyright (C) 2006-2009 Sun Microsystems, Inc.
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2828#include <VBox/com/array.h>
    2929#include <VBox/com/ErrorInfo.h>
    30 #include <VBox/com/errorprint2.h>
     30#include <VBox/com/errorprint.h>
    3131#include <VBox/com/VirtualBox.h>
    3232
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestProp.cpp

    r19239 r20928  
    55
    66/*
    7  * Copyright (C) 2006-2008 Sun Microsystems, Inc.
     7 * Copyright (C) 2006-2009 Sun Microsystems, Inc.
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    3030#include <VBox/com/array.h>
    3131#include <VBox/com/ErrorInfo.h>
    32 #include <VBox/com/errorprint2.h>
     32#include <VBox/com/errorprint.h>
    3333
    3434#include <VBox/com/VirtualBox.h>
     
    4949 * relation to the "guestproperty wait" command.
    5050 */
    51 class GuestPropertyCallback : 
     51class GuestPropertyCallback :
    5252  VBOX_SCRIPTABLE_IMPL(IVirtualBoxCallback)
    5353{
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHostonly.cpp

    r19239 r20928  
    2727#include <VBox/com/array.h>
    2828#include <VBox/com/ErrorInfo.h>
    29 #include <VBox/com/errorprint2.h>
     29#include <VBox/com/errorprint.h>
    3030#include <VBox/com/EventQueue.h>
    3131
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageImport.cpp

    r20221 r20928  
    3131#include <VBox/com/array.h>
    3232#include <VBox/com/ErrorInfo.h>
    33 #include <VBox/com/errorprint2.h>
     33#include <VBox/com/errorprint.h>
    3434#include <VBox/com/EventQueue.h>
    3535
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r20294 r20928  
    3030#include <VBox/com/array.h>
    3131#include <VBox/com/ErrorInfo.h>
    32 #include <VBox/com/errorprint2.h>
     32#include <VBox/com/errorprint.h>
    3333
    3434#include <VBox/com/VirtualBox.h>
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageList.cpp

    r19312 r20928  
    3030#include <VBox/com/array.h>
    3131#include <VBox/com/ErrorInfo.h>
    32 #include <VBox/com/errorprint2.h>
     32#include <VBox/com/errorprint.h>
    3333
    3434#include <VBox/com/VirtualBox.h>
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMetrics.cpp

    r19653 r20928  
    55
    66/*
    7  * Copyright (C) 2006-2008 Sun Microsystems, Inc.
     7 * Copyright (C) 2006-2009 Sun Microsystems, Inc.
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    2828#include <VBox/com/array.h>
    2929#include <VBox/com/ErrorInfo.h>
    30 #include <VBox/com/errorprint2.h>
     30#include <VBox/com/errorprint.h>
    3131#include <VBox/com/VirtualBox.h>
    3232
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageModifyVM.cpp

    r20842 r20928  
    2727#include <VBox/com/array.h>
    2828#include <VBox/com/ErrorInfo.h>
    29 #include <VBox/com/errorprint2.h>
     29#include <VBox/com/errorprint.h>
    3030#include <VBox/com/EventQueue.h>
    3131
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageSnapshot.cpp

    r20221 r20928  
    2626#include <VBox/com/string.h>
    2727#include <VBox/com/ErrorInfo.h>
    28 #include <VBox/com/errorprint2.h>
     28#include <VBox/com/errorprint.h>
    2929
    3030#include <VBox/com/VirtualBox.h>
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageUSB.cpp

    r20834 r20928  
    2525#include <VBox/com/array.h>
    2626#include <VBox/com/ErrorInfo.h>
    27 #include <VBox/com/errorprint2.h>
     27#include <VBox/com/errorprint.h>
    2828#include <VBox/com/EventQueue.h>
    2929
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