ApplianceImplPrivate.h revision 0c9573129c50b7f9f4ea54e61417c2ed06bb8eba
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync * VirtualBox Appliance private data definitions
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync * Copyright (C) 2006-2010 Sun Microsystems, Inc.
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync * available from http://www.virtualbox.org. This file is free software;
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync * you can redistribute it and/or modify it under the terms of the GNU
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync * General Public License (GPL) as published by the Free Software
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync * Clara, CA 95054 USA or visit http://www.sun.com if you need
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync * additional information or have any questions.
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync////////////////////////////////////////////////////////////////////////////////
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync// Appliance data definition
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync////////////////////////////////////////////////////////////////////////////////
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync/* Describe a location for the import/export. The location could be a file on a
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync * local hard disk or a remote target based on the supported inet protocols. */
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync VFSType_T storageType; /* Which type of storage should be handled */
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync Utf8Str strPath; /* File path for the import/export */
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync Utf8Str strHostname; /* Hostname on remote storage locations (could be empty) */
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync Utf8Str strUsername; /* Username on remote storage locations (could be empty) */
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync Utf8Str strPassword; /* Password on remote storage locations (could be empty) */
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync// opaque private instance data of Appliance class
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync enum ApplianceState { ApplianceIdle, ApplianceImporting, ApplianceExporting };
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync LocationInfo locInfo; // location info for the currently processed OVF
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync bool fBusyWriting; // state protection; while this is true nobody else can call methods
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync std::map<Utf8Str, const VirtualSystemDescriptionEntry*> mapDisks;
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync static int updateProgress(unsigned uPercent, void *pvUser);
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsyncstruct Appliance::TaskImportOVF : Appliance::TaskOVF
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsyncstruct Appliance::TaskExportOVF : Appliance::TaskOVF
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync////////////////////////////////////////////////////////////////////////////////
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync// VirtualSystemDescription data definition
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync////////////////////////////////////////////////////////////////////////////////
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync ComPtr<Machine> pMachine; // VirtualBox machine this description was exported from (export only)
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync////////////////////////////////////////////////////////////////////////////////
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync// Internal helpers
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync////////////////////////////////////////////////////////////////////////////////
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsyncvoid convertCIMOSType2VBoxOSType(Utf8Str &strType, CIMOSType_T c, const Utf8Str &cStr);
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsyncCIMOSType_T convertVBoxOSType2CIMOSType(const char *pcszVbox);
0c9573129c50b7f9f4ea54e61417c2ed06bb8ebavboxsync#endif // ____H_APPLIANCEIMPLPRIVATE