Changeset 36527 in vbox for trunk/src/VBox/Main/include
- Timestamp:
- Apr 4, 2011 1:16:09 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70949
- Location:
- trunk/src/VBox/Main/include
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/include/ExtPackUtil.h
r35523 r36527 66 66 { 67 67 /** The name. */ 68 iprt::MiniString strName;68 RTCString strName; 69 69 /** The module name. */ 70 iprt::MiniString strModule;70 RTCString strModule; 71 71 /** The description. */ 72 iprt::MiniString strDescription;72 RTCString strDescription; 73 73 /** The frontend or component which it plugs into. */ 74 iprt::MiniString strFrontend;74 RTCString strFrontend; 75 75 } VBOXEXTPACKPLUGINDESC; 76 76 /** Pointer to a plug-in descriptor. */ … … 85 85 { 86 86 /** The name. */ 87 iprt::MiniString strName;87 RTCString strName; 88 88 /** The description. */ 89 iprt::MiniString strDescription;89 RTCString strDescription; 90 90 /** The version string. */ 91 iprt::MiniString strVersion;91 RTCString strVersion; 92 92 /** The internal revision number. */ 93 93 uint32_t uRevision; 94 94 /** The name of the main module. */ 95 iprt::MiniString strMainModule;95 RTCString strMainModule; 96 96 /** The name of the VRDE module, empty if none. */ 97 iprt::MiniString strVrdeModule;97 RTCString strVrdeModule; 98 98 /** The number of plug-in descriptors. */ 99 99 uint32_t cPlugIns; … … 111 111 112 112 void VBoxExtPackInitDesc(PVBOXEXTPACKDESC a_pExtPackDesc); 113 iprt::MiniString *VBoxExtPackLoadDesc(const char *a_pszDir, PVBOXEXTPACKDESC a_pExtPackDesc, PRTFSOBJINFO a_pObjInfo);114 iprt::MiniString *VBoxExtPackLoadDescFromVfsFile(RTVFSFILE hVfsFile, PVBOXEXTPACKDESC a_pExtPackDesc, PRTFSOBJINFO a_pObjInfo);115 iprt::MiniString *VBoxExtPackExtractNameFromTarballPath(const char *pszTarball);113 RTCString *VBoxExtPackLoadDesc(const char *a_pszDir, PVBOXEXTPACKDESC a_pExtPackDesc, PRTFSOBJINFO a_pObjInfo); 114 RTCString *VBoxExtPackLoadDescFromVfsFile(RTVFSFILE hVfsFile, PVBOXEXTPACKDESC a_pExtPackDesc, PRTFSOBJINFO a_pObjInfo); 115 RTCString *VBoxExtPackExtractNameFromTarballPath(const char *pszTarball); 116 116 void VBoxExtPackFreeDesc(PVBOXEXTPACKDESC a_pExtPackDesc); 117 117 bool VBoxExtPackIsValidName(const char *pszName); 118 118 bool VBoxExtPackIsValidMangledName(const char *pszMangledName, size_t cchMax = RTSTR_MAX); 119 iprt::MiniString *VBoxExtPackMangleName(const char *pszName);120 iprt::MiniString *VBoxExtPackUnmangleName(const char *pszMangledName, size_t cbMax);119 RTCString *VBoxExtPackMangleName(const char *pszName); 120 RTCString *VBoxExtPackUnmangleName(const char *pszMangledName, size_t cbMax); 121 121 int VBoxExtPackCalcDir(char *pszExtPackDir, size_t cbExtPackDir, const char *pszParentDir, const char *pszName); 122 122 bool VBoxExtPackIsValidVersionString(const char *pszName); -
trunk/src/VBox/Main/include/HostHardwareLinux.h
r34341 r36527 1 1 /* $Id$ */ 2 2 /** @file 3 * Classes for handling hardware detection under Linux.3 * VirtualBox Main - Classes for handling hardware detection under Linux. 4 4 * 5 5 * Please feel free to expand these to work for other systems (Solaris!) or to … … 40 40 { 41 41 /** The device node of the drive. */ 42 iprt::MiniString mDevice;42 RTCString mDevice; 43 43 /** A unique identifier for the device, if available. This should be 44 44 * kept consistent across different probing methods of a given 45 45 * platform if at all possible. */ 46 iprt::MiniString mUdi;46 RTCString mUdi; 47 47 /** A textual description of the drive. */ 48 iprt::MiniString mDescription;48 RTCString mDescription; 49 49 50 50 /** Constructors */ 51 DriveInfo(const iprt::MiniString &aDevice,52 const iprt::MiniString &aUdi = "",53 const iprt::MiniString &aDescription = "")51 DriveInfo(const RTCString &aDevice, 52 const RTCString &aUdi = "", 53 const RTCString &aDescription = "") 54 54 : mDevice(aDevice), 55 55 mUdi(aUdi), -
trunk/src/VBox/Main/include/Performance.h
r36128 r36527 1 1 /* $Id$ */ 2 3 2 /** @file 4 * 5 * VBox Performance Classes declaration. 3 * VirtualBox Main - Performance Classes declaration. 6 4 */ 7 5 … … 534 532 535 533 private: 536 iprt::MiniString mName;534 RTCString mName; 537 535 BaseMetric *mBaseMetric; 538 536 SubMetric *mSubMetric; … … 549 547 static bool patternMatch(const char *pszPat, const char *pszName, 550 548 bool fSeenColon = false); 551 bool match(const ComPtr<IUnknown> object, const iprt::MiniString &name) const;549 bool match(const ComPtr<IUnknown> object, const RTCString &name) const; 552 550 private: 553 551 void init(ComSafeArrayIn(IN_BSTR, metricNames), 554 552 ComSafeArrayIn(IUnknown * , objects)); 555 553 556 typedef std::pair<const ComPtr<IUnknown>, const iprt::MiniString> FilterElement;554 typedef std::pair<const ComPtr<IUnknown>, const RTCString> FilterElement; 557 555 typedef std::list<FilterElement> ElementList; 558 556 -
trunk/src/VBox/Main/include/ovfreader.h
r35536 r36527 1 1 /* $Id$ */ 2 2 /** @file 3 * OVF reader declarations.3 * VirtualBox Main - OVF reader declarations. 4 4 * 5 * Depends only on IPRT, including the iprt::MiniString and IPRT XML classes.5 * Depends only on IPRT, including the RTCString and IPRT XML classes. 6 6 */ 7 7 … … 160 160 { 161 161 // fields from /DiskSection/Disk 162 iprt::MiniString strDiskId; // value from DiskSection/Disk/@diskId162 RTCString strDiskId; // value from DiskSection/Disk/@diskId 163 163 int64_t iCapacity; // value from DiskSection/Disk/@capacity; 164 164 // (maximum size for dynamic images, I guess; we always translate this to bytes) … … 166 166 // (actual used size of disk, always in bytes; can be an estimate of used disk 167 167 // space, but cannot be larger than iCapacity; -1 if not set) 168 iprt::MiniString strFormat; // value from DiskSection/Disk/@format168 RTCString strFormat; // value from DiskSection/Disk/@format 169 169 // typically http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized 170 iprt::MiniString uuidVbox; // optional; if the file was exported by VirtualBox >= 3.2,170 RTCString uuidVbox; // optional; if the file was exported by VirtualBox >= 3.2, 171 171 // then this has the UUID with which the disk was registered 172 172 173 173 // fields from /References/File; the spec says the file reference from disk can be empty, 174 174 // so in that case, strFilename will be empty, then a new disk should be created 175 iprt::MiniString strHref; // value from /References/File/@href (filename); if empty, then the remaining fields are ignored175 RTCString strHref; // value from /References/File/@href (filename); if empty, then the remaining fields are ignored 176 176 int64_t iSize; // value from /References/File/@size (optional according to spec; then we set -1 here) 177 177 int64_t iChunkSize; // value from /References/File/@chunkSize (optional, unsupported) 178 iprt::MiniString strCompression; // value from /References/File/@compression (optional, can be "gzip" according to spec)178 RTCString strCompression; // value from /References/File/@compression (optional, can be "gzip" according to spec) 179 179 180 180 // additional field which has a descriptive size in megabytes derived from the above; this can be used for progress reports … … 207 207 struct VirtualHardwareItem 208 208 { 209 iprt::MiniString strDescription;210 iprt::MiniString strCaption;211 iprt::MiniString strElementName;209 RTCString strDescription; 210 RTCString strCaption; 211 RTCString strElementName; 212 212 213 213 uint32_t ulInstanceID; … … 215 215 216 216 ResourceType_T resourceType; 217 iprt::MiniString strOtherResourceType;218 iprt::MiniString strResourceSubType;217 RTCString strOtherResourceType; 218 RTCString strResourceSubType; 219 219 bool fResourceRequired; 220 220 221 iprt::MiniString strHostResource; // "Abstractly specifies how a device shall connect to a resource on the deployment platform.221 RTCString strHostResource; // "Abstractly specifies how a device shall connect to a resource on the deployment platform. 222 222 // Not all devices need a backing." Used with disk items, for which this references a virtual 223 223 // disk from the Disks section. 224 224 bool fAutomaticAllocation; 225 225 bool fAutomaticDeallocation; 226 iprt::MiniString strConnection; // "All Ethernet adapters that specify the same abstract network connection name within an OVF226 RTCString strConnection; // "All Ethernet adapters that specify the same abstract network connection name within an OVF 227 227 // package shall be deployed on the same network. The abstract network connection name shall be 228 228 // listed in the NetworkSection at the outermost envelope level." We ignore this and only set up 229 229 // a network adapter depending on the network name. 230 iprt::MiniString strAddress; // "Device-specific. For an Ethernet adapter, this specifies the MAC address."230 RTCString strAddress; // "Device-specific. For an Ethernet adapter, this specifies the MAC address." 231 231 int32_t lAddress; // strAddress as an integer, if applicable. 232 iprt::MiniString strAddressOnParent; // "For a device, this specifies its location on the controller."233 iprt::MiniString strAllocationUnits; // "Specifies the units of allocation used. For example, “byte * 2^20”."232 RTCString strAddressOnParent; // "For a device, this specifies its location on the controller." 233 RTCString strAllocationUnits; // "Specifies the units of allocation used. For example, “byte * 2^20”." 234 234 uint64_t ullVirtualQuantity; // "Specifies the quantity of resources presented. For example, “256”." 235 235 uint64_t ullReservation; // "Specifies the minimum quantity of resources guaranteed to be available." … … 237 237 uint64_t ullWeight; // "Specifies a relative priority for this allocation in relation to other allocations." 238 238 239 iprt::MiniString strConsumerVisibility;240 iprt::MiniString strMappingBehavior;241 iprt::MiniString strPoolID;239 RTCString strConsumerVisibility; 240 RTCString strMappingBehavior; 241 RTCString strPoolID; 242 242 uint32_t ulBusNumber; // seen with IDE controllers, but not listed in OVF spec 243 243 … … 257 257 }; 258 258 259 typedef std::map< iprt::MiniString, DiskImage> DiskImagesMap;259 typedef std::map<RTCString, DiskImage> DiskImagesMap; 260 260 261 261 struct VirtualSystem; … … 270 270 ControllerSystemType system; // one of IDE, SATA, SCSI 271 271 272 iprt::MiniString strControllerType;272 RTCString strControllerType; 273 273 // controller subtype (Item/ResourceSubType); e.g. "LsiLogic"; can be empty (esp. for IDE) 274 274 // note that we treat LsiLogicSAS as a SCSI controller (system == SCSI) even though VirtualBox … … 296 296 uint32_t ulAddressOnParent; // parsed strAddressOnParent of hardware item; will be 0 or 1 for IDE 297 297 // and possibly higher for disks attached to SCSI controllers (untested) 298 iprt::MiniString strDiskId; // if the hard disk has an ovf:/disk/<id> reference,298 RTCString strDiskId; // if the hard disk has an ovf:/disk/<id> reference, 299 299 // this receives the <id> component; points to one of the 300 300 // references in Appliance::Data.mapDisks 301 301 }; 302 302 303 typedef std::map< iprt::MiniString, VirtualDisk> VirtualDisksMap;303 typedef std::map<RTCString, VirtualDisk> VirtualDisksMap; 304 304 305 305 /** … … 309 309 struct EthernetAdapter 310 310 { 311 iprt::MiniString strAdapterType; // "PCNet32" or "E1000" or whatever; from <rasd:ResourceSubType>312 iprt::MiniString strNetworkName; // from <rasd:Connection>311 RTCString strAdapterType; // "PCNet32" or "E1000" or whatever; from <rasd:ResourceSubType> 312 RTCString strNetworkName; // from <rasd:Connection> 313 313 }; 314 314 … … 321 321 struct VirtualSystem 322 322 { 323 iprt::MiniString strName; // copy of VirtualSystem/@id324 325 iprt::MiniString strDescription; // copy of VirtualSystem/AnnotationSection content, if any323 RTCString strName; // copy of VirtualSystem/@id 324 325 RTCString strDescription; // copy of VirtualSystem/AnnotationSection content, if any 326 326 327 327 CIMOSType_T cimos; 328 iprt::MiniString strCimosDesc; // readable description of the cimos type in the case of cimos = 0/1/102329 iprt::MiniString strTypeVbox; // optional type from @vbox:ostype attribute (VirtualBox 4.0 or higher)330 331 iprt::MiniString strVirtualSystemType; // generic hardware description; OVF says this can be something like "vmx-4" or "xen";328 RTCString strCimosDesc; // readable description of the cimos type in the case of cimos = 0/1/102 329 RTCString strTypeVbox; // optional type from @vbox:ostype attribute (VirtualBox 4.0 or higher) 330 331 RTCString strVirtualSystemType; // generic hardware description; OVF says this can be something like "vmx-4" or "xen"; 332 332 // VMware Workstation 6.5 is "vmx-07" 333 333 … … 350 350 bool fHasUsbController; // true if there's a USB controller item in mapHardwareItems 351 351 352 iprt::MiniString strSoundCardType; // if not empty, then the system wants a soundcard; this then specifies the hardware;352 RTCString strSoundCardType; // if not empty, then the system wants a soundcard; this then specifies the hardware; 353 353 // VMware Workstation 6.5 uses "ensoniq1371" for example 354 354 355 iprt::MiniString strLicenseText; // license info if any; receives contents of VirtualSystem/EulaSection/License356 357 iprt::MiniString strProduct; // product info if any; receives contents of VirtualSystem/ProductSection/Product358 iprt::MiniString strVendor; // product info if any; receives contents of VirtualSystem/ProductSection/Vendor359 iprt::MiniString strVersion; // product info if any; receives contents of VirtualSystem/ProductSection/Version360 iprt::MiniString strProductUrl; // product info if any; receives contents of VirtualSystem/ProductSection/ProductUrl361 iprt::MiniString strVendorUrl; // product info if any; receives contents of VirtualSystem/ProductSection/VendorUrl355 RTCString strLicenseText; // license info if any; receives contents of VirtualSystem/EulaSection/License 356 357 RTCString strProduct; // product info if any; receives contents of VirtualSystem/ProductSection/Product 358 RTCString strVendor; // product info if any; receives contents of VirtualSystem/ProductSection/Vendor 359 RTCString strVersion; // product info if any; receives contents of VirtualSystem/ProductSection/Version 360 RTCString strProductUrl; // product info if any; receives contents of VirtualSystem/ProductSection/ProductUrl 361 RTCString strVendorUrl; // product info if any; receives contents of VirtualSystem/ProductSection/VendorUrl 362 362 363 363 const xml::ElementNode // pointer to <vbox:Machine> element under <VirtualSystem> element or NULL if not present … … 408 408 { 409 409 public: 410 OVFReader(const void *pvBuf, size_t cbSize, const iprt::MiniString &path);411 OVFReader(const iprt::MiniString &path);410 OVFReader(const void *pvBuf, size_t cbSize, const RTCString &path); 411 OVFReader(const RTCString &path); 412 412 413 413 // Data fields 414 iprt::MiniString m_strPath; // file name given to constructor414 RTCString m_strPath; // file name given to constructor 415 415 DiskImagesMap m_mapDisks; // map of DiskImage structs, sorted by DiskImage.strDiskId 416 416 std::list<VirtualSystem> m_llVirtualSystems; // list of virtual systems, created by and valid after read()
Note:
See TracChangeset
for help on using the changeset viewer.